Repository navigation
fix(ci): fail-to-pass needs no proof for a deleted gate check - #6465
Merged
Merged
Conversation
A fix that removes a manifest rule deletes the gate check of that rule. No case of a deleted check can fail on the base and pass on the head, so the fail-to-pass replay fails such a fix. The plan adds a syntax-tree rule: a gate check module that only loses checks needs no proof.
The tests fail on the base: changed_tests has no only_deleted_checks, and the report has no deleted_gate_checks. The dry run lists no read of a changed gate check module.
A deleted check runs on neither tree, so no case of it can fail on the base and pass on the head. changed_tests now reads each changed check module at the merge base and at the head. A module whose head keeps the top-level statements of its base in order, and leaves out only checks and names that the head does not use, is no changed gate check: the report names its deleted checks. A fix that changes no source code and only deletes checks passes with no replay.
CONTRIBUTING.md (Fail-to-Pass Evidence) and docs/TESTING.md state the rule of #6456.
…module The replay now reads each changed check module at the merge base and at a named head, so the plan lists these reads. The proposal said that the dry run does not change.
A left-out statement that only binds names can still set state that a kept gate case reads, for example `_ = os.environ.setdefault(...)`. The rule now refuses a left-out statement with a call outside a function body, a decorator other than a pytest mark or a functools decorator, a class base or keyword, or an import of a project module that the head does not import. It also names the checks of a deleted module.
changed_tests dropped each deleted path before the rule ran, so the report named no check of a deleted gate check module, and the no-proof message said that the fix changed no gate module. changed_tests now reads each deleted gate check module at the merge base and names its checks. The module stays out of the replay. The dry run lists the base read of a deleted module.
The help of devops ci fail-to-pass says that a module that only loses checks, and a deleted module, run no gate row. CONTRIBUTING.md and the OpenSpec change state the rule for left-out statements that run code at import, and for a deleted check module. tasks.md ends with the tuicr review bullet.
Merge the spec delta of #6456 into openspec/specs/ci-fail-to-pass/spec.md and move the change to the archive.
Owner
Author
Check resultsHead commit:
Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/44622928637/job/135909090057 Skipped check: Plan Check |
The arguments of a decorator run at import. A left-out pytest mark or functools decorator can call a module helper there and set state that a kept case reads, so such a statement now counts as code that runs at import. The spec already says that a call outside a function body counts. See #6456.
dan-petty
marked this pull request as ready for review
November 19, 2026 21:58
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 19, 2026
🤖 I have created a release *beep* *boop* --- ## [0.182.0](v0.181.1...v0.182.0) (2026-11-19) ### Features * **roadmap:** Post delivery PR evidence before ready ([#6426](#6426)) ([a3891c0](a3891c0)) ### Bug Fixes * **ci:** fail-to-pass needs no proof for a deleted gate check ([#6465](#6465)) ([52e50f7](52e50f7)) * **deps:** ignore GHSA-qx49-fqc8-xw99 of mcp 1.29.0 until 2026-11-22 ([#6482](#6482)) ([99434a9](99434a9)), closes [#6481](#6481) * **monitoring:** exclude caller labels at the gateway source ([#6459](#6459)) ([bc57c1e](bc57c1e)) * **security:** Keep host-only SSH keys off GitHub ([#6473](#6473)) ([65771a4](65771a4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
A fix that removes a manifest rule also deletes the gate check of the rule.
devops ci fail-to-passthen replayed the gate row of that module. The base run uses the tests of the head, so the deleted check ran on neither tree, and no case could prove the fix (see #6459).A changed gate check module now only loses checks when its head keeps the top-level statements of its base in the same order, by syntax tree, and leaves out at least one
def check_*and only names that the head does not use and that run no code at import. A fix that changes no source code, and whose gate check modules only lose checks or are deleted, passes with no replay. The report names each deleted check as<module>.<check>. A fix that adds or changes a gate case still needs a case that fails on its base.On the branch of #6439, the command now exits 0 and names the deleted check.
Closes #6456
Change:
openspec/changes/archive/2026-11-19-6456-deleted-gate-check-needs-no-proof/