Repository navigation
ci: add tests-passed gate job for the test matrix - #976
Merged
Merged
Conversation
develop's branch protection requires only `build` and `CodeQL`, so Renovate merged #960 at 11:11:24Z while all seven `test (N)` lanes were still running. Matrix lanes report as `test (8)`, `test (11)`, ...; protection matches check names exactly, so the matrix cannot be required as a whole, and listing lanes goes stale when one is added or dropped. Add `tests-passed`, which needs build and test, runs with `if: always()` (a skipped required check counts as passing) and fails unless both succeeded. Making it a required check on develop is a settings change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013d3caXQCpuNvgTAwpJMYqK
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.
What does this change do?
Adds a
tests-passedjob to.github/workflows/continuous.yml. It provides one check that branch protection can require for the wholetestmatrix.Why:
developrequires onlybuildandCodeQL. Source: the publicGET /repos/btraceio/btrace/branches/developreturnsrequired_status_checks.contexts: ["build", "CodeQL"], andGET /rules/branches/developreturns[]. That is how Renovate merged #960 at 11:11:24Z while all seventest (N)lanes were still running; they passed at 11:16:18Z. Matrix lanes report astest (8)…test (28-ea), and protection matches check names exactly. So a required context namedtestnever matches a lane; it appears only when the whole job is skipped. Listing every lane would go stale whenever a lane is added or dropped.How it works:
needs: [build, test].if: always(), so the job still runs whenbuildfails or a lane fails or is cancelled. Without it the job would be skipped, and GitHub treats a skipped required check as passing.needs.build.resultandneeds.test.resultaresuccess. For a matrix job,needs.test.resultissuccessonly if every lane succeeded.Related issue
N/A. Follow-up to #960 merging before its tests finished.
Scope and compatibility
Compatibility or migration notes:
CI only. Merging this PR does not change enforcement. An admin must then add
tests-passedas a required status check ondevelop(Settings → Branches →develop, or the equivalent ruleset). Add it only after this merges; requiring a check that has never reported blocks every PR.publishandcleanupare unchanged.Testing
spotlessCheck(N/A: no Java sources)Commands and results:
This PR's own CI is the end-to-end check that the job runs after the matrix and reports
tests-passed.Documentation and release impact
Release notes / follow-up work:
After merge, an admin should add
tests-passedtodevelop's required checks.Final checklist
Generated by Claude Code
This change is