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][Clean][03] Break run_release_test into smaller functions #33951

Merged
merged 8 commits into from
Apr 12, 2023

Conversation

can-anyscale
Copy link
Collaborator

@can-anyscale can-anyscale commented Mar 30, 2023

Why are these changes needed?

A purely refactor diff. Break run_release_test in glue.py into smaller functions so they are easier to read, test and change. It helps me to make future change easier too.

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.
  • Testing Strategy
    • Unit tests - python -m pytest ray_release/tests/
    • Release tests

@can-anyscale can-anyscale force-pushed the can-ci-clean-02 branch 2 times, most recently from 0b2db8d to bfa4ae9 Compare April 5, 2023 14:19
@can-anyscale can-anyscale marked this pull request as ready for review April 5, 2023 16:10
@can-anyscale can-anyscale requested a review from a team as a code owner April 5, 2023 16:10
Base automatically changed from can-ci-clean-02 to master April 6, 2023 17:48
can-anyscale and others added 8 commits April 8, 2023 20:17
Clean up client runner
Clean up client runner
Clean up client runner
Signed-off-by: Cuong Nguyen <[email protected]>
Clean up client runner
* Migrate dataset_shuffle_random_shuffle_1tb to run on anyscale job v2

Signed-off-by: Cuong Nguyen <[email protected]>

* Migrate some tests off of deprecated infrastructure:
 - dataset_shuffle_random_shuffle_1tb to run on anyscale job v2
 - tune_scalability_result_throughput_single_node to run on anyscale job v2

Signed-off-by: Cuong Nguyen <[email protected]>

* Deprecate test client and job runner.

Signed-off-by: Cuong Nguyen <[email protected]>

* Clean up AnyscaleJobRunner

Signed-off-by: Cuong Nguyen <[email protected]>

* Linters

Signed-off-by: Cuong Nguyen <[email protected]>

* Lint

Signed-off-by: Cuong Nguyen <[email protected]>

* Fix import

Signed-off-by: Cuong Nguyen <[email protected]>

* Correct indentation

Signed-off-by: Cuong Nguyen <[email protected]>

---------

Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: Cuong Nguyen <[email protected]>
@can-anyscale
Copy link
Collaborator Author

pingping @aslonnie @krfricke @scv119

Purely a refactor PR and I have ran a lot of release tests on top of this so high chance of being safe

Copy link
Collaborator

@aslonnie aslonnie left a comment

Choose a reason for hiding this comment

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

the breaking itself looks good. I did not really verify if it is breaking correctly, but I trust you. :)

should we add unit tests to the new-born smaller functions somewhere?

@can-anyscale
Copy link
Collaborator Author

Testing the new-borns are always good ideas ;). I'll investigate their logic more and add more tests as a follow up

@scv119 scv119 merged commit b3feb9b into master Apr 12, 2023
@scv119 scv119 deleted the can-ci-clean-03 branch April 12, 2023 18:52
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
…oject#33951)

A purely refactor diff. Break run_release_test in glue.py into smaller functions so they are easier to read, test and change. It helps me to make future change easier too.
Signed-off-by: Cuong Nguyen <[email protected]>

---------

Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: Cuong Nguyen <[email protected]>

---------

Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: elliottower <[email protected]>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
…oject#33951)

A purely refactor diff. Break run_release_test in glue.py into smaller functions so they are easier to read, test and change. It helps me to make future change easier too.
Signed-off-by: Cuong Nguyen <[email protected]>

---------

Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: Cuong Nguyen <[email protected]>

---------

Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: Jack He <[email protected]>
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.

6 participants