-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
tests dont work on mac os #194
Comments
I forked the |
I just ran the test on a GitHub MacOS runner. It worked there, as well. |
im using mac m2, so maybe it's arm thing? |
Can you provide the error message that you are seeing? |
so for a runner: #!/usr/bin/env bash
"$BIT_BAZEL_BINARY" info it prints:
and apparently the tests dont work on fedora on arm as well |
I don't know how does it look on Mac OS, but on Linux on Apple Sillicon the |
I just ran into the same problem on Mac ARM silicon, so I suspect the check in This is tricky for me to reproduce, I don't have an intel or arm mac handy. It'd be nice if we had a canonical list of what |
works on mac os m2, @tpasternak can you confirm on fedora? |
No, because the PR changes only the mac os branch. It worked for me with this patch --- a/bazel_integration_test/private/bazel_binaries.bzl
+++ b/bazel_integration_test/private/bazel_binaries.bzl
@@ -15,7 +15,7 @@ def _download_bazelisk_binary(repository_ctx, version):
if os_name.startswith("linux") and arch_name.startswith("x86_64"):
suffix = "linux-amd64"
- elif os_name.startswith("linux") and arch_name.startswith("arm"):
+ elif os_name.startswith("linux") and arch_name.startswith("aarch64"):
suffix = "linux-arm64"
elif os_name.startswith("mac os") and arch_name.startswith("x86_64"):
suffix = "darwin-amd64"
|
but I don't know about other devices. Maybe there are non-apple arm devices on which the combination |
We should probably just add helpers like Also, the default fallthrough to linux/x86_64 is probably wrong, and should just be a build failure (we'd want to add the capability from #184 so people can deal with this without submitting patches to this repo). |
I added the helpers and change the fallthrough to a failure. Please take a look. |
For me it's ok now |
same here, thanks a lot! |
- Refactor the checks to helper functions. - Reliably identify arm and amd64 arches. Related to #194.
…ntrib#202) - Refactor the checks to helper functions. - Reliably identify arm and amd64 arches. Related to bazel-contrib#194.
hi, recently we bumped the version of the rules (
0.15.1
->0.16.0
) and our tests started failing on mac osI think #181 (comment) might be relevant
even
ProcessBuilder().command(bazelBinary, "info")
returns exit code 1how to reproduce:
bazel test //e2e:sample_repo_test_bazel_5_3_2
The text was updated successfully, but these errors were encountered: