Repository navigation
Raise Modal sandbox timeout to absorb full-suite runtime - #8571
Merged
Merged
Conversation
delock
approved these changes
Sep 17, 2026
delock
enabled auto-merge
September 17, 2026 10:32
Collaborator
|
Long term plan is move multi-rank + non GPU mandatory back to CPU workflow. And take furhter action to reduce modal usage. The former part is an on going task from #8381 . We will also need cto address UT number increase. If you have thoughts and ideas, please leave comments in that PR. Thanks! |
The master-push full suite now needs ~62 min of pytest on top of sandbox setup, which leaves almost no headroom under the 4200s sandbox limit: runs are SIGKILLed (exit 137) near completion whenever pytest is a few minutes slower than average. Raise the sandbox timeout to 5400s; the deploy job timeout (105 min) already covers the added margin. Signed-off-by: Jin, Youzhi <youzhi.jin@intel.com>
delock
disabled auto-merge
September 17, 2026 12:57
delock
enabled auto-merge
September 17, 2026 12:57
delock
self-requested a review
September 17, 2026 13:02
pull Bot
pushed a commit
to fish003/DeepSpeed
that referenced
this pull request
Sep 30, 2026
## Motivation The master full suite on `modal-torch-latest` grew from ~52 to ~70 minutes within a month and keeps climbing ~7-8 min/week, repeatedly exhausting its Sandbox/job time budgets (the 3600 -> 4200 -> 5400s raises are chasing the growth). This PR adds a scheduled nightly full-suite run with automated, noise-free failure triage, so master landings no longer pay the full-suite cost on every push and nightly regressions are reported without flooding the tracker. ## Changes **1. Nightly full-suite run; no master push trigger** - A `schedule` (cron, daily `0 10 * * *`) run always executes the full suite on master; this is the only event whose failures feed automated regression triage. - The `push` trigger is dropped: master receives no direct pushes (the merge queue lands every entry, and each `merge_group` run already tested the merged tree). Cross-entry interaction regressions are what the nightly full suite exists to catch. - `concurrency` group now includes `github.event_name` so a nightly run and merge-queue runs don't cancel each other. **2. Controller classifies its own failures (`ci/torch_latest.py`)** - `infra` (exit 75): the Sandbox never got a GPU instance — no test ran, no candidate information. - `timeout` (exit 124): the Sandbox lifetime budget was exhausted mid-run (classified just inside the nominal budget, with a 120s grace for server-side kills). - `test` (exit 1): everything else, raised with a full traceback as before. - Each class prints a `DS_CI_FAILURE_CLASS=<class>` sentinel line that survives into job logs even when the job is killed before exiting. **3. Nightly triage (`nightly-triage.yml`, `ci/nightly_classify.sh`, `ci/nightly_report.sh`)** - Triggered by `workflow_run` on completed `modal-torch-latest` runs, filtered to scheduled master runs only; all script checkouts are pinned to the SHA the nightly actually ran (`github.event.workflow_run.head_sha`), so the classifier and the sentinel protocol it parses come from the same revision even if master moved on overnight. - **green** → move the `nightly-last-green` tag to the tested SHA (persistent good endpoint for future range work; operational failure days simply leave it in place). - **infra** → no-op (capacity problem, no candidate information). - **timeout** → open an issue (the suite outgrew its Sandbox budget; consider shard-splitting or raising it). - **unknown** → open an issue (no sentinel: the run died before the controller could classify itself — checkout, setup, or a job kill). Kept distinct from timeout instead of guessing. - **test failures** → open an issue listing the failing test files (parsed from the nightly log). - All reports go through `ci/nightly_report.sh`: labeled `nightly-triage`, and a recurring regression with the same stable title comments on the existing open issue instead of filing a duplicate (titles are deliberately SHA-free; the per-night SHA and run link go in the body). **4. Housekeeping**: refreshed stale self-tests that no longer matched master (sandbox timeout 4200 -> 5400 left behind by deepspeedai#8571, merge-group trusted-ref expression, the baked-image `FakeImage` chain, and the removed `reinstall Torch packages` runtime command). `ci/test_torch_latest.py` is 24/24 green; pre-commit passes on all changed files. ## Known limitations - The nightly run doubles as an upstream-drift sentinel (it installs transformers from git `main`); red nightlies caused by upstream drift are reported as ordinary test failures, and the issue text keeps the run link for human judgment. - Triage routes on the sentinel protocol of the nightly SHA; a controller change to that protocol requires this PR's self-tests (`ci/test_torch_latest.py`) to be updated in the same change. --------- Signed-off-by: Ma, Guokai <guokai.ma@intel.com>
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 master-push full suite now needs ~62 min of pytest on top of sandbox setup, which leaves almost no headroom under the 4200s sandbox limit: runs are SIGKILLed (exit 137) near completion whenever pytest is a few minutes slower than average. Raise the sandbox timeout to 5400s; the deploy job timeout (105 min) already covers the added margin.
@delock