Skip to content

ci: add codecov.yml with 0.5% threshold to avoid false failures on shell-only PRs#3048

Open
bitflicker64 wants to merge 2 commits into
apache:masterfrom
bitflicker64:fix/codecov-threshold
Open

ci: add codecov.yml with 0.5% threshold to avoid false failures on shell-only PRs#3048
bitflicker64 wants to merge 2 commits into
apache:masterfrom
bitflicker64:fix/codecov-threshold

Conversation

@bitflicker64
Copy link
Copy Markdown
Contributor

Purpose of the PR

Shell scripts and test scripts added in recent PRs (test-start-hugegraph.sh, test-start-hugegraph-pd.sh, test-start-hugegraph-store.sh) have no Java coverage. Codecov reports a large coverage drop and fails the PR check even though actual Java coverage is unchanged.

Main Changes

  • Add codecov.yml at repo root:
    • ignore block excludes all *.sh files and the travis/ scripts directory from coverage calculation
    • threshold: 0.5% for both project and patch so small rounding noise doesn't fail the check

Does this PR potentially affect the following parts?

  • Dependencies
  • Modify configurations
  • The public API
  • Other affects
  • Nope

Documentation Status

  • Doc - No Need

…l-only PRs

Shell scripts and test scripts added in recent PRs have no Java coverage,
causing Codecov to report large drops and fail the PR check even though
Java coverage is unchanged.

A 1% threshold means Codecov only fails when actual Java coverage drops
significantly, not on noise from non-Java file additions.
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. ci-cd Build or deploy labels Jun 4, 2026
@bitflicker64 bitflicker64 changed the title ci: add codecov.yml with 1% threshold to avoid false failures on shell-only PRs ci: add codecov.yml with 0.5% threshold to avoid false failures on shell-only PRs Jun 4, 2026
@bitflicker64
Copy link
Copy Markdown
Contributor Author

Hi @imbajin, is this PR relevant/needed for the project?

Recent shell-only PRs have been failing Codecov because non-Java files skew the stats. This adds a codecov.yml to ignore .sh files so they stop blocking builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd Build or deploy size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant