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

Apple Silicon: Some tests fail with '@bazel_tools//tools/cpp:everything' does not contain a toolchain for cpu 'darwin_arm64' #16525

Closed
fweikert opened this issue Oct 21, 2022 · 2 comments
Labels
m1-ci macos-infra-update P2 We'll consider working on this in future. (Assignee optional) platform: apple type: bug

Comments

@fweikert
Copy link
Member

Description of the bug:

  • //src/test/java/com/google/devtools/build/lib/buildtool:KeepGoingTest: log
  • //src/test/java/com/google/devtools/build/lib/buildtool:DanglingSymlinkTest: log

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

https://buildkite.com/bazel/google-bazel-presubmit/builds/60478#0183fa35-2b92-4a37-a98f-cc52f0f2432c

Which operating system are you running Bazel on?

MacOS monterey 12.6 (Bazel CI)

What is the output of bazel info release?

5.3.2

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@fweikert fweikert changed the title Apple Silicon: buildtool tests fail with '@bazel_tools//tools/cpp:everything' does not contain a toolchain for cpu 'darwin_arm64' Apple Silicon: Some tests fail with '@bazel_tools//tools/cpp:everything' does not contain a toolchain for cpu 'darwin_arm64' Oct 24, 2022
@oquenchil oquenchil added P2 We'll consider working on this in future. (Assignee optional) platform: apple and removed untriaged team-Rules-CPP Issues for C++ rules labels Oct 26, 2022
@meteorcloudy
Copy link
Member

Please re-enable the failing tests in Bazel's presubmit.yml and postsubmit.yml file after fixing them!

meteorcloudy added a commit to meteorcloudy/bazel that referenced this issue Feb 21, 2024
- Add `--test_tag_filters=-no_macos` for macOS to filter out tests that are not suppose to run on Mac, just like the `no_windows` tag.
- Fixed PatchApiBlackBoxTest and GitRepositoryBlackBoxTest on newer macOS versions.
- Enable previously disabled tests on arm64 macOS platform in presubmit
- Disable slow tests on Intel macOS platform in presubmit since they are often the bottleneck.

Tests fixed:

- Fixes bazelbuild#16525
- Fixes bazelbuild#17447
- Fixes bazelbuild#17411
- Related: bazelbuild#18776 (fixed on macos_arm64)

Closes bazelbuild#21381.

PiperOrigin-RevId: 608993052
Change-Id: I03bdf954c358bb736a866ce3a02f6dac4473e47e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
m1-ci macos-infra-update P2 We'll consider working on this in future. (Assignee optional) platform: apple type: bug
Projects
None yet
Development

No branches or pull requests

4 participants