You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test-macos: the Python tests step hits its 300-minute limit and uploads no junit results #5656
For two nights running, the scheduled test-macos job's 🧪 Python tests step has hit its 300-minute timeout-minutes (.github/workflows/ci.yaml). pytest writes results.xml only at the end, so the uploaded artifact holds just output.log and screenshots, and nothing reads per-test results for macOS.
64%: gw1 started tests/journeys/test_render_widgets.py::test_a_side_list_is_a_queue_beside_the_item_it_opens and gw0 …::test_a_playground_preset_reset_copy_and_narrow_layout_share_the_same_state, and neither reports
97%: the last two started tests are in tests/process/test_interact_server.py (test_temporary_server_answers_a_connection_opened_before_its_request, test_a_comment_carrying_line_separators_survives_the_log)
The eight scheduled runs before these finished the job in 3h25m to 4h33m, and the time has been rising: Oct 31 3h25m, Nov 1 3h42m, Nov 2 4h22m, Nov 3 4h33m, Nov 4 4h31m. Neither log has a faulthandler stack dump, and pyproject.toml sets faulthandler_timeout = 1800, so no single test call ran for 30 minutes. Its comment notes that the timer doesn't bound the cleanup after a failure. So this is either the whole suite outgrowing five hours on the three-core runner, or a failed test whose cleanup never finishes (the two nights stop at different tests). These logs can't tell which.
This matters beyond macOS. With no results.xml, the scheduled report sees only "macOS failed", and a macOS-only regression can't be read from the run at all.
Worth checking first: the --durations=25 the job already asks for prints only at the end, so it is lost too. A Linux test job's junit (leaf-dev suite-profile) shows which tiers have grown. Changing the step's timeout or the job's shape is a workflow change that needs the control-plane owner's approval (.claude/skills/running-tend/SKILL.md, Landing).
#5678 splits test-macos into two shards, tests/browser and everything else, each on its own runner. It edits ci.yaml, so it waits for @max-sixty's approval.
The cause is that the suite outgrew the limit. It didn't hang. In both timed-out runs the job log shows tests still passing in the minute before the 300-minute kill, which rules out a failed test's cleanup that never finished. Failures add a lot of the time: on Nov 7, 84 failed tests (mostly 120 s Playwright waits) used 1.72 of the 9.1 worker-hours. Nov 5 had 127 failures by 64% and fell behind from the first hour.
The Nov 7 scheduled run (42365682113) finished in 4:28 and did upload results.xml, so the timeout is intermittent, not on every night. Its junit splits evenly: 4.55 worker-hours for browser and 4.55 for the other tiers, which puts each shard at about 2.3 hours. The first scheduled run after #5678 merges will confirm it.
Closing without splitting the job: test-macos stays on one runner, and #5678 closes unmerged. If the suite grows past the limit, we'll fix it by cutting the CPU each test uses, not by adding runners or workers.
The runner is short of CPU, not of workers. From Nov 11 to Nov 15 the nightly test step took 4h12m to 4h59m at two workers. A trial at four workers (run 43780587059) took 4h11m: the three-core runner sat at 0% idle from the first minute, each test took 1.9 times as long, and memory peaked at 7.1 of its 7.5 GB.
This was written by Claude Code on behalf of max-sixty
Reopening with new evidence: test-macos hit the 300-minute limit again in scheduled run 43853405137 (1740bb536), at 61% and with no results.xml. The Nov 15 run finished.
The suite didn't hang. The longest gap between two log lines was 8 minutes. It ran slower throughout: the test step reached 10% after 38 minutes and 50% after 3h29m, then needed 90 minutes for the next tenth. Over the 5,166 tests both runs reached, per-test time went from 14,414 s on Nov 15 to 17,263 s (+20%, measured from each test's start and result lines in the job logs). The files that grew most hold this run's new failures, each spending its 120 s waits: test_floating_box_motion.py 139 → 670 s, test_pressed_controls.py 296 → 514 s, test_render_visual_review_journey.py 40 → 154 s, browser/navigation/test_go_to.py 19 → 124 s.
So the suite crossed the limit you named when closing this. Much of the margin it lost goes to failures that now have owners (#6172 and #6174–#6182), which will hand some time back as they land. Cutting per-test CPU, as you directed, is the durable fix. This run also lost the diagnostics for four macOS-only failures (#6183).
The Nov 17 scheduled run 44068597322 (2aabb5436) finished the macOS Python step within the 345-minute limit from #6209. The junit suite time was 18,572 s (about 310 minutes) over 9,390 tests, and the step uploaded results.xml. It failed on test results, not the limit. That is about 35 minutes of headroom on the first complete starved run. Its slowest cases were Firefox test_every_part_of_a_floating_box_moves_one_way_per_input (1,757 s) and test_page_fixture_renders[feature-gallery] (916 s).
Closing: #6209 settles both halves of this report. The macOS Python step now has a 345-minute limit, and gtimeout sends pytest an interrupt at that limit. pytest then writes results.xml for every test that ran, so a run that overruns still uploads per-test results instead of only "macOS failed". The first scheduled run after the merge (44068597322) finished within the limit with about 35 minutes to spare and uploaded results.xml.
What's left is headroom, and the earlier closing comment already says how to recover it if the suite grows again: cut the CPU each test uses. The failures in that run are tracked under their own cause issues. If a later nightly overruns, its CI failure report will reopen triage, and with this change that run will still have per-test results to read.
Activity
leaf-agent commentedon Nov 7, 2026
#5678 splits
test-macosinto two shards,tests/browserand everything else, each on its own runner. It editsci.yaml, so it waits for @max-sixty's approval.The cause is that the suite outgrew the limit. It didn't hang. In both timed-out runs the job log shows tests still passing in the minute before the 300-minute kill, which rules out a failed test's cleanup that never finished. Failures add a lot of the time: on Nov 7, 84 failed tests (mostly 120 s Playwright waits) used 1.72 of the 9.1 worker-hours. Nov 5 had 127 failures by 64% and fell behind from the first hour.
The Nov 7 scheduled run (42365682113) finished in 4:28 and did upload
results.xml, so the timeout is intermittent, not on every night. Its junit splits evenly: 4.55 worker-hours forbrowserand 4.55 for the other tiers, which puts each shard at about 2.3 hours. The first scheduled run after #5678 merges will confirm it.Have Tend's daily review weigh the benchmark report and file an issue…
max-sixty commentedon Nov 16, 2026
Closing without splitting the job:
test-macosstays on one runner, and #5678 closes unmerged. If the suite grows past the limit, we'll fix it by cutting the CPU each test uses, not by adding runners or workers.The runner is short of CPU, not of workers. From Nov 11 to Nov 15 the nightly test step took 4h12m to 4h59m at two workers. A trial at four workers (run 43780587059) took 4h11m: the three-core runner sat at 0% idle from the first minute, each test took 1.9 times as long, and memory peaked at 7.1 of its 7.5 GB.
leaf-agent commentedon Nov 16, 2026
Reopening with new evidence:
test-macoshit the 300-minute limit again in scheduled run 43853405137 (1740bb536), at 61% and with noresults.xml. The Nov 15 run finished.The suite didn't hang. The longest gap between two log lines was 8 minutes. It ran slower throughout: the test step reached 10% after 38 minutes and 50% after 3h29m, then needed 90 minutes for the next tenth. Over the 5,166 tests both runs reached, per-test time went from 14,414 s on Nov 15 to 17,263 s (+20%, measured from each test's start and result lines in the job logs). The files that grew most hold this run's new failures, each spending its 120 s waits:
test_floating_box_motion.py139 → 670 s,test_pressed_controls.py296 → 514 s,test_render_visual_review_journey.py40 → 154 s,browser/navigation/test_go_to.py19 → 124 s.So the suite crossed the limit you named when closing this. Much of the margin it lost goes to failures that now have owners (#6172 and #6174–#6182), which will hand some time back as they land. Cutting per-test CPU, as you directed, is the durable fix. This run also lost the diagnostics for four macOS-only failures (#6183).
leaf-agent commentedon Nov 17, 2026
The Nov 17 scheduled run 44068597322 (
2aabb5436) finished the macOS Python step within the 345-minute limit from #6209. The junit suite time was 18,572 s (about 310 minutes) over 9,390 tests, and the step uploadedresults.xml. It failed on test results, not the limit. That is about 35 minutes of headroom on the first complete starved run. Its slowest cases were Firefoxtest_every_part_of_a_floating_box_moves_one_way_per_input(1,757 s) andtest_page_fixture_renders[feature-gallery](916 s).leaf-agent commentedon Nov 18, 2026
Closing: #6209 settles both halves of this report. The macOS Python step now has a 345-minute limit, and
gtimeoutsends pytest an interrupt at that limit. pytest then writesresults.xmlfor every test that ran, so a run that overruns still uploads per-test results instead of only "macOS failed". The first scheduled run after the merge (44068597322) finished within the limit with about 35 minutes to spare and uploadedresults.xml.What's left is headroom, and the earlier closing comment already says how to recover it if the suite grows again: cut the CPU each test uses. The failures in that run are tracked under their own cause issues. If a later nightly overruns, its CI failure report will reopen triage, and with this change that run will still have per-test results to read.