Repository navigation
CI: raise the Core zoo job cap from 25 to 35 minutes - #14240
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
#14268) ## Summary `studio/backend/tests/test_kernel_install.py::test_a_timed_out_build_stops_its_whole_process_tree` flakes in the `(Python 3.13, a-k)` shard (seen on #14240): ``` tests/test_kernel_install.py:1041: in test_a_timed_out_build_stops_its_whole_process_tree if stat.read().split()[2] == "Z": E ProcessLookupError: [Errno 3] No such process ``` ## Cause The test polls the killed grandchild until it is gone. That means `kill(pid, 0)` fails, or `/proc/<pid>/stat` shows a zombie, or that file is missing. The grandchild can be reaped between opening `/proc/<pid>/stat` and reading it. On Linux that read raises `ProcessLookupError` (ESRCH), not `FileNotFoundError`. So the test failed exactly when the process had already gone, which is the outcome it was waiting for. The product (`kernel_install.run_process_tree`) is fine. The poll came in with #13971. Reproduced directly: open `/proc/<pid>/stat` of a live child, kill and reap it, then read. The read raises `ProcessLookupError: [Errno 3] No such process`. ## Change Test-only: - **`_process_gone(pid)`:** the same three checks, with `(FileNotFoundError, ProcessLookupError)` both counted as gone. - **`test_a_process_reaped_while_its_stat_is_read_counts_as_gone`:** makes the race deterministic. `open` of the child's stat file kills and reaps the child right after opening, and `kill(pid, 0)` reports it alive, as at the start of the race. It is skipped where there is no procfs. ## Testing - **`studio/backend/tests/test_kernel_install.py`:** 119 passed. - **Sabotage:** with the helper back to catching only `FileNotFoundError`, the new test fails with `ProcessLookupError: [Errno 3] No such process`. That is the CI failure.
## Summary Every `Core zoo` cell in `consolidated-tests-ci.yml` is now being cancelled at its 35 minute job cap, on unrelated PRs, with the unsloth_zoo suite at 99%. It is the same failure #14240 fixed at 25 minutes: the suite has grown past the cap. A passing cell from today, for scale: the zoo `pytest -n 4` step reported `14494 passed, 2462 skipped ... in 1770.53s (0:29:30)`, and the whole job ran 34m57s, three seconds under the cap. ## Change - `Core zoo` job: `timeout-minutes: 35` -> `50`, comment updated with the current numbers. - Unchanged: the 5 minute `PYTEST_TIMEOUT` per test, which is what names and stack-dumps a genuine hang. The job cap only bounds the total. ## Evidence Staging Core runs since 2026-10-30 21:28 UTC, Core zoo cells by combo: | PR | HF=4.57.6 | HF=default | HF=latest | |---|---|---|---| | #16041 | failure | cancelled | cancelled | | #16249 | cancelled | cancelled | cancelled | | #16250 | cancelled | cancelled | cancelled | | #16257 | cancelled | cancelled | cancelled | | #16255 (run 1) | cancelled | success (34m57s) | success (28m46s) | | #16255 (run 2) | success | cancelled | cancelled | The cancelled cells end with `##[error]The operation was canceled.` while the suite is printing its last progress lines (98-99%). ## Tests `tests/studio/test_zoo_suite_parallel_isolation.py`, `test_workflow_guards_run_unfiltered.py` and every test that reads `consolidated-tests-ci.yml`: 267 passed. ## Not proven - This PR's own CI run is the first measurement at the new cap; whether 50 minutes leaves enough headroom as the suite keeps growing is not known.
Summary
The
Core zoocells inconsolidated-tests-ci.ymlkeep hitting their 25 minute job cap after the tests have already passed. In one cancelled cell:pytest -n 4step ran from 08:41 to 09:03 and passed (3015 passed, 620 skipped),test_apply_fused_lm_headand the pip cache save.The comment above the cap assumed a ~7.6 min zoo suite. It now takes up to about 23 minutes on a busy runner, so the cap cancels cells that have already passed. Today that cancelled Core zoo cells on #14152, #14165, #14188, #14192, #14199 and #14207, and on staging runs. Each one needs a manual rerun before the PR can merge.
This raises the cap to 35 minutes, the same as
consolidated. Hung tests are still bounded:PYTEST_TIMEOUT: 300in the step still names the culprit per test.Tests
The workflow-parsing tests (
git grep -l consolidated-tests-ci -- tests): 158 passed, 3 skipped.