Repository navigation
ci: run the nightly macOS suite as two shards so each finishes inside its time limit - #5678
Closed
leaf-agent wants to merge 1 commit into
Closed
leaf-agent wants to merge 1 commit into
leaf-agent wants to merge 1 commit into
Conversation
… step limit The nightly macOS suite ran on one runner in four to five hours and hit the Python step's 300-minute limit on 2026-11-05 and 2026-11-06, which kills pytest before it writes results.xml or prints --durations. Both logs show tests still passing seconds before the kill, so the suite outgrew the limit; it did not hang. The job now runs as a matrix: tests/browser, and every other tier. On 2026-11-07's junit each took about 4.5 worker-hours, so each shard should take about 2.3 hours on its two workers. Each shard uploads its own artifact, named with the shard. Closes #5656
This was referenced Nov 7, 2026
Closed
Owner
|
Closing unmerged:
|
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 nightly
test-macosjob ran every tier on one runner in four to five hours. On 2026-11-05 and 2026-11-06 it hit the Python step's 300-minutetimeout-minutes, which kills pytest before it writesresults.xmlor prints--durations. The suite didn't hang: both job logs show tests passing seconds before the kill (last result at 15:53:58 and 15:53:59, limit at 15:54). This PR splits the job into a two-entry matrix,tests/browserandtests --ignore=tests/browser, each on its own runner with the same two workers, step limit and--run-nightlyselection. Each shard uploads its own artifact,pytest-results-test-macos-<shard>-<run>-<attempt>.Expected effect. Per 2026-11-07's macOS junit (run 42365682113, which finished in 4:28 and did write junit),
browsertook 4.55 worker-hours and the other tiers 4.55 (journeys 4.29, the rest 0.26). So each shard should take about 2.3 hours, far from the 5-hour limit. Collection by path adds up to the full nightly selection: 3700 + 3098 = 6798 tests, the same count aspytest tests --run-nightly --collect-only. The repository is public, so the second macOS runner costs wall-clock concurrency, not paid minutes.Verification. The workflow passes the pre-commit
actionlinthook. Nothing here can run macOS, so the first scheduled run after merge is the real check: twotest-macos (…)jobs that each finish and each upload aresults.xml. If that run still times out, its report brings this back to triage.Needs @max-sixty's approval. This edits
.github/workflows/ci.yaml, which is in the control plane, so it waits for the control-plane owner rather than landing on review alone.Where the time goes
tests/journeys/test_render_gate.pyand the other render journeys) takes 1.4–1.5 hours on every night. The slowest single call wastest_page_fixture_opens_without_firefox_console_warnings[feature-gallery]at 990 s.testjob already does withtimeout --signal=INT … 5h. That keeps the results of a run that overruns but doesn't give back the headroom. Sharding makes an overrun unlikely unless something actually hangs, andfaulthandler_timeoutalready covers a hung test call.Closes #5656 — automated triage