ci: use .aspect/workflows/bazelrc for Aspect Workflows flags (#60866)

This commit is contained in:
Greg Magolan 2024-03-05 09:16:47 -08:00 committed by GitHub
parent 904e201fab
commit c725bfdf3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 12 deletions

13
.aspect/workflows/bazelrc Normal file
View File

@ -0,0 +1,13 @@
# This flag is required because otherwise the integration tests fail with `fcmod` Operation not permitted
# which is probably related to the launced containers writing to mapped in directories as root and then
# when the container exits the files that are left over are root.
# TODO(burmudar): launch containers with uid/guid mapped in
common --noexperimental_reuse_sandbox_directories
# build without the bytes
common --remote_download_outputs=minimal
common --nobuild_runfile_links
# As per recommendation from https://analyzer.engflow.com/suggestions/829decb5-e3f4-4930-b60c-0494d154f8c1
common --experimental_profile_include_target_label
common --noslim_profile

View File

@ -2,18 +2,6 @@
bazel:
rcfiles:
- ".aspect/bazelrc/ci.sourcegraph.bazelrc"
flags:
# This flag is required because otherwise the integration tests fail with `fcmod` Operation not permitted
# which is probably related to the launced containers writing to mapped in directories as root and then
# when the container exits the files that are left over are root.
# TODO(burmudar): launch containers with uid/guid mapped in
- --noexperimental_reuse_sandbox_directories
# TODO(gregmagolan): can be moved to .aspect/workflows/bazelrc in the future
- --remote_download_minimal
- --nobuild_runfile_links
# As per recommendation from https://analyzer.engflow.com/suggestions/829decb5-e3f4-4930-b60c-0494d154f8c1
- --experimental_profile_include_target_label
- --noslim_profile
env:
REDIS_CACHE_ENDPOINT: ":6379"
GIT_PAGER: ""