Repository navigation
fix(ci): the fail-to-pass check runs only on pull requests into a release branch - #1722
Merged
Merged
Conversation
…ease branch The v0.2.37 release pull request (#1720) failed its Fail-to-Pass Check: the replay lays the release's tests/ over main's src/, the release's tests/support/bootstrap.py imports a name main's test_selection does not have yet, and pytest stopped with an INTERNALERROR, which since #1669 fails the check for any pull request. The check exists for item pull requests into a release branch, where each proves its fix; the release pull request into main carries items that each passed it, and a release that changes the test harness cannot replay on main's tree at all. The workflow now triggers on pull requests into release/** only, so it does not run on the release pull request into main. The workflow contract pins the trigger and task-844's record of it is updated. Closes #1721
dan-petty
force-pushed
the
fix/1721-release-pr-fail-to-pass
branch
from
October 20, 2026 13:09
09713c4 to
537e73d
Compare
3 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.
This fixes the failing Fail-to-Pass Check on the v0.2.37 release pull request (#1720) by no longer running the check there. The workflow now triggers only on pull requests into a release branch.
Why #1720 failed. The check replays a pull request's changed tests on its base. On #1720 that base is main, so the release's
tests/were laid over main'ssrc/. The release'stests/support/bootstrap.pyimportsdefines_fixture_or_hook, which main doesn't have yet, so pytest stopped with an INTERNALERROR (run 39425010929). Since #1669 (#1718), a replay that can't run fails the check.Why skip it on main. The check exists for item pull requests into a release branch, where each item proves its fix. The release pull request into main carries items that each already passed it, and a release that changes the test harness can't replay on main's tree at all. So on main the check can only fail, or prove nothing.
The change.
.github/workflows/fail-to-pass.yml:branches: ["release/**"], where it was[main, "release/**"].tests/test_workflow_contracts.pypins the trigger.Verification
["release/**"]. It failed on the base with['main', 'release/**'] != ['release/**'].uv run devops cipassed (pre-push hook).Closes #1721