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

[bazel] Allow SupportTests to be built remotely and cached #121375

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

anguslees
Copy link
Contributor

SupportTests fails in the bazel macOS sandbox, because
FileSystemTest.permissions expects to be able to modify file
permissions on some otherwise protected files.

Previously this test was marked local in bazel, which has
additional undesirable effects such as skipping remote build and cache.

Tighten the bazel tags to just no-sandbox. Note in particular, that
this allows the test to build, execute, and cache remotely (if
configured).

Testing:

  • Verified this test fails (as expected) on macOS with no tags, and
    passes with no-sandbox.
  • Verified this test passes when executed remotely (using an Engflow RBE
    setup) with no-sandbox.

`SupportTests` fails in the bazel macOS sandbox, because
`FileSystemTest.permissions` expects to be able to modify file
permissions on some otherwise protected files.

Previously this test was marked `local` in bazel, which has
additional undesirable effects such as skipping remote build and cache.

Tighten the bazel tags to just `no-sandbox`.  Note in particular, that
this allows the test to build, execute, and cache remotely (if
configured).

Testing:
- Verified this test fails (as expected) on macOS with no tags, and
  passes with `no-sandbox`.
- Verified this test passes when executed remotely (using an Engflow RBE
  setup) with `no-sandbox`.
@llvmbot llvmbot added the bazel "Peripheral" support tier build system: utils/bazel label Dec 31, 2024
@anguslees
Copy link
Contributor Author

Reviewers: I don't have merge permissions - so please mash the merge button yourself when you feel appropriate.

@rupprecht rupprecht merged commit bca92b1 into llvm:main Jan 2, 2025
8 checks passed
@rupprecht
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel "Peripheral" support tier build system: utils/bazel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants