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

[ci][fix] avoid update test object before its run #36354

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Conversation

can-anyscale
Copy link
Collaborator

Why are these changes needed?

The current code execution sync the test object with s3 db, which then discard all local changes to the test definition that is un-sync with the latest copy stored in s3. This prevents any local change to be picked up.

Avoid update the test object in general.

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • Testing Strategy
    • Unit tests
    • Release tests

@can-anyscale can-anyscale requested a review from a team as a code owner June 12, 2023 23:12
Comment on lines +44 to +46
clone_test = copy.deepcopy(test)
clone_test.update_from_s3()
if clone_test.is_jailed_with_open_issue(TestStateMachine.get_ray_repo()):
Copy link
Collaborator

Choose a reason for hiding this comment

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

any test to capture this behavior?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added tests \o/

Signed-off-by: can <can@anyscale.com>
@matthewdeng matthewdeng merged commit 08c8e29 into master Jun 14, 2023
@matthewdeng matthewdeng deleted the can-avoid-update branch June 14, 2023 03:42
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
Signed-off-by: can <can@anyscale.com>
Signed-off-by: e428265 <arvind.chandramouli@lmco.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.

3 participants