Repository navigation
fix(ci): alarm at 360 s, one P0 issue, shards by recorded time - #5377
Conversation
Plan the alarm limit of 360 s, one P0 issue for each breach, and the split of the test shards by recorded seconds.
devops ci job-time fails above 360 s by default: the 300 s target of AGENTS.md rule 5 and the 60 s of tolerance of the owner (2026-10-23). With --file-issue it comments on the open issue that holds the alarm line of the check, or files one with priority/p0-critical. The scheduled job runs with the option and issues: write. The test shards weigh each module by its recorded seconds in tests/module_durations.json, and a module without a record weighs its lines at the recorded rate. devops ci durations writes the record from the JUnit reports of the shards of the last 20 runs of main. A replay of those runs gives a mean of 284 s, against 316 s with the split by lines.
No command or workflow uses pytest-split: each shard passes its own test files to pytest, and the split reads tests/module_durations.json.
AGENTS.md rule 5 and docs/TESTING.md state the 1 minute of tolerance of the owner. TESTING.md tells how the alarm files its issue, how the split weighs the modules, and when to write the record again.
The alarm issue holds a Priority, so intake does not place it, and refine reads only the items with the Status New or Ready. The job now sets status/new, as intake does for a new item, so the P0 issue enters the roadmap. AGENTS.md rule 5 gives the unit of the tolerance, and docs/SDLC.md describes the split by recorded seconds.
Checks and prooffail-to-pass (builder run, Scoped tests (review, after the fix): Static rows ( Other checks: Expected new mean (builder replay of the last 20 runs of Render diffThe branch changes no path under Review fixes
For the owner
|
The fixture of the #5362 test set PYTHONPATH to the src/ of the checkout only. In the Service image, the sitecustomize of the inherited PYTHONPATH gives the gate row pytest, so the row failed with "No module named 'pytest'" on both trees. The fixture now puts the src/ of the checkout first and keeps the inherited PYTHONPATH after it, as tests/commands/test_ci.py does.
67491ff to
ce34ef0
Compare
Second push: Service Image Tests (shard 2 of 6)The first run failed Fix (commit 47bc55f): the fixture puts the |
🤖 I have created a release *beep* *boop* --- ## [0.127.1](v0.127.0...v0.127.1) (2026-11-13) ### Bug Fixes * **ci:** alarm at 360 s, one P0 issue, shards by recorded time ([#5377](#5377)) ([2abd6ff](2abd6ff)) * **github:** read the plan diff and the release files from the merge base ([#5401](#5401)) ([c54e14c](c54e14c)) * **infra:** turn off the Ansible color of every playbook run ([#5381](#5381)) ([5bafb1a](5bafb1a)), closes [#5352](#5352) * install-tools --check passes an older openspec binary ([#5355](#5355)) ([625c89d](625c89d)) * **k8s:** allow only the Ingress origins in Open WebUI ([#5357](#5357)) ([fdab229](fdab229)) * **pr:** count only the latest run of each check ([#5393](#5393)) ([634dc91](634dc91)) * **review:** drop the fixed gateway URL of the review dry run ([#5399](#5399)) ([0666d3d](0666d3d)) * **review:** review a pull request at the merge base of its base branch ([#5387](#5387)) ([351ba2a](351ba2a)), closes [#5346](#5346) * **roadmap:** end fix-plan at a time budget with a result line ([#5380](#5380)) ([20468f4](20468f4)), closes [#5363](#5363) * **roadmap:** refine skips an item that changed during the write ([#5392](#5392)) ([a863dda](a863dda)) * **roadmap:** stage writes RENAMED and REMOVED spec deltas ([#5367](#5367)) ([4abbbd2](4abbbd2)) * **roadmap:** title the delivery by the summary of its plan ([#5376](#5376)) ([10e1069](10e1069)) --- 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>
devops ci job-timenow fails only when the mean of the last 20 runs ofTests & Coverageonmainis over 360 s: the 300 s target of AGENTS.md rule 5 and the 60 s of tolerance that the owner allowed on 2026-10-23. With--file-issue, the dailyTest Job Durationjob comments on the open alarm issue of the check, or files one with the Status New and the priority P0.The mean was 316 s because the split by lines put a short module with slow tests in one shard. The split now weighs each test module by its seconds in
tests/module_durations.json, which the newdevops ci durationswrites from the JUnit reports of the shards. This builds the shard weights that #4250 asks for. The unused pytest-split pin goes.A fixture of #5362 keeps the inherited PYTHONPATH, which gives pytest in the Service image.
Closes #5247
Change:
openspec/changes/archive/2026-11-13-5247-the-duration-alarm-fires-at-360/