Repository navigation
ci(local-gate): declare the three replay steps the proof omits (GATE-001) - #1932
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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 this fixes
ci.test_shared_replayis RED onorigin/main(06669ad1). GATE-001 says the declaredlocal-gate replay no longer matches the workflows it claims to prove:
Those three steps exist and execute in the real jobs, but
local-gate.tomlnever declaredthem, so the declared local proof silently covered less than the remote job it replays.
Yesterday's
#1911-era Python ratchet work and thefbuild-libraryassembly tests addedtwo of them; the dylint disk provisioner was added to both jobs but only declared for one.
The change
local-gate.tomlonly: the three step names, in the exact workflow order (the checkercompares the set, the order keeps the declaration readable next to its source).
check-ubuntu.yml:checkgainsTest cold-build disk provisioning(after the Pythoncomplexity ratchet) and
Test library assembly and archive policies with native GCC(after the native-GCC LTO step).
dylint.yml:dylintgainsProvision cold-build disk capacity(afterSet up uv).No workflow, lane,
run,verify, threshold or registry change;modestaysshadow.Real evidence
ci.test_shared_replay->FAILED (failures=1)with the twofindings verbatim above;
check_replay_static-> 2GATE-001violations.ci.test_shared_replay2 tests OK;check_replay_static->[]; thereplay-config parse also reports
[](soworkflow_replay_dependenciesis clean too).Provision cold-build disk capacityfrom the dylint listreproduces
GATE-001 ... omitted=['Provision cold-build disk capacity']and fails the testnaming that step (then reverted).
ci.test_local_gate ci.test_local_suites ci.test_fractional_workflows ci.test_local_dylint_gate-> 40 tests OK;ci.test_gate_script_coverage ci.test_local_suites-> 22 OK;ci/check_python_complexity.py->All checks passed!.ci-lint complexity --python-runtime->0 violation(s); ratchet debt: 124 Rust expect, 14 Python noqa: C901(RUST-018/PY-004 rollout confirmed complete;tracked separately from this PR).
Note for review
Provision cold-build disk capacityindylint.ymlis guarded byif: runner.os == 'Linux' && runner.environment == 'github-hosted'. The static contractrequires it declared (unknown guards cannot waive proof), and a skipped conditional step is
already representable in a declared list (
Reuse cached Dylint library treeis declared thesame way). Whether act2 leaves that step skipped is only observable in a real
local-gate run --lane dylint; the lane isshadow, so this PR does not gate on it.ci.test_shared_replayisLOCAL_ONLYby design (ci/local_suites.py: it imports the pinnedci-lintpackage that hosted CI does not install), which is why this drift could accumulatewith every remote job green.