Repository navigation
ci: add Tests complete and Wheels complete jobs for branch protection - #919
Merged
Merged
Conversation
Branch protection on main required individual matrix jobs by name, so renaming the macOS runners left two required checks that no job reported, and every PR stayed blocked. Each workflow now ends with one job that depends on all of its test or build jobs and fails if any of them failed or was cancelled. Branch protection can require those two jobs instead, following zarr-python's "Test complete" job. Assisted-by: ClaudeCode:claude-opus-5.5
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #919 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 27 27
Lines 921 921
=========================================
Hits 921 921 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Each CI workflow now ends with one job,
Tests completeinci.yamlandWheels completeinwheel.yaml, that fails if any job it depends on failed or was cancelled. Branch protection can require these two jobs instead of individual matrix entries, so renaming a runner no longer blocks every PR.Merge order: merge this first. Then switch the required checks on
maintoTests completeandWheels complete(plus Read the Docs). Switching the checks before this merges would block every open PR.Why
Branch protection on
mainrequired six checks by job name, includingBuild wheel on macos-14andBuild wheel on macos-15-large. #902 renamed those runners, so no job reported under the old names, and #918 sat blocked behind two checks that would never arrive. The agent updated the names by hand as a stopgap. These aggregate jobs remove that dependency on job names entirely. The pattern is copied from zarr-python'sTest completejob, which is the only test check its branch protection requires.What the jobs check, and what they widen
Tests completedepends onbuild,test-crc32c,typingandtest-zarr.Wheels completedepends onbuild_wheelsandbuild_sdist.if: always(), so it reports even when a dependency fails, and exits 1 if any dependency's result isfailureorcancelled.build (3.13, ubuntu-latest)and four wheel builds are. That includes thetest-zarrjob against zarr-pythonmain, so a breaking change in zarr-pythonmainwould block numcodecs PRs. If that is unwanted, that matrix entry can be markedcontinue-on-error.upload_pypiandupload_nightlyare not dependencies, so the release jobs are unchanged.Verification
actionlintpasses on both workflow files. The jobs themselves are verified by this PR's own CI run.🤖 Generated with Claude Code