diff --git a/.bazelrc b/.bazelrc index cb2725cdf34f..7ac954f112db 100644 --- a/.bazelrc +++ b/.bazelrc @@ -2,12 +2,15 @@ # Exceptions. See /LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# Ensure all builds have Carbon's workspace status attached. We have carefully -# factored the stamping done by this to avoid excessive build performance impact -# and so enable stamping with it by default. CI and systems especially dependent -# on caching should explicitly use `--nostamp`. +# Setup stamping with Carbon's workspace status attached but disable it by +# default. +# +# Note that while we have minimized the impact of stamping on build caching, it +# still has a meaningful impact, especially during development. So we disable +# stamping by default and builds that need to include the workspace status +# should explicitly enable it with `--stamp`. common --workspace_status_command=./scripts/workspace_status.py -common --stamp +common --nostamp # Provide aliases for configuring the release and pre-release version being # built. For documentation of these flags, see //bazel/version/BUILD. diff --git a/.github/workflows/nightly_release.yaml b/.github/workflows/nightly_release.yaml index 2019a6fc2c23..b1f056d196d6 100644 --- a/.github/workflows/nightly_release.yaml +++ b/.github/workflows/nightly_release.yaml @@ -79,7 +79,7 @@ jobs: run: | ./scripts/run_bazel.py \ --attempts=5 --jobs-on-last-attempt=4 \ - test -c opt --remote_download_toplevel \ + test -c opt --stamp --remote_download_toplevel \ --pre_release=nightly --nightly_date=${{ env.nightly_date }} \ //toolchain \ //toolchain/install:carbon_toolchain_tar_gz_rule \