7193e151d7
Also removes `build:remote --spawn_strategy=remote` from .bazelrc. It seems that with Bazel 1.0.0 setting `--incompatible_list_based_execution_strategy_selection=false` no longer works around the issue with npm_package that it did when it was added. The error that was originally observed has returned after updating to Bazel 1.0.0: ``` ERROR: /home/circleci/ng/packages/angular_devkit/build_optimizer/BUILD:66:1: Assembling npm package packages/angular_devkit/build_optimizer/npm_package failed: No usable spawn strategy found for spawn with mnemonic Action. Your --spawn_strategy, --genrule_strategy or --strategy flags are probably too strict. Visit https://github.com/bazelbuild/bazel/issues/7480 for migration advice ``` This commit removes both `—incompatible_list_based_execution_strategy_selection=false` as well as `build:remote --spawn_strategy=remote` which means that Bazel will do the default behavior of picking the first available strategy from the default list, which is `remote,worker,sandboxed,local`. See https://github.com/bazelbuild/bazel/issues/7480 for more details. Not updating to Bazel 1.1.0 yet due to a docker permissions CI issue that was observed on the angular repo that is unresolved. See https://github.com/angular/angular/pull/33367#issuecomment-547643246. PR Close #33476
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
# Make TypeScript and Angular compilation fast, by keeping a few copies of the
|
|
# compiler running as daemons, and cache SourceFile AST's to reduce parse time.
|
|
build --strategy=TypeScriptCompile=worker
|
|
build --strategy=AngularTemplateCompile=worker
|
|
|
|
test --test_output=errors
|
|
|
|
# Workaround https://github.com/bazelbuild/bazel/issues/3645
|
|
# Bazel doesn't calculate the memory ceiling correctly when running under Docker.
|
|
# Limit Bazel to consuming resources that fit in CircleCI "xlarge" class
|
|
# https://circleci.com/docs/2.0/configuration-reference/#resource_class
|
|
build --local_resources=14336,8.0,1.0
|
|
|
|
# Use the Angular Ivy compiler
|
|
# See https://github.com/angular/angular/blob/master/docs/BAZEL.md#various-flags-used-for-tests
|
|
build --define=compile=aot
|
|
|
|
# Temporary define while angular depends on the legacy rollup_bundle rule.
|
|
# TODO: remove this setting after https://github.com/angular/angular/pull/33201 lands.
|
|
build --define=enable_legacy_rollup_rule=1
|
|
|
|
# Don't create symlinks
|
|
build --symlink_prefix=/
|
|
|
|
# Turn on managed directories feature in Bazel
|
|
# This allows us to avoid installing a second copy of node_modules
|
|
common --experimental_allow_incremental_repository_updates
|