mirror of
https://github.com/angular/angular-cli.git
synced 2025-06-02 03:12:30 +08:00
We are limiting Bazel to consuming resources that fit in CircleCI "medium" class but Circle steps are configured to use "xlarge" containers
aacb98d85b/.circleci/bazel.rc (L13-L17)
Changing the contain to "medium" causes `Stream closed` failures
25 lines
791 B
Plaintext
25 lines
791 B
Plaintext
# These options are enabled when running on CI
|
|
# We do this by copying this file to /etc/bazel.bazelrc at the start of the build.
|
|
|
|
# Echo all the configuration settings and their source
|
|
build --announce_rc
|
|
|
|
# Don't be spammy in the logs
|
|
build --noshow_progress
|
|
|
|
# Don't run manual tests
|
|
test --test_tag_filters=-manual
|
|
|
|
# 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_cpu_resources=8
|
|
build --local_ram_resources=14336
|
|
|
|
# More details on failures
|
|
build --verbose_failures=true
|
|
|
|
# Retry in the event of flakes
|
|
test --flaky_test_attempts=2
|