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

Use bazelisk to download bazels for tests, instead of trying to download #181

Merged
merged 7 commits into from
Aug 26, 2023

Conversation

katre
Copy link
Collaborator

@katre katre commented Aug 23, 2023

directly.

Fixes #67.

@katre
Copy link
Collaborator Author

katre commented Aug 23, 2023

I'm a bit nervous about the mac and windows detection here.

@katre
Copy link
Collaborator Author

katre commented Aug 23, 2023

looks like I needed to test with bzlmod

@katre
Copy link
Collaborator Author

katre commented Aug 23, 2023

Ah, because I didn't update the bzlmod bazel_binaries extension.

Copy link
Member

@cgrindel cgrindel left a comment

Choose a reason for hiding this comment

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

Overall, looks good. I left a couple of small comments in the code. We should also add an example that uses this new functionality and include it in the integration test suite.

This is more of a thought and not an action item. Have you thought about whether we could just use the bazelisk installed on the client's system, if it is detected? Typically, I am all about downloading the tools that we need. However, bazelisk is special in that it is the bootstrap for launching Bazel. 🤔

bazel_integration_test/py/test_base.py Outdated Show resolved Hide resolved
@katre
Copy link
Collaborator Author

katre commented Aug 24, 2023

As far as integration tests, all the tests and examples are now using this. Do we need further tests? I was trying to not add any behavior differences.

Using the local bazelisk sounds very similar to using a local bazel, maybe this is part of #100?

@cgrindel
Copy link
Member

As far as integration tests, all the tests and examples are now using this. Do we need further tests? I was trying to not add any behavior differences.

That is fair. Do we need any doc updates to let folks know that they can use the full range of Bazel version specifications that Bazelisk supports? In other words, how do you want to advertise this new capability?

Using the local bazelisk sounds very similar to using a local bazel, maybe this is part of #100?

Maybe. We do not need to worry about using the local bazelisk for this PR.

@katre
Copy link
Collaborator Author

katre commented Aug 25, 2023

Rebased to main and added documentation (and a TODO issue for the bazelisk version).

@cgrindel cgrindel merged commit 1374993 into bazel-contrib:main Aug 26, 2023
5 checks passed
@katre katre deleted the use-bazelisk branch August 28, 2023 13:42
@katre
Copy link
Collaborator Author

katre commented Aug 28, 2023

Any chance this can be added to a release?

cgrindel pushed a commit to k1nkreet/rules_bazel_integration_test that referenced this pull request Sep 27, 2023
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.

Support using <FORK>/<VERSION> in .bazelversion file.
2 participants