Repository navigation
[0.38] ci(gate): require the spec conformance checks in every gate context - #4577
Merged
Daniel Meppiel (danielmeppiel) merged 3 commits intoNov 21, 2026
Merged
Conversation
Daniel Meppiel (danielmeppiel)
marked this pull request as ready for review
November 21, 2026 09:34
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 21, 2026 09:34
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The guard accepts a label-gated condition for spec producers, allowing unconditional spec checks to be skipped on unlabeled PRs without detection.
1 open issue
What changed in this PR
This PR addresses the narrowed scope of #4337 by requiring spec conformance checks in every merge-gate context.
Changes:
- Adds the spec gate and three test shards to required checks for ordinary PRs, full-integration PRs, and merge groups.
- Removes the spec workflow’s PR path filter so required checks are not filtered out.
- Adds topology guards and mutation tests, and documents the requirement.
| File | Description |
|---|---|
| tests/quality/test_ci_topology.py | Adds guards and mutation tests for required spec checks and their producers. |
| docs/src/content/docs/contributing/integration-testing.md | Documents spec checks required on PRs and merge groups. |
| .github/workflows/spec-conformance.yml | Removes PR path filtering. |
| .github/workflows/merge-gate.yml | Requires all four spec checks in every context. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4337-spec-gate-required
branch
from
November 21, 2026 10:20
8f4ab9f to
6cbff98
Compare
Merged
4 of 8 tasks
…4337) merge-gate.yml now waits for "Spec conformance gate" and its three "Spec tests (N/3)" shards for unlabeled PRs, full-integration PRs and merge groups. spec-conformance.yml drops its pull_request paths: filter, so the gate never waits for a check that was filtered out; merge_group already ran unfiltered. "Check conformance statement" stays aggregated by the spec gate and is not listed on its own. tests/quality/test_ci_topology.py pins it: every EXPECTED_CHECKS context names the four spec checks, each comes from exactly one unconditional spec-conformance.yml job, and the workflow has no paths or paths-ignore filter. Mutation cases drop a spec name from each context, restore a filter, make a shard conditional, add a second producer, or list the statement check. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…4337) Co-authored-by: copilot-swe-agent[bot] <[email protected]>
The spec conformance guard reused _runs_on_merge_group, which also
accepts the full-integration label gate. A label-gated spec job would
skip on unlabeled PRs yet still pass the guard. Spec producers must now
carry no condition or always(), including the ${{ }}-wrapped forms,
and label-gated mutations prove the guard rejects them.
Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4337-spec-gate-required
branch
from
November 21, 2026 10:56
6cbff98 to
ed8add5
Compare
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-4337-spec-gate-required
branch
November 21, 2026 11:20
Merged
3 of 10 tasks
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.

Description
TL;DR
gatenow requiresSpec conformance gateand its threeSpec tests (N/3)shards in every context: unlabeled PRs,full-integrationPRs and merge groups.spec-conformance.ymldrops itspull_requestpaths:filter, so the gate never waits for a check that was filtered out.merge_groupalready ran unfiltered.What changed
.github/workflows/merge-gate.yml:EXPECTED_CHECKSbranch.Test Architecture Ratchets, so the existing invariant "labeled = unlabeled + the four integration checks" still holds.Check conformance statementis not: the spec gate already aggregates it..github/workflows/spec-conformance.yml: thepaths:list is removed frompull_request, and a comment explains why.tests/quality/test_ci_topology.py:test_spec_conformance_checks_gate_every_contextasserts that:spec-conformance.ymljob;pull_requestandmerge_group, with nopathsorpaths-ignorefilter;Check conformance statementandArchitecture Scaling (Linux)are never required.pathsorpaths-ignorefilter;merge_group;Check conformance statementlisted in a context.contributing/integration-testing.mdstates thatgaterequiresSpec conformance gateand its three shards on every PR and merge group.Controls stay green unchanged:
test_test_architecture_ratchets_are_required_in_every_context,test_ratchet_aggregate_cannot_ignore_the_contracts,test_architecture_scaling_is_never_required, the full-integration opt-in guard and the merge-group producer guard.Trade-off: every PR now runs the spec workflow, including docs-only PRs (the statement job plus three shards, a few minutes in parallel). That is the record's choice: a filtered-out required check would leave
gatewaiting forever.Issue and approved scope
Issue: Fixes #4337
Human scope-approval comment: #4337 (comment) (
scripts/governance/eligibility.cjs: record-present,contact_confirmation_needed: false).Does this PR complete the issue, or what remains? It completes the narrowed scope.
Type of change
Testing
8f4ab9f(33 pass, 3 skipping), including all four spec checks on this PR.Local results:
uv run --extra dev pytest tests/quality/test_ci_topology.py: 360 passed.merge-gate.ymlandspec-conformance.yml, the new guard fails: "merge_group EXPECTED_CHECKS does not require ['Spec conformance gate', ...]".Changelog
## [Unreleased]inCHANGELOG.mdSpec conformance (OpenAPM v0.1)