Skip to content

Commit aef8cfe

Browse files
ricardochlSplaktar
authored andcommitted
fix(ci): reduce Bazel jobs to 1 to prevent OOM crash
adev-staging-deploy.yml failed on main with a genuine in-VM OOM signature (truncated log line + exit code 1) mid-compile at [17,472/17,628], distinct from the runner-shutdown flakiness seen in earlier runs. With --jobs=2, two concurrent Bazel actions (ng_package Rollup bundling, tsc compilation workers) can together exceed the runner's available memory even though --local_resources=memory=4096 is only a scheduling hint, not a hard cap. Serializing action execution with --jobs=1 avoids the concurrent memory spike without lowering the memory budget itself (which previously pushed build time to ~28min at memory=3072/jobs=2). Verified against both workflows: the PR check (ci.yml, run 32402548439, 28m25s) and a real push-triggered staging deploy including the Firebase deploy step (adev-staging-deploy.yml, run 32402468531, 4m9s) both completed successfully with this change.
1 parent 34d8b37 commit aef8cfe

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/adev-staging-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# Limit resources for CI runners (ubuntu-latest: 7GB RAM, 2 CPUs)
3535
build --local_resources=memory=4096
3636
build --local_resources=cpu=2
37-
build --jobs=2
37+
build --jobs=1
3838
build --discard_analysis_cache
3939
build --nokeep_state_after_build
4040

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131
# Limit resources for CI runners (ubuntu-latest: 7GB RAM, 2 CPUs)
3232
build --local_resources=memory=4096
3333
build --local_resources=cpu=2
34-
build --jobs=2
34+
build --jobs=1
3535
build --discard_analysis_cache
3636
build --nokeep_state_after_build
37+
3738
# Allow network access in sandbox for Algolia API calls during SSR prerendering.
3839
build --sandbox_default_allow_network
3940
- name: Install Dependencies

0 commit comments

Comments
 (0)