Repository navigation
Give the WMI deadline check headroom for Windows PowerShell job startup - #16257
Conversation
The check allowed 20 s for a 2 s deadline, but Windows PowerShell 5.1 runs the job in a fresh powershell.exe whose start and stop can exceed that on a loaded runner. Allow 45 s, which still separates abandoning the query from waiting its 60 s out, print the elapsed time, and check the empty result separately.
|
@codex review |
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
## 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.
tests/studio/test_early_python_process_image.ps1failed its first check on the Windows PowerShell 5.1 step ofparity (windows-latest), on a staging run for #16255, which does not touch the installer:The same check is green on most runs. It is timing-sensitive:
Get-StudioWmiProcessImageRows -TimeoutSeconds 2against a query that sleeps 60 s, and the whole call, includingStart-Job,Stop-JobandRemove-Job, had to finish inside 20 s. On Windows PowerShell 5.1 each job runs in a freshpowershell.exe, and on a loaded hosted runner its start and stop can push the call past 20 s even though the deadline itself is honoured. The installer logic is fine. The bound was just too tight for what it measures.Change
Verification
pwsh 7 on Linux:
install.ps1Wait-Jobwithout-Timeout