Skip to content

ci: add Tests complete and Wheels complete jobs for branch protection - #919

Merged
d-v-b merged 1 commit into
zarr-developers:mainfrom
d-v-b:ci/aggregate-checks
Nov 24, 2026
Merged

d-v-b merged 1 commit into
zarr-developers:mainfrom
d-v-b:ci/aggregate-checks

Conversation

@d-v-b

@d-v-b d-v-b commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

🤖 AI text below 🤖

Each CI workflow now ends with one job, Tests complete in ci.yaml and Wheels complete in wheel.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 main to Tests complete and Wheels complete (plus Read the Docs). Switching the checks before this merges would block every open PR.

Why

Branch protection on main required six checks by job name, including Build wheel on macos-14 and Build 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's Test complete job, which is the only test check its branch protection requires.

What the jobs check, and what they widen
  • Tests complete depends on build, test-crc32c, typing and test-zarr.
  • Wheels complete depends on build_wheels and build_sdist.
  • Each uses if: always(), so it reports even when a dependency fails, and exits 1 if any dependency's result is failure or cancelled.
  • Requiring these jobs makes every job in both workflows required. Today only build (3.13, ubuntu-latest) and four wheel builds are. That includes the test-zarr job against zarr-python main, so a breaking change in zarr-python main would block numcodecs PRs. If that is unwanted, that matrix entry can be marked continue-on-error.
  • The i386 and CodeQL workflows are left out, as they are not required today.
  • upload_pypi and upload_nightly are not dependencies, so the release jobs are unchanged.
Verification

actionlint passes on both workflow files. The jobs themselves are verified by this PR's own CI run.

🤖 Generated with Claude Code

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

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b6cc054) to head (88a05e6).

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@d-v-b
d-v-b merged commit a3cbbdd into zarr-developers:main Nov 24, 2026
38 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.

1 participant