Skip to content

ci(fail-to-pass): run the replay only for a fix that changes src/ - #2589

Merged
dan-petty merged 2 commits into
mainfrom
ci/1879-fail-to-pass-fix-only
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
ci/1879-fail-to-pass-fix-only

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The fail-to-pass check ran on every pull request into main, and a body line, Fail-to-pass: not applicable: <reason>, let a pull request pass it. A check that does not apply is not run, and no escape makes a check pass.

The workflow now starts only for a pull request that changes src/ outside the knowledge base, and its job runs only for a fix title. devops ci fail-to-pass reads no title, label or body: --title, --labels and --body, the escape and label parsers, the title classification and the self-check job are deleted. A replay that cannot run on base fails and tells the author to merge the harness change first, in a pull request that is not a fix. CONTRIBUTING.md says when the check runs.

Closes #1879

Change: openspec/changes/archive/2026-10-29-1879-fail-to-pass-fix-only/

The fail-to-pass check ran on every pull request into main and let a
body line, "Fail-to-pass: not applicable: <reason>", pass it. A check
that does not apply is not run, and no escape makes a check pass.

The workflow now starts only for a pull request that changes src/
outside the knowledge base, and its job runs only for a fix title. The
replay reads no title, label or body. The escape parser, the label
parser, the title classification, three command options and the
self-check job are deleted. A replay that cannot run on base fails and
tells the author to merge the harness change first, in a pull request
that is not a fix.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence:

  • Failing first: before the change, 28 tests failed. These were the workflow contract, the job condition on 12 titles, the title-free replay, the new could-not-run text and the outcome tables.
  • After the change, on the branch rebased onto b32348a8: tests/test_fail_to_pass.py, tests/test_workflow_contracts.py, tests/test_renovate_config.py and tests/test_mcp.py gave 252 passed and 9 snapshots passed. devops docs check passes. openspec validate --all --strict gives 122 passed.
  • The two live replay tests that take over from the self-check job took 4.6 s and 4.1 s at load 21 on 16 CPUs. They already ran in the suite.
  • This pull request is ci: and changes src/, so the workflow starts and the Fail-to-Pass Check job skips. That shows the title condition at work.

Required checks: the main branch ruleset requires only Static Analysis, Tests & Coverage and Semantic PR title. A workflow that the path filter skips gives no check run. That does not block a merge, because Fail-to-Pass Check is not required.

Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 01:46
@dan-petty
dan-petty merged commit c913ec2 into main Oct 29, 2026
16 checks passed
@dan-petty
dan-petty deleted the ci/1879-fail-to-pass-fix-only branch October 29, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(fail-to-pass): the check runs only for fix pull requests and the body-line escape is deleted

1 participant