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][microcheck] recover the logic to compute new tests #45507

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

can-anyscale
Copy link
Collaborator

@can-anyscale can-anyscale commented May 22, 2024

#45462 adds a new tests by changing bazel rule instead of adding a new test file; this case can only be covered by our previous logic of computing new tests; recover this logic (in addition to the logic of computing new tests by looking at changed test files)

This is a redo of #45495 which got reverted. The difference now is that we run the bazel command in a container instead of on the current environment. bazel seems to have issues sharing the cache when calling bazel within bazel (https://buildkite.com/ray-project/microcheck/builds/444#018fa23a-6e31-435b-a0ea-412ca2d1017b/175-1476)

Test:

@can-anyscale can-anyscale requested a review from a team as a code owner May 22, 2024 23:13
@can-anyscale can-anyscale requested review from aslonnie and khluu May 22, 2024 23:13
local_test_targets = set(
container.run_script_with_output(['bazel query "tests(//...)"'])
.strip()
.split(os.linesep)
Copy link
Collaborator

Choose a reason for hiding this comment

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

you might just call split() ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i remember split() breaks in windows without os.linestep

@can-anyscale can-anyscale enabled auto-merge (squash) May 23, 2024 00:27
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label May 23, 2024
@can-anyscale can-anyscale merged commit 7fa11cf into master May 23, 2024
6 of 7 checks passed
@can-anyscale can-anyscale deleted the can-mcx15 branch May 23, 2024 00:47
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.

2 participants