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
{{ message }}
Repository navigation
Flaky Tests-Templates: wasm-opt SIGABRT building uno56droidioswasmskia (parallel multi-TFM build OOM on macOS) #23528
The Tests - Templates CI stage intermittently fails on the macOS agent while building the uno56droidioswasmskia project template, with the emscripten wasm-opt step aborting:
It is flaky, not a deterministic break: Tests - Templates passes on every recent master build,
so the failure is borderline and forces a full-stage re-run when it hits.
Diagnosis (root cause)
build/test-scripts/run-netcore-mobile-template-tests.ps1 builds uno56droidioswasmskia with no -f, so dotnet build compiles all of its TFMs in parallel (net10.0-android, -ios, -maccatalyst, -browserwasm, -desktop). The loop's $extraArgs already disables the costly mobile AOT/link and the Uno WASM IL-linker, but it does not affect the .NET WASM SDK native
relink (wasm-opt -O2 over the SkiaSharp/HarfBuzz/ICU WASM statics), which is memory-heavy and still
runs. So wasm-opt -O2 executes concurrently with the other TFM builds, and under peak memory on
the macOS agent it intermittently aborts (SIGABRT).
Why the fix is correct
Serialize that template's inner per-TFM builds (/m:1) so wasm-opt runs without competing with
the other TFM builds for memory — eliminating the contention mechanism rather than masking the
symptom. It is scoped to the one multi-TFM template that crashes; the only cost is a slightly longer
build for that template (the mobile TFMs are already lightweight since AOT/link are disabled, so wasm-opt is the long pole either way), which is far cheaper than the full-stage re-runs the flake
currently triggers.
Acceptance
Tests - Templates passes reliably across repeated CI runs with no wasm-optSIGABRT.
Activity
fix(ci): Reference issue #23528 instead of PR number (review)