Skip to content

Commit a9bf0e5

Browse files
alan-agius4pull[bot]
authored andcommitted
ci: change bazel to use XL container resources
We are limiting Bazel to consuming resources that fit in CircleCI "medium" class but Circle steps are configured to use "xlarge" containers https://github.com/angular/angular-cli/blob/aacb98d85bac837b898dc6158459aef53f5569a3/.circleci/bazel.rc#L13-L17 Changing the contain to "medium" causes `Stream closed` failures
1 parent 1ec4c46 commit a9bf0e5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.circleci/bazel.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ test --test_tag_filters=-manual
1212

1313
# Workaround https://github.com/bazelbuild/bazel/issues/3645
1414
# Bazel doesn't calculate the memory ceiling correctly when running under Docker.
15-
# Limit Bazel to consuming resources that fit in CircleCI "medium" class which is the default:
15+
# Limit Bazel to consuming resources that fit in CircleCI "xlarge" class
1616
# https://circleci.com/docs/2.0/configuration-reference/#resource_class
17-
build --local_ram_resources=3072
18-
build --local_cpu_resources=2
17+
build --local_cpu_resources=8
18+
build --local_ram_resources=14336
1919

2020
# More details on failures
2121
build --verbose_failures=true

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ jobs:
260260
steps:
261261
- custom_attach_workspace
262262
- install_python
263+
- run: sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
263264
- run:
264265
command: yarn bazel:integration
265266
no_output_timeout: 20m

0 commit comments

Comments
 (0)