Skip to content

Pin the coverage version used by the coverage gate - #3422

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/pick-next-issue
Aug 12, 2026
Merged

Pin the coverage version used by the coverage gate#3422
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/pick-next-issue

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

The Combine & check coverage job installed coverage with uv tool install, which resolves the latest release at run time and ignores the project's pin of coverage==7.15.4. It was the only unpinned tool install across the workflows, and it is a required check on the default branch, so its behaviour was decided by whatever coverage released most recently — and the job producing the coverage data used a different (pinned) version from the job consuming it.

Run it through uv run --extra=dev, like every other tool invocation in the workflows.

Also add || true to the first coverage report call. Under bash -e that call already failed the step when coverage was under 100%, so the second call — the one the comment says is the gate — was unreachable in exactly the case it exists for.

Closes #3402

🤖 Generated with Claude Code

The "Combine & check coverage" job installed coverage with
"uv tool install", which resolves the latest release at run time and
ignores the project's pin of coverage==7.15.4. It was the only unpinned
tool install across the workflows, and it is a required check on the
default branch, so its behaviour was decided by whatever coverage
released most recently.

Run it through "uv run --extra=dev" like every other tool invocation, so
the same version produces and consumes the coverage data.

Also add "|| true" to the first report call. Under "bash -e" it already
failed the step when coverage was under 100%, so the second call - the
one the comment says is the gate - was unreachable in exactly the case
it exists for.

Closes #3402

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

The coverage gate runs an unpinned coverage version

1 participant