Skip to content

fix(ci): the fail-to-pass check runs only on pull requests into a release branch - #1722

Merged
dan-petty merged 1 commit into
release/v0.2.37from
fix/1721-release-pr-fail-to-pass
Oct 20, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.37from
fix/1721-release-pr-fail-to-pass

Conversation

@dan-petty

@dan-petty dan-petty commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

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's src/. The release's tests/support/bootstrap.py imports defines_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.py pins the trigger.
  • Task-844's record of the trigger is updated.
  • Nothing is added to the tool or to the release pull request's body.

Verification

  • Tests first. The workflow contract expects ["release/**"]. It failed on the base with ['main', 'release/**'] != ['release/**'].
  • Checks. The workflow-contract, task-file and changelog-fragment tests pass (587).
  • Gate. uv run devops ci passed (pre-push hook).

Closes #1721

…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
dan-petty force-pushed the fix/1721-release-pr-fail-to-pass branch from 09713c4 to 537e73d Compare October 20, 2026 13:09
@dan-petty dan-petty changed the title fix(release): the release pull request declares fail-to-pass not applicable, since its items each passed the check against the release branch fix(ci): the fail-to-pass check runs only on pull requests into a release branch Oct 20, 2026
@dan-petty
dan-petty merged commit 4e61562 into release/v0.2.37 Oct 20, 2026
15 of 17 checks passed
@dan-petty
dan-petty deleted the fix/1721-release-pr-fail-to-pass branch October 20, 2026 13:26
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.

1 participant