From c725bfdf3a8dfef101e0b18db7c52455b6f90b49 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Tue, 5 Mar 2024 09:16:47 -0800 Subject: [PATCH] ci: use .aspect/workflows/bazelrc for Aspect Workflows flags (#60866) --- .aspect/workflows/bazelrc | 13 +++++++++++++ .aspect/workflows/config.yaml | 12 ------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 .aspect/workflows/bazelrc diff --git a/.aspect/workflows/bazelrc b/.aspect/workflows/bazelrc new file mode 100644 index 00000000000..a0ac217df13 --- /dev/null +++ b/.aspect/workflows/bazelrc @@ -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 diff --git a/.aspect/workflows/config.yaml b/.aspect/workflows/config.yaml index 1ecf01d4ce8..c1046a8a4e7 100644 --- a/.aspect/workflows/config.yaml +++ b/.aspect/workflows/config.yaml @@ -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: ""