Skip to content

fix(ci): the changed-test shuffle runs only on pull requests into a release branch - #1724

Merged
dan-petty merged 1 commit into
release/v0.2.37from
fix/ci-changed-tests-skip-main
Oct 20, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.37from
fix/ci-changed-tests-skip-main

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The release pull request (#1720) spent more than 20 minutes in the CI Quality Gate's Changed-Test Independence job (run 39430481325). This stops the job running there.

Why. The job reruns a pull request's changed test files in shuffled order to catch order dependence. On the release pull request into main, every test file the release touched counts as changed, so it reruns most of the suite. Each item in the release already passed the same job against the release branch.

The change.

Verification

  • Tests first. tests/test_ci_repeat.py::test_the_changed_test_job_reruns_added_or_modified_test_files pins the condition. It failed on the base, whose condition had no base_ref term.
  • Checks. The workflow-contract, task-file and changelog-fragment tests pass (589).
  • Gate. uv run devops ci passed (pre-push hook).

Closes #1723

…elease branch

The CI Quality Gate's Changed-Test Independence job reruns a pull request's changed test files in shuffled order to catch order dependence. On the release pull request into main every test file the release touched counts as changed, so the v0.2.37 release pull request spent more than 20 minutes rerunning most of the suite, while each of its items had already passed the job against the release branch.

The job's condition gains `github.base_ref != 'main'`; item pull requests into release/** keep it, as #1721 did for the fail-to-pass check. The changed-test job's test pins the condition.

Closes #1723
@dan-petty
dan-petty merged commit 502c2fb into release/v0.2.37 Oct 20, 2026
15 checks passed
@dan-petty
dan-petty deleted the fix/ci-changed-tests-skip-main branch October 20, 2026 14:08
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