Skip to content

fix(ci): run each changed-test run on workers and its own runner - #6568

Merged
dan-petty merged 7 commits into
mainfrom
ci/6564-changed-test-independence-times-out-on
Nov 21, 2026
Merged

dan-petty merged 7 commits into
mainfrom
ci/6564-changed-test-independence-times-out-on

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

The check Changed-Test Independence ran its three shuffled runs of the changed test files one after another, each on one process. Its time grew with the number of changed tests, and on a large change GitHub cancelled the job at its 15-minute limit with no result.

A --repeat run of devops ci test now uses the workers that a narrowed run of the same files gets: one process for up to 50 tests, else one worker for each CPU, up to 4, with all tests of one file on one worker. The new option --run <k> starts only run k, with its own seed. CI runs the three runs as a matrix of three jobs, and one aggregate job keeps the check name Changed-Test Independence. The changed tests, the three seeds and the job limit do not change. A step limit under the job limit makes a run that is too long fail with a message, and not end in a cancel.

Closes #6564

Change: openspec/changes/archive/2026-11-21-6564-changed-test-independence-times-out-on/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 20, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the ci/6564-changed-test-independence-times-out-on branch from 7d1a920 to 0693b11 Compare November 21, 2026 00:02
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at group 1. The stop report is on #6564: #6564 (comment).

  • tools: run_command 15, read_file 5, edit_file 5, grep 1
  • fail-to-pass of group 1: did not run on the base commit. Tests that fail on the base commit: none.

A --repeat run of devops ci test takes the workers of a narrowed run, and
--run <k> starts one run alone. The job Changed-Test Independence runs its
three shuffled runs as a matrix of three jobs, with one aggregate job.
@dan-petty dan-petty changed the title docs(openspec): plan #6564 Shard the changed-test independence check fix(ci): run each changed-test run on workers and its own runner Nov 21, 2026
A repeat run on workers gives --dist loadfile in place of addopts'
worksteal, so a test that leaves state behind meets the tests of its own
file. The documents state the accepted limit: above 50 tests, a leak
between two changed files on two workers is not caught.
@dan-petty dan-petty added scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 21, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 06:12
@dan-petty
dan-petty self-requested a review as a code owner November 21, 2026 06:12
@dan-petty
dan-petty merged commit ce73902 into main Nov 21, 2026
32 checks passed
@dan-petty
dan-petty deleted the ci/6564-changed-test-independence-times-out-on branch November 21, 2026 06:41
dan-petty-release Bot added a commit that referenced this pull request Nov 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.187.1](v0.187.0...v0.187.1)
(2026-11-21)


### Bug Fixes

* **ci:** run each changed-test run on workers and its own runner
([#6568](#6568))
([ce73902](ce73902))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: Changed-Test Independence times out on a large test change

1 participant