Skip to content

fix(ci): fail-to-pass needs no proof for a deleted gate check - #6465

Merged
dan-petty merged 10 commits into
mainfrom
fix/6456-deleted-gate-check-needs-no-proof
Nov 19, 2026
Merged

dan-petty merged 10 commits into
mainfrom
fix/6456-deleted-gate-check-needs-no-proof

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A fix that removes a manifest rule also deletes the gate check of the rule. devops ci fail-to-pass then 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/

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.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 19, 2026
@dan-petty

dan-petty commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner Author

Check results

Head commit: ff09320b19b2724e6bdd0ca10ee111654d91d70b

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Plan Check skipped run
CodeQL success run
Tests on Main skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Tests & Coverage (shard 2 of 5) success run
Static Analysis success run
Runner Image success run
Tests & Coverage (shard 4 of 5) success run
Fail-to-Pass Check success run
Changed-Test Independence success run
Service Image success run
Tests & Coverage (shard 5 of 5) success run
Tests & Coverage (shard 3 of 5) success run
Design Tokens success run
MCP Server Image success run
Analyze (actions) success run
Tests & Coverage (shard 1 of 5) success run
Analyze (python) success run
Docs Site Build success run
Semantic PR title success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/44622928637/job/135909090057

Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness

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
dan-petty marked this pull request as ready for review November 19, 2026 21:58
@dan-petty
dan-petty merged commit 52e50f7 into main Nov 19, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/6456-deleted-gate-check-needs-no-proof branch November 19, 2026 22:09
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): fail-to-pass needs no proof when a gate check is deleted

1 participant