Skip to content

Flaky Tests-Templates: wasm-opt SIGABRT building uno56droidioswasmskia (parallel multi-TFM build OOM on macOS) #23528

Closed

Description

@nickrandolph

Summary

The Tests - Templates CI stage intermittently fails on the macOS agent while building the
uno56droidioswasmskia project template, with the emscripten wasm-opt step aborting:

emcc : error : '…/wasm-opt --strip-target-features --post-emscripten -O2 … dotnet.native.wasm …' failed (received SIGABRT (-6))
…/BrowserWasmApp.targets(522,5): error MSB3073: The command "emcc …" exited with code 1.

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-opt SIGABRT.

Activity

  1. added
    kind/bug
    on Jun 24, 2026
  2. self-assigned this
    on Jun 24, 2026
  3. added a commit that references this issue on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions