Skip to content

Repo tests (CPU): split the non-native tensor parallel files out of the gloo shard (2100 s cap) - #17969

Merged
danielhanchen merged 1 commit into
mainfrom
ci-split-gloo-tp-env
Nov 16, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-split-gloo-tp-env

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, gloo) is timing out again: the shard's pytest runs under timeout --signal=INT 2100 and recent runs were cut off there with nothing failing:

run result
#17934 (upstream) 257 passed, 3 skipped in 2089.55 s, exit 124
staging run of #17904 258 passed, 3 skipped in 2095.11 s, exit 124
staging run of #17957 251 passed, 1 failed in 2096.44 s, exit 124

For comparison the same shard ran 241 tests in 1292 s when #17892 merged this morning. Since then #17886 (test_tp_dpo_peft_ref_adapter_gloo.py), #17930 (test_cp_ulysses_media_towers_gloo.py), test_cp_ulysses_dynamic_len_gloo.py and the DeepSeek-V4.1 additions to test_parallel_deepseek_v41_gloo.py landed in it, and a slower runner now goes over the cap. Every one of those tests passes; the shard just no longer fits.

Change

  • .github/workflows/studio-backend-ci.yml: tests/test_tp_[!n]*gloo*.py (the non-native tensor parallel files: tp_env, tp_eval, tp_full_finetune, tp_replica, tp_kv_replicated, tp_moe_dropout, tp_dpo_peft_ref_adapter, ...; 12 files) moves out of gloo into a new gloo-tp-env shard. gloo keeps its other three globs (19 files). Comment added with the numbers above.
  • tests/studio/test_backend_ci_parallel_isolation.py: the command scan's expected counts go from 15 parallel runs / 10 repo-root shards to 16 / 11, as its message asks when a shard is added.

Why that split

Measured locally on main with the shard's exact command (-n 4 --dist loadgroup): 275 passed in 1302.83 s. Of the 40 slowest tests (2815 worker-seconds), 2716 s are in tests/test_tp_[!n]*gloo*.py; out of about 5200 worker-seconds in total, so these 12 files are well over half of the shard. Each half now has room under the cap on a slower runner.

Testing

  • tests/test_ci_repo_cpu_shards.py (every repo test file collected by exactly one shard, every glob matches a file): 15 passed.
  • All 15 test files that read studio-backend-ci.yml: 341 passed, 3 skipped.
  • The new shard's first run on this PR is the timing check.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T11:46:14.001033Z e8f38f2 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. Delightful!

Reviewed commit: e8f38f2c79

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

@danielhanchen
danielhanchen merged commit 3112563 into main Nov 16, 2026
@danielhanchen
danielhanchen deleted the ci-split-gloo-tp-env branch November 16, 2026 12:10
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