Skip to content

[Train] Deflake test_tensorflow_checkpoint - #63301

Merged
matthewdeng merged 1 commit into
ray-project:masterfrom
pseudo-rnd-thoughts:deflaky-test-tf-checkpoint
May 13, 2026
Merged

matthewdeng merged 1 commit into
ray-project:masterfrom
pseudo-rnd-thoughts:deflaky-test-tf-checkpoint

Conversation

@pseudo-rnd-thoughts

Copy link
Copy Markdown
Member

Description

test_tensorflow_checkpoint is flaky however reviewing the logs, the test is taking the expected length of time however seems to be failing to shutdown in time.
Therefore, to deflaky, this PR just increases the length of time for the test

@pseudo-rnd-thoughts
pseudo-rnd-thoughts requested a review from a team as a code owner May 12, 2026 12:09
@pseudo-rnd-thoughts pseudo-rnd-thoughts added train Ray Train Related Issue go add ONLY when ready to merge, run all tests labels May 12, 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 increases the test size for test_tensorflow_checkpoint from "small" to "medium" to mitigate timeout issues. The reviewer suggested adding ":conftest" to the test's dependencies to ensure proper resource cleanup and Ray cluster lifecycle management, which may address the root cause of the shutdown delays.

py_test(
name = "test_tensorflow_checkpoint",
size = "small",
size = "medium",

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.

medium

Increasing the test size to "medium" is a reasonable way to address timeout issues during shutdown. However, I noticed that this test is missing ":conftest" in its "deps" (line 817), unlike "test_torch_checkpoint" (line 865) and "test_tensorflow_predictor" (line 821). In this repository, "conftest.py" often contains essential fixtures for Ray cluster lifecycle management and cleanup. If this test relies on those fixtures for a clean exit, its absence might be contributing to the shutdown delays. Consider adding it to the "deps" list to ensure resources are released correctly.

@pseudo-rnd-thoughts pseudo-rnd-thoughts changed the title [Train] Deflaky TF checkpoint test [Train] Deflake test_tensorflow_checkpoint May 12, 2026
@matthewdeng
matthewdeng merged commit febc889 into ray-project:master May 13, 2026
4 checks passed
alexandrplashchinsky pushed a commit to alexandrplashchinsky/ray-alex that referenced this pull request May 29, 2026
## Description
`test_tensorflow_checkpoint` is flaky however reviewing the logs, the
test is taking the expected length of time however seems to be failing
to shutdown in time.
Therefore, to deflaky, this PR just increases the length of time for the
test

Signed-off-by: Mark Towers <[email protected]>
Co-authored-by: Mark Towers <[email protected]>
Signed-off-by: Alexandr Plashchinsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants