Skip to content

perf(ci): test each merge once, on the push to main - #5043

Merged
dan-petty merged 2 commits into
mainfrom
perf/4639-one-test-run-per-merge
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
perf/4639-one-test-run-per-merge

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Each merge into main ran the tests two times, on the push to main and on the release pull request, and the next merge cancelled most of both runs. Now each merge gets one test run, on the push to main, and the release pull request reads its result (owner decision O3).

  • The concurrency group of a push run of ci.yml is its commit, so a later merge cancels no push run of main.
  • On the release pull request of this repository, the test shards do not run. The new job Tests on Main waits for the push run of the base commit, and Tests & Coverage passes only when Tests & Coverage of that run passed. A fork branch with a release name runs the shards.
  • ADR 0014 records the decision. devops ci job-time already reads these push runs.

Closes #4639

Change: openspec/changes/archive/2026-11-12-4639-test-each-merge-once-on-the/

A later merge cancels no push run of main: the concurrency group of a
push is its commit. The release pull request runs no test shard. The new
job Tests on Main waits for the push run of its base commit, and
Tests & Coverage passes only when Tests & Coverage of that run passed.
Only a branch of this repository takes this path.

ADR 0014 records owner decision O3 with the evidence and the rejected
options.

Closes #4639
@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Measurements

Source: the Actions API, 100 push runs of ci.yml on main from 2026-11-11 12:01 to 2026-11-12 07:57 UTC, and the 77 runs of the release pull request in the same time. Runner time is the sum of completed_at - started_at of the test jobs (the four shards and Tests & Coverage).

For the 100 merges Before (measured) After (model)
Test runs that ended on main 50 100
Push runs of main that the next merge cancelled 49 0
Release runs that the next merge cancelled 52 of 77 the wait job only
Test runner-minutes on main 1,498 1,818
Test runner-minutes on the release pull request 1,230 328 (Tests on Main and the join)
Test runner-minutes for each merge 27.3 21.5
Test jobs for each merge 8.7 6.5
  • A push run that ended used 18.2 test runner-minutes (mean of 50). The model gives each of the 100 merges one such run.
  • The model of the wait job: from the start of each release run to the end of Tests & Coverage of the push run before it, cut at the start of the next release run, plus 15 seconds for the join.
  • Tests & Coverage of a push run ended a median of 367 seconds, a p90 of 659 seconds and at most 1,078 seconds after the run started. The wait of Tests on Main stops after 35 minutes, its step limit is 37 minutes and its job limit is 40 minutes.

Checks run locally

  • uv run devops ci --check --only actionlint,zizmor: pass.
  • uv run devops ci --check --only lint,format,docs,openspec,typecheck: pass.
  • The contract tests failed on the old ci.yml (3 failed) and pass on the new one. 579 tests in the files that read ci.yml or the check names pass.

Not verified before the merge

The run of this pull request does not start Tests on Main, because this is not the release pull request. The first update of the release pull request after the merge runs the new path. Check there that Tests on Main reads the push run of the base commit and that Tests & Coverage passes. The push run of each merge must end with no cancel.

Owner steps

None. The required checks, the ruleset and the release-please trigger do not change.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 11:43
@dan-petty
dan-petty merged commit c6992b1 into main Nov 12, 2026
24 checks passed
@dan-petty
dan-petty deleted the perf/4639-one-test-run-per-merge branch November 12, 2026 12:12
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.118.0](v0.117.2...v0.118.0)
(2026-11-12)


### Features

* **ci:** devops ci stops its rows when timeout ends it
([#5031](#5031))
([1fa4e9c](1fa4e9c))
* **roadmap:** keep the stage gate problems as a list with a code
([#5022](#5022))
([5819627](5819627))
* **roadmap:** log one result line for each roadmap job attempt
([#4966](#4966))
([2b6fe3f](2b6fe3f))
* **telemetry:** record each CLI usage error by name and kind
([#4973](#4973))
([a179fd9](a179fd9))


### Bug Fixes

* **ai:** chat loads each persona prompt and challenger gets tools
([#5037](#5037))
([c40b0ad](c40b0ad))
* **ai:** keep the HTTP status of a Claude reply after retries
([#4976](#4976))
([5bf9466](5bf9466))
* **deps:** keep Renovate uv bumps green and groups on Monday
([#4987](#4987))
([b19e153](b19e153))
* **k8s:** raise the limits that 7 d of use shows are too low
([#5030](#5030))
([028c62b](028c62b))
* **roadmap:** a job posts no comment that repeats a recent one
([#4978](#4978))
([fff903a](fff903a))
* **service:** alert when GitHub cannot deliver a webhook
([#5045](#5045))
([2bfbfcb](2bfbfcb))
* **service:** delete the stream route that sends canned verified text
([#5038](#5038))
([e9d51b5](e9d51b5))
* **telemetry:** keep one upstream status series per service
([#4986](#4986))
([3e4ca56](3e4ca56))
* **tests:** remove the runner variable in the test floor
([#4988](#4988))
([093aa61](093aa61))


### Performance Improvements

* **ai:** make the ast graph walk and call search faster
([#5039](#5039))
([3b25cc6](3b25cc6)),
closes [#4662](#4662)
* **ci:** build the devcontainer only on its own inputs
([#4977](#4977))
([c5b15ac](c5b15ac))
* **ci:** test each merge once, on the push to main
([#5043](#5043))
([c6992b1](c6992b1))
* **tests:** remove fixed waste in six slow tests
([#4995](#4995))
([1c7044e](1c7044e))


### Code Refactoring

* **ai:** delete devops ai pipeline and persona leftovers
([#5044](#5044))
([d5fefde](d5fefde)),
closes [#4827](#4827)
* **openspec:** split big capabilities into nested ones
([#4981](#4981))
([dfb09bd](dfb09bd))
* **pr:** devops pr update acts only on a failed check
([#4990](#4990))
([aa4fa1a](aa4fa1a))

---
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/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(ci): test each merge once, on the main push

1 participant