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 test result upload on release branch #43859

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Conversation

can-anyscale
Copy link
Collaborator

We should not upload test results on the release branch. I missed a return statement here.

Test:

  • CI

@can-anyscale can-anyscale requested a review from a team as a code owner March 10, 2024 01:55
@@ -110,6 +110,7 @@ def run_tests(
def _persist_test_results(self, team: str, bazel_log_dir: str) -> None:
if os.environ.get("BUILDKITE_BRANCH") != "master":
logger.info("Skip upload test results. We only upload on master branch.")
return
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you follow up with some unit tests?

I think we have some bad patterns of reading env vars too much in the middle of the programs. similar to the argument that global vars are bad. ideally, they should be read at the beginning and being passed in.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

totally

@aslonnie aslonnie merged commit 8c8541c into master Mar 10, 2024
9 checks passed
@aslonnie aslonnie deleted the can-fix-upload-result branch March 10, 2024 11:49
@can-anyscale can-anyscale mentioned this pull request Mar 13, 2024
aslonnie pushed a commit that referenced this pull request Mar 13, 2024
Pick of #43859 to fix test result uploading

Signed-off-by: can <[email protected]>
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this pull request Jun 7, 2024
should not upload test results on the release branch. missed a return statement here.

Signed-off-by: can <[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.

None yet

2 participants