Skip to content

[tune] relax test_experiment_restore timeout - #53387

Merged
matthewdeng merged 3 commits into
ray-project:masterfrom
matthewdeng:restore-timeout
Jun 2, 2025
Merged

matthewdeng merged 3 commits into
ray-project:masterfrom
matthewdeng:restore-timeout

Conversation

@matthewdeng

Copy link
Copy Markdown
Contributor

This test is flakily timing out, in particular for Python 3.12 tests. This is most likely due to minor regressions that have built up over time across the stack, and perhaps test concurrency?

Increasing this buffer for now. In the future we may want to improve this test to be more deterministic and restrictive in testing.

@matthewdeng
matthewdeng requested a review from a team May 28, 2025 23:34
@matthewdeng matthewdeng added the go add ONLY when ready to merge, run all tests label May 29, 2025

@justinvyu justinvyu 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.

let's just remove the runtime requirement. this test can just keep the assertions for "Training Req 2: Training progress persisted:"

Signed-off-by: Matthew Deng <[email protected]>
f"Currently at {total_runtime:.2f} seconds"
)

# Sleep for a random amount of time, then stop the run.

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.

This is slightly outside this PR's scope but why is this sleeping until time.monotonic() >= stopping_time instead of just sleeping until stopping_time?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call out, I have no idea. Updated the code to just sleep for exactly timeout_s time instead lol.

Signed-off-by: Matthew Deng <[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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants