Skip to content

Fix Coveralls race: upload coverage from one Python version only#62

Merged
iskandr merged 1 commit intomasterfrom
fix-ci-coveralls-race
Apr 21, 2026
Merged

Fix Coveralls race: upload coverage from one Python version only#62
iskandr merged 1 commit intomasterfrom
fix-ci-coveralls-race

Conversation

@iskandr
Copy link
Copy Markdown
Contributor

@iskandr iskandr commented Apr 21, 2026

Summary

Restricts the coverage upload step in .github/workflows/tests.yml to run only on the 3.11 matrix job (if: matrix.python-version == '3.11').

Previously every matrix job (3.9, 3.10, 3.11) uploaded coverage to Coveralls. Whichever finished first closed the build, and the others failed with:

Can't add a job to a build that is already closed. Build is closed. See docs.coveralls.io/parallel-builds

This was a pre-existing flake — lint and tests were passing on all versions. Same pattern as the sibling mhcgnomes repo.

Test plan

  • CI on this PR is green (3.9 + 3.10 + 3.11 pass, coverage uploads once from 3.11)

Previously every matrix job uploaded coverage to Coveralls, which
caused the parallel-build race: whichever job finished first closed
the build, and the rest failed with "Can't add a job to a build that
is already closed". Restrict the upload to the 3.11 job (same pattern
as mhcgnomes), eliminating the race.
@iskandr iskandr merged commit 5013a23 into master Apr 21, 2026
6 checks passed
@iskandr iskandr deleted the fix-ci-coveralls-race branch April 21, 2026 18:48
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 24740319490

Coverage remained the same at 86.471%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 170
Covered Lines: 147
Line Coverage: 86.47%
Coverage Strength: 0.86 hits per line

💛 - Coveralls

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