Skip to content

CI: raise the Core zoo job cap from 25 to 35 minutes - #14240

Merged
danielhanchen merged 3 commits into
mainfrom
dh/ci-core-zoo-timeout
Oct 19, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
dh/ci-core-zoo-timeout

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

The Core zoo cells in consolidated-tests-ci.yml keep hitting their 25 minute job cap after the tests have already passed. In one cancelled cell:

  • the zoo pytest -n 4 step ran from 08:41 to 09:03 and passed (3015 passed, 620 skipped),
  • the job was then cancelled at 25:17 during test_apply_fused_lm_head and 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: 300 in the step still names the culprit per test.

Tests

The workflow-parsing tests (git grep -l consolidated-tests-ci -- tests): 158 passed, 3 skipped.

@danielhanchen danielhanchen self-assigned this Oct 19, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T12:33:58.381678Z c0e7787 Manual request
🔒 Security Review ✅ Completed 2026-10-19T12:34:56.908702Z c0e7787 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: c0e7787b45

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: c0e7787b45

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

danielhanchen added a commit that referenced this pull request Oct 19, 2026
#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.
@danielhanchen
danielhanchen merged commit 4f5a98c into main Oct 19, 2026
@danielhanchen
danielhanchen deleted the dh/ci-core-zoo-timeout branch October 19, 2026 19:14
danielhanchen added a commit that referenced this pull request Oct 31, 2026
## 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant