fix: prevent Bazel OOM crash on CI runners#1147
Merged
lacolaco merged 2 commits intoangular:mainfrom Feb 24, 2026
Merged
Conversation
- Add resource limits to all CI workflows' bazelrc configuration: - Limit RAM to 6GB (GitHub Actions ubuntu-latest has 7GB) - Limit CPUs to 2 - Limit parallel jobs to 4 - Reduce JVM heap to 2GB max - Discard analysis cache after build to reduce memory pressure - Add build output verification in adev.ts to detect silent failures when Bazel server is killed mid-build
- Move _JAVA_OPTIONS and NODE_OPTIONS to build step env - Remove startup options from bazelrc (use _JAVA_OPTIONS instead) - Reduce local_ram_resources to 4096MB - Reduce jobs to 2
f5e8875 to
22316dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
変更内容
リソース制限(CI workflows):
ビルド出力検証(adev.ts):
ビルド出力ディレクトリの存在を確認してサイレント失敗を検出
影響範囲
.github/workflows/)