Repository navigation
Tests: four repo-wide reds on main (gloo banner, klein 9B host RAM, NVFP4 nested kernel, Kaggle input via env) - #19027
Merged
Conversation
… Kaggle input via env, klein 9B host RAM)
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
added a commit
that referenced
this pull request
Nov 23, 2026
…ut, kill on timeout (#19044) ## Summary `(Python 3.13, diffusion)` intermittently fails `studio/backend/tests/test_diffusion_ddp_effective_precision.py::test_real_gloo_two_ranks[fp8,fp8-SAME]` with `subprocess.TimeoutExpired` after 180 s, for example the staging run for #19024 on a base that already has #19027. Locally the test takes about 1.4 s per case, so this is a hang, not a slow runner. The log has nothing to go on: the two ranks' stderr is not captured, a rank stuck in a Gloo collective waits out Gloo's 30 minute default, and on timeout the children are left running. ## Change `studio/backend/tests/test_diffusion_ddp_effective_precision.py` only; no product code changes, and the checks are the same. - Child: `init_process_group(..., timeout=timedelta(seconds=60))`, so a stuck collective raises inside the rank with its own error instead of hanging. - Parent: each rank writes stdout and stderr to files under `tmp_path` instead of pipes, so one rank cannot block on a full pipe while the other is being waited on. - Both ranks share one 180 s deadline. On expiry both are killed and the test fails with each rank's return code, stdout and stderr, so the next occurrence names the stuck rank and where it was. - A nonzero exit also reports both ranks' output. This bounds the hang and makes it diagnosable; it does not claim a root cause, since no failing run has captured the ranks' output yet. ## Testing - The file: 13 passed, also under `-n 2`. - Sabotage, rank 1 stalled before `init_process_group` (deadline shortened for the check): the test fails after the deadline with `rank 0 rc=-9` / `rank 1 rc=-9` and both outputs, and no child process is left behind. - Sabotage, rank 1 exits right after init: rank 0 reports the closed connection and the test fails on the verdict within seconds.
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.
Summary
Four tests are red on
mainand fail on every PR whose staging run includes them (seen on #18918, #18925 and #19000). Each was reproduced onmainbefore fixing. In all four the code under test is right and the test is not.test_diffusion_ddp_effective_precision.py::test_real_gloo_two_ranks[fp8,*]((Python 3.13, diffusion))SAME,REFUSED ...), but gloo prints[Gloo] Rank N is connected to 1 peer ranks ...on the child's stdout first, and the test required the output to start with the verdict.test_diffusion_base_precision.py::test_resolve_auto_uses_klein_variant_sizeandtest_auto_sizes_flux2_klein_9b_off_its_own_weights[*]((Python 3.13, diffusion)):'nf4' == 'fp8'_auto_swap_host_ram_ok, because that load holds the bf16 base on the host. The tests fake the GPU but read the runner's real RAM, so a 16 GB CI runner getsnf4(correctly) and a large dev box getsfp8._not_rocmpin, since these cases simulate GPU tiers. Newtest_klein_9b_near_the_8bit_band_falls_back_to_nf4_on_a_small_hostpins the small-host fallback explicitly.tests/test_nvfp4_qat_backward_skip.py::test_cpu_forward_kernel_is_restored_on_exit(Repo tests (CPU, rest)):there's already a kernel registered from python overriding nvfp4_qat_linear_v2's behavior for CPU_cpu_forward_kernel(op)inside the module-scopedopfixture, which has already registered that kernel. torch 2.10 refuses a second Python registration for the same op, key and namespace, so the test fails on every run.opfixture is per test, and the restore test takes the bare op (newraw_opfixture), so it checks a real register-then-restore from a clean state.tests/kaggle/test_fire_and_forget.py::test_every_gate_budget_covers_the_reaper_window(Repo tests (CPU, rest-2)):the collector's default age ceiling is not readable from the workflowMAX_AGE_HOURS: ${{ inputs.max_age_hours || '3' }}, and the test's regex only knew the inline form.--max-age-hours.Only tests change.
Testing
main. With this change, 98 passed / 6 skipped (the two diffusion files) and 125 passed (the NVFP4 and Kaggle files);tests/kaggle/as a whole: 1081 passed.check_effective_precisiona no-op fails theREFUSEDcase._resolve_base_precisionfails the new small-host test. Forcing a 16 GB runner over the whole file fails the same 5 cases CI did, plus the new one.9fails (it no longer matchescollect.DEFAULT_MAX_AGE_HOURS), and so does not passing$MAX_AGE_HOURSto--max-age-hours(MAX_AGE_HOURS never reaches --max-age-hours).