Skip to content

[train][ci] Extending timeout for torchft-nightly ci tests - #63789

Merged
elliot-barn merged 4 commits into
masterfrom
fix-torchft-ci-test
Jun 3, 2026
Merged

elliot-barn merged 4 commits into
masterfrom
fix-torchft-ci-test

Conversation

@elliot-barn

@elliot-barn elliot-barn commented Jun 2, 2026 •

Copy link
Copy Markdown
Collaborator

Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn requested a review from TimothySeah June 2, 2026 06:05
@elliot-barn elliot-barn added alpha go add ONLY when ready to merge, run all tests and removed alpha labels Jun 2, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request downgrades the torchft-nightly dependency from version 2026.5.15 to 2025.7.27 in both the requirements file and the dependency lock file. Additionally, it removes several unused OpenTelemetry-related dependencies, such as opentelemetry-exporter-otlp-proto-http and opentelemetry-exporter-otlp-proto-common. I have no feedback to provide as there are no review comments to assess.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@ray-gardener ray-gardener Bot added train Ray Train Related Issue devprod labels Jun 2, 2026

@TimothySeah TimothySeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any test_torch_trainer logs in premerge - do you know where I can find them to confirm that it passed?

Can you also explain why you picked torchft-nightly==2025.7.27? There are a decent number of torchft commits after that point (https://github.com/meta-pytorch/torchft/commits/main/), and I also worked with the torchft team to merge meta-pytorch/torchft#317 which fixed meta-pytorch/torchft#283.

@elliot-barn
elliot-barn requested a review from a team as a code owner June 2, 2026 19:51
elliot-barn and others added 2 commits June 2, 2026 20:29
This reverts commit 6f1cf42.

Signed-off-by: elliot-barn <[email protected]>
test_torchft_linear_replica_failure[1-1-False-3-1] fails because the
surviving replica cannot re-form the gloo process group within the 5s
timeout after a peer replica dies on a loaded CI machine. The reconfigure
times out (DistStoreError: wait timeout after 5000ms), the process group is
never initialized, and torchft's allreduce skip-path returns a bare Future
whose `_fut` attribute the DDP comm hook asserts on -- surfacing as
`AttributeError: 'Future' object has no attribute '_fut'` and a
WorkerGroupError that the test (expect_error=False) does not expect.

Raise the gloo ProcessGroupGloo and PGTransport timeouts to 30s and the
Manager timeout to 60s so the post-failure reconfigure has enough
wall-clock to complete, keeping inner PG waits <= the outer quorum timeout.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn force-pushed the fix-torchft-ci-test branch from d7bc334 to 2869144 Compare June 2, 2026 20:29
The torchft target test_torch_trainer is classified FLAKY in the branch
test DB, so the regular premerge step skips it (test_targets.difference
(flaky_tests)) and reports "No tests to run". Add --run-flaky-tests to the
torchft step so the flaky target is selected (intersection with the flaky
set) and we get a real pass/fail on the gloo-timeout recovery fix.

REVERT before merge: once the test is un-flaked this flips back to
"No tests to run", and the step is a hard gate, not soft_fail.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>

@TimothySeah TimothySeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a bunch! Don't forget to change the PR title.

@elliot-barn elliot-barn changed the title [train][ci] downgrading torchft-nightly for ci tests [train][ci] Extending timeout for torchft-nightly ci tests Jun 3, 2026
@elliot-barn
elliot-barn merged commit b2a897e into master Jun 3, 2026
3 checks passed
@elliot-barn
elliot-barn deleted the fix-torchft-ci-test branch June 3, 2026 04:58
rueian pushed a commit to rueian/ray that referenced this pull request Jun 4, 2026
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devprod go add ONLY when ready to merge, run all tests train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants