Skip to content

ci: fail the coverage gate when coverage drops below the floor - #205

Merged
PaxMachinaOne merged 1 commit into
KafScale:mainfrom
novatechflow:ci/coverage-pipefail
Oct 17, 2026
Merged

PaxMachinaOne merged 1 commit into
KafScale:mainfrom
novatechflow:ci/coverage-pipefail

Conversation

@novatechflow

Copy link
Copy Markdown
Collaborator

The Enforce coverage floor step runs bash hack/check_coverage.sh 85 | tee coverage.txt. The default run shell is bash -e without pipefail, so the step took the exit code of tee and passed even when the script exited 1 for coverage under 85%.

This adds shell: bash to that step, so GitHub runs it with -eo pipefail. It also adds test/workflow_pipefail_test.go, which fails if the coverage step pipes into tee without pipefail.

No conflict with #204: it is already merged and this branch is based on it.

Coverage on main today is 85.7% locally, so the fixed gate passes now with little headroom.

The Enforce coverage floor step pipes check_coverage.sh into tee. The default run shell is bash -e without pipefail, so the step took the exit code of tee and passed even when coverage was below 85%. Setting shell: bash makes GitHub run the step with -eo pipefail. Add a repo test that fails if the coverage step pipes into tee without pipefail.
@PaxMachinaOne
PaxMachinaOne merged commit e04c2fd into KafScale:main Oct 17, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants