Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tune] Fix tune_cloud_* tests fow new Trial dict #32010

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

krfricke
Copy link
Contributor

Signed-off-by: Kai Fricke kai@anyscale.com

Why are these changes needed?

#31669 changed the Trial.__dict__ by moving local_dir to _local_dir, which resulted in an error in our tune cloud tests. This PR updates the signature of the TrialStub class to resolve the issue.

Related issue number

Closes #32007

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Kai Fricke <kai@anyscale.com>
@@ -77,7 +77,7 @@ def __init__(
trial_id: str,
status: str,
config: Dict[str, Any],
local_dir: str,
_local_dir: str,
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it's possible to write basic unit tests for the release tests to catch these kind of errors earlier?

Copy link
Contributor

@justinvyu justinvyu Jan 27, 2023

Choose a reason for hiding this comment

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

It looks like some AIR/ML release tests have smoke tests, but not all of our release tests have a smoke test version.

@krfricke krfricke merged commit 25a7df6 into ray-project:master Jan 27, 2023
@krfricke krfricke deleted the tune/cloud-test-trialstub branch January 27, 2023 22:18
edoakes pushed a commit to edoakes/ray that referenced this pull request Mar 22, 2023
…y-project#32010)

ray-project#31669 changed the `Trial.__dict__` by moving `local_dir` to `_local_dir`, which resulted in an error in our tune cloud tests. This PR updates the signature of the `TrialStub` class to resolve the issue.

Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
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.

[Ray 2.3 release] tune_cloud_gcp_k8s_durable_upload fails
3 participants