You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue might be caused by ts_library, but that is hard to say.
Is this a regression?
No
Description
Running bazel build on a medium/large Angular code base in GitHub Actions on ubuntu-latest (Ubuntu 18.04) seems to hang after a certain amount of rules. It works locally.
The affected rule seems to be ts_library, as it consistently hangs on building :unit_test_sources.
Looking at the run times of the steps (when splitting the build targets), it suddenly spikes after a certain amount of build targets (See run times on the right in https://github.com/sbb-design-systems/sbb-angular/runs/558310489?check_suite_focus=true). The target it hangs on is not consistent and changes, when changing the order of the build targets.
I have refactored the code and split up one huge module into smaller modules. This has helped a bit, so I assume a memory problem? #1803 might be the problem/solution.
On another note; I noticed that you exchanged ng_module with ts_library (with use_angular_plugin). Is this the intended way to compile Angular projects, once ViewEngine compilation can be dropped (for libraries)?
Answered by https://github.com/bazelbuild/rules_nodejs/releases/tag/1.6.0
🐞 bug report
Affected Rule
The issue might be caused by ts_library, but that is hard to say.
Is this a regression?
No
Description
Running bazel build on a medium/large Angular code base in GitHub Actions on
ubuntu-latest
(Ubuntu 18.04) seems to hang after a certain amount of rules. It works locally.The affected rule seems to be ts_library, as it consistently hangs on building :unit_test_sources.
Looking at the run times of the steps (when splitting the build targets), it suddenly spikes after a certain amount of build targets (See run times on the right in https://github.com/sbb-design-systems/sbb-angular/runs/558310489?check_suite_focus=true). The target it hangs on is not consistent and changes, when changing the order of the build targets.
Build comman(s):
bazelisk build src/... --build_tag_filters=-docs-package,-release-package
(https://github.com/sbb-design-systems/sbb-angular/blob/refactor-bazel/.github/workflows/continuous-integration-workflow.yml)First (full) attempt: https://github.com/sbb-design-systems/sbb-angular/runs/552091858?check_suite_focus=true
Split building of packages: https://github.com/sbb-design-systems/sbb-angular/runs/558191658?check_suite_focus=true
Successfully built, by removing a certain amount of build targets: https://github.com/sbb-design-systems/sbb-angular/runs/558488642?check_suite_focus=true
Last (fullish) attempt: https://github.com/sbb-design-systems/sbb-angular/runs/558646690?check_suite_focus=true
🔬 Minimal Reproduction
https://github.com/sbb-design-systems/sbb-angular/tree/refactor-bazel
(GitHub Actions: https://github.com/sbb-design-systems/sbb-angular/actions?query=branch%3Arefactor-bazel++)
Project .bazelrc: https://github.com/sbb-design-systems/sbb-angular/blob/refactor-bazel/.bazelrc
GitHub ~/.bazelrc: https://github.com/sbb-design-systems/sbb-angular/blob/refactor-bazel/.github/.bazelrc
🔥 Exception or Error
Full log: https://github.com/sbb-design-systems/sbb-angular/runs/561124271?check_suite_focus=true
Last section before it hangs:
🌍 Your Environment
Operating System:
ubuntu-latest
of https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runnersOutput of
bazel version
:Bazelisk with .bazelversion 2.1.0 (https://github.com/sbb-design-systems/sbb-angular/blob/refactor-bazel/.bazelversion)
Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
The text was updated successfully, but these errors were encountered: