Skip to content

Raise Modal sandbox timeout to absorb full-suite runtime - #8571

Merged
delock merged 1 commit into
deepspeedai:masterfrom
jinyouzhi:ci-modal-timeout
Sep 17, 2026
Merged

delock merged 1 commit into
deepspeedai:masterfrom
jinyouzhi:ci-modal-timeout

Conversation

@jinyouzhi

Copy link
Copy Markdown
Contributor

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

@delock
delock enabled auto-merge September 17, 2026 10:32
@delock

delock commented Sep 17, 2026

Copy link
Copy Markdown
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
delock disabled auto-merge September 17, 2026 12:57
@delock
delock enabled auto-merge September 17, 2026 12:57
@delock
delock self-requested a review September 17, 2026 13:02
@delock
delock added this pull request to the merge queue Sep 17, 2026
Merged via the queue into deepspeedai:master with commit f2b210e Sep 17, 2026
13 checks passed
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>
@auto-pr-labeler-with-jev auto-pr-labeler-with-jev Bot added the skip-gpu-test Requires positive evidence that every changed behavior can be validated without a GPU. label Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-gpu-test Requires positive evidence that every changed behavior can be validated without a GPU.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants