Skip to content

Backend CI: run tensor and pipeline parallel gloo suites in separate shards - #16634

Merged
danielhanchen merged 1 commit into
mainfrom
dh/split-gloo-tp-pp
Nov 4, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
dh/split-gloo-tp-pp

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, gloo-tp-pp) is at its 2100 s cap. On #16618, which only touches the Studio MLX worker, it was interrupted with the suite almost done:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
174 passed, 7 skipped, 79 warnings, 320 subtests passed in 2088.59s (0:34:48)
##[error]Process completed with exit code 124.

The other recent runs of that job, across the last 20 PRs, took 30.5 to 36.2 minutes end to end, setup included, so a slightly slower runner is enough to tip it over. When this shard was created (#15951 split, #16447 comment) tensor plus pipeline parallel were about 1397 s. Pipeline parallel has grown a lot since then: every torch.distributed.pipelining schedule (#15655), per-stage sharded loading (#15656), no graph break on a non-last stage (#16167), and explicit-unscale overflow agreement (#16417). Nothing is wrong with those tests. The shard just outgrew its slot, the same way gloo did in #15951 and #16447.

Change

  • .github/workflows/studio-backend-ci.yml: gloo-tp-pp becomes two shards with the same settings (-n 4, the 2100 s cap, the marker filter):
    • gloo-tp: tests/test_tp_n*gloo*.py (2 files);
    • gloo-pp: tests/test_pp*gloo*.py (8 files).
  • tests/studio/test_backend_ci_parallel_isolation.py: test_the_command_scan_sees_the_parallel_run_and_the_serial_steps pins the number of parallel pytest runs. It asks to be told when a shard is added, so its counts go from 12 to 13 parallel runs and from 9 to 10 repo-root shards.

The selections are the old one split in two, so every file still runs exactly once.

Testing

  • tests/test_ci_repo_cpu_shards.py: 15 passed. With test_pp*gloo* narrowed to test_pp_[!n]*gloo* as a sabotage, test_no_file_is_dropped_or_run_twice fails, so a dropped file is still caught.
  • tests/studio/test_backend_ci_parallel_isolation.py, tests/test_ci_repo_cpu_shards.py and the workflow and cache-budget guards under tests/studio: 164 passed.
  • The two new shards' run times on this PR's own CI are the real check. Both should finish well under the cap.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 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-11-04T09:09:12.363929Z 080d358 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 080d35852b

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

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