Skip to content

ci: add flag for preventing NpmPackageExtract from executing on RBE #29269

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

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ build:remote --define=EXECUTOR=remote
build:remote --remote_cache=remotebuildexecution.googleapis.com
build:remote --remote_executor=remotebuildexecution.googleapis.com
build:remote --remote_timeout=600
build:remote --jobs=10
build:remote --jobs=150

# Setup the toolchain and platform for the remote build execution. The platform
# is provided by the shared dev-infra package and targets k8 remote containers.
Expand Down Expand Up @@ -162,6 +162,18 @@ build:remote-cache --google_default_credentials
# Fixes use of npm paths with spaces such as some within the puppeteer module
build --experimental_inprocess_symlink_creation

# Enable runfiles even on Windows.
# Architect resolves output files from data files, and this isn't possible without runfile support.
build --enable_runfiles

####################################################
# rules_js specific flags
####################################################

# TODO(josephperrott): investigate if this can be removed eventually.
# Prevents the npm package extract from occuring on RBE which overwhelms our quota
build --modify_execution_info=NpmPackageExtract=+no-remote-exec

####################################################
# User bazel configuration
# NOTE: This needs to be the *last* entry in the config.
Expand All @@ -170,7 +182,3 @@ build --experimental_inprocess_symlink_creation
# Load any settings which are specific to the current user. Needs to be *last* statement
# in this config, as the user configuration should be able to overwrite flags from this file.
try-import .bazelrc.user

# Enable runfiles even on Windows.
# Architect resolves output files from data files, and this isn't possible without runfile support.
build --enable_runfiles
Loading