Repository navigation
fix(ci): the changed-test shuffle runs only on pull requests into a release branch - #1724
Merged
Merged
Conversation
…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
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.
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.
.github/workflows/ci.yml, jobchanged-tests: its condition becomesgithub.event_name == 'pull_request' && github.base_ref != 'main'.release/**keep the job.Verification
tests/test_ci_repeat.py::test_the_changed_test_job_reruns_added_or_modified_test_filespins the condition. It failed on the base, whose condition had nobase_refterm.uv run devops cipassed (pre-push hook).Closes #1723