Skip to content

webui: Update Angular 21 dependencies to 21.2.27 - #3409

Merged
rmuthiah merged 1 commit into
google:mainfrom
zhangxp1998:fix-webui-angular-hang
Nov 2, 2026
Merged

rmuthiah merged 1 commit into
google:mainfrom
zhangxp1998:fix-webui-angular-hang

Conversation

@zhangxp1998

@zhangxp1998 zhangxp1998 commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Update @angular/* (21.1.4 -> 21.2.25), @angular/cdk / @angular/material (21.1.4 -> 21.2.14), and @angular/cli / @angular-devkit/build-angular (21.1.4 -> 21.2.27) in frontend/src/operator/webui.

Problem & CI Log Evidence

During Debian package builds (tools/buildutils/build_packages.sh -> frontend/build-webui.sh), ./node_modules/.bin/ng build (@angular/cli@21.1.4 + @angular-devkit/build-angular@21.1.4) occasionally finishes compiling and emitting all bundles, prints its final webpack summary line, and then the node process never exits — hanging the job for ~5h 42m until the 6-hour GitHub Actions timeout cancels it:

  • build-debian-package-arm64 (job 119155775281, 2026-10-21):
    2026-10-21T10:09:52.5131824Z Initial chunk files           | Names         |  Raw size | Estimated transfer size
    2026-10-21T10:09:52.5132707Z main.00099560f22f3148.js      | main          | 538.17 kB |               124.91 kB
    ...
    2026-10-21T10:09:52.5135040Z Build at: 2026-10-21T10:09:52.511Z - Hash: 290e803fe48c4af1 - Time: 17304ms
    2026-10-21T10:09:52.5135619Z Warning: bundle initial exceeded maximum budget. Budget 500.00 kB was not met by 177.73 kB with a total of 677.73 kB.
    2026-10-21T15:52:25.8643943Z ##[error]The operation was canceled.
    2026-10-21T15:52:25.8647319Z ##[end-action id=__self_3.__run_2;outcome=cancelled;conclusion=cancelled;duration_ms=21401332]
    
  • build-debian-package-amd64 (job 117159484421, 2026-10-16):
    2026-10-16T20:03:26.8410596Z Build at: 2026-10-16T20:03:26.839Z - Hash: c835d6d4c87683a4 - Time: 14633ms
    2026-10-16T20:03:26.8411635Z Warning: bundle initial exceeded maximum budget. Budget 500.00 kB was not met by 177.73 kB with a total of 677.73 kB.
    2026-10-17T01:36:52.7574893Z ##[error]The operation was canceled.
    2026-10-17T01:36:52.7578277Z ##[end-action id=__self_2.__run_2;outcome=cancelled;conclusion=cancelled;duration_ms=21414428]
    

Root Cause & Upstream Fixes

@angular/cli (lib/init.js) sets process.exitCode rather than calling process.exit(), relying on the Node.js event loop draining all active handles after ng build completes. In @angular/cli@21.1.4 / @angular-devkit/build-angular@21.1.4:

  1. esbuild service child process leak (angular/angular-cli#33201): one-shot (watch: false) builds leaked esbuild --service --ping child processes (ChildProcess and stdio stream handles remaining referenced in process._getActiveHandles()), preventing the Node.js process from exiting after bundle generation finished. Fixed upstream in angular/angular-cli#33267 and backported to 21.2.x in angular/angular-cli@d46c082f.
  2. piscina / esbuild worker pool updates: @angular-devkit/build-angular@21.2.27 also includes the 21.2.x backports bumping piscina (5.1.4 -> 5.3.2) and esbuild (0.27.2 -> 0.28.1) (angular/angular-cli#33421, angular/angular-cli#34243).

Bug: 576362231
Test: cd frontend && ./build-webui.sh && ./src/goutil src/operator test ./...

@zhangxp1998 zhangxp1998 added the kokoro:run Run e2e tests. label Oct 21, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Oct 21, 2026
@zhangxp1998
zhangxp1998 force-pushed the fix-webui-angular-hang branch from 38ab772 to 3671d50 Compare October 25, 2026 17:54
@zhangxp1998 zhangxp1998 added the kokoro:run Run e2e tests. label Oct 25, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Oct 25, 2026
Update @angular/* and @angular-devkit/build-angular to the latest 21.2.x
patch releases (bringing piscina from 5.1.4 to 5.3.2 and esbuild from
0.27.2 to 0.28.1) to fix worker pool teardown races that occasionally
cause ng build in frontend/build-webui.sh to hang until the 6-hour CI
job timeout.

Bug: 576362231
Test: ./build-webui.sh
@0405ysj
0405ysj force-pushed the fix-webui-angular-hang branch from 3671d50 to 67348a5 Compare November 2, 2026 08:47
@0405ysj 0405ysj added the kokoro:force-run Trigger a presubmit build unconditionally. label Nov 2, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Nov 2, 2026
@rmuthiah
rmuthiah added this pull request to the merge queue Nov 2, 2026
Merged via the queue into google:main with commit f53dd8d Nov 2, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants