Skip to content

[browser] HotReload functional test is built but not submitted to Helix in CI #136150

Closed

Description

@vitek-karas

Description

src\tests\FunctionalTests\WebAssembly\Browser\HotReload\WebAssembly.Browser.HotReload.Test.csproj is built and archived by the Windows browser library-test job, but its archive is not selected for execution on Helix.

The intended browseronly archive destination is overwritten by a parent props import, placing the test under runonly. The Helix selectors only pick up matching .Sample.zip files from runonly, not this .Test.zip file. As a result, CI can successfully build this test and submit the other tests without exercising its Hot Reload checks.

Reproduction Steps

  1. Inspect scheduled runtime build 1639485 / 20261018.1, source ec0059c08c077e839c6eb8827c846530a891d7e2, specifically the successful browser-wasm windows Release LibraryTests job.

  2. Its Build product log records compilation of the exact test, generation of both delta revisions, and this archive operation at 2026-10-18T09:21:53.5051589Z:

    Zipping directory "...\artifacts\bin\WebAssembly.Browser.HotReload.Test\net11.0\browser-wasm\wwwroot\"
    to "...\artifacts\helix\runonly\browser.AnyCPU.Release\WebAssembly.Browser.HotReload.Test.zip".
    
  3. Its Send to Helix log records WasmTestOnChrome, a normal archive wildcard of artifacts\helix\tests\**\*.zip, and submission of Helix job fce0feae-fabc-47c4-b8ef-53e6fce3eec1.

  4. Inspect the complete Helix work-item inventory. None of its 205 work items contains WebAssembly.Browser.HotReload.Test or HotReload.

The incorrect archive path is also reproducible by evaluating the project on Windows, without building it:

.\.dotnet\dotnet.exe msbuild .\src\tests\FunctionalTests\WebAssembly\Browser\HotReload\WebAssembly.Browser.HotReload.Test.csproj -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=Mono -p:Configuration=Release -p:ContinuousIntegrationBuild=true -p:ArchiveTests=true -getProperty:TestArchiveTestsRoot,TestArchiveTestsDir,IgnoreForCI,Scenario,ExpectedExitCode

At 8ab789d9e8a0dcda46c77ffbe86fc006b5dcba67, this reports runonly\browser.AnyCPU.Release as the effective archive directory, an empty IgnoreForCI, Scenario=WasmTestOnChrome, and ExpectedExitCode=42. The implicated routing props, test sources, and submission selectors are unchanged between this revision and the inspected CI revision.

Expected behavior

The supported Windows browser CI route should submit and execute the exact HotReload functional test. Its result should confirm both delta updates and the checked sequence OLD STRING → NEW STRING → NEWEST STRING, with browser exit code 42 and successful XHarness completion.

The existing non-Windows CI exclusion should remain a separate concern.

Actual behavior

The test ZIP is created under artifacts\helix\runonly\browser.AnyCPU.Release, but no selector includes it in the inspected Helix job. There is no execution result for this test; its status is not run / N/A, not passed. Aggregate Helix success does not establish a result for an omitted test.

This was directly verified for the route/build above, not for every historical build or pipeline.

Regression?

Unknown when this began. No earlier known-good CI execution was established. The routing problem is present in both source revisions listed above.

Known Workarounds

The exact test is still operational locally. On Windows, using the repository SDK and locally built Mono/browser Release runtime, the following baseline and exact-project commands succeeded at 8ab789d9e8a0dcda46c77ffbe86fc006b5dcba67:

.\build.cmd mono+libs -os browser -c Release -restore
.\build.cmd mono+libs -os browser -c Release -build
.\.dotnet\dotnet.exe restore .\src\tests\FunctionalTests\WebAssembly\Browser\HotReload\WebAssembly.Browser.HotReload.Test.csproj -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=Mono -p:Configuration=Release -p:InstallChromeForTests=true
.\.dotnet\dotnet.exe build --no-restore .\src\tests\FunctionalTests\WebAssembly\Browser\HotReload\WebAssembly.Browser.HotReload.Test.csproj /t:Test -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=Mono -p:Configuration=Release -p:InstallChromeForTests=true

The initial machine-specific PATH problem was resolved with a short process-local PATH. Baseline restore used the equivalent eng\build.ps1 entry point through an explicit Windows PowerShell executable. No repository source changes were needed.

Actual headless Chrome/XHarness output:

Apply Delta Update for ApplyUpdateReferencedAssembly.dll, revision 1
Apply Delta Update for ApplyUpdateReferencedAssembly.dll, revision 2
ret: 42
WASM EXIT 42
XHarness exit code: 0

Configuration

  • CI: scheduled runtime pipeline, definition 129, main, Windows host, browser-wasm, Mono, Release, WasmTestOnChrome.
  • Inspected CI build: 1639485, queued October 18, 2026. The Windows LibraryTests job succeeded; the overall build failed elsewhere.
  • Local confirmation: Windows x64 host, browser-wasm Mono interpreter, Release, headless Chromium 155.0.8059.85, repository SDK 11.0.100-rc.1.26420.103.

Other information

Cause: archive-property import order plus selection mismatch.

  • src\libraries\tests.proj includes the WebAssembly *.Test.csproj projects when archiving the full browser test set.
  • WebAssembly\Directory.Build.props assigns TestArchiveTestsRoot and TestArchiveTestsDir to browseronly before importing its parent props.
  • The parent functional-test props sets IsFunctionalTest=true and imports src\libraries\Directory.Build.props. That import replaces the root with runonly for functional tests and recomputes the directory.
  • sendtohelix-browser.targets includes browseronly\**\*.zip for browser scenarios, but promotes only runonly\**\*.Browser.*.Sample.zip for Chrome or runonly\**\*.Console.V8.*.Sample.zip for V8. WebAssembly.Browser.HotReload.Test.zip matches neither. The normal selector covers tests\**\*.zip.

Suggested remedy: Move the existing TestArchiveTestsRoot and TestArchiveTestsDir assignments in WebAssembly\Directory.Build.props to after the parent import. This should restore the intended browseronly destination, which the browser submission selector already handles. This change has not been applied or validated; verification should check the effective archive path, inclusion of the exact work item, and its actual browser result.

Related but distinct: #114526 tracks the intentional Linux exclusion for deadlocks; #118442 concerns HotReload in the separate Wasm.Build.Tests suite.

Note

This issue was prepared and filed with GitHub Copilot assistance.

Activity

  1. added
    arch-wasm
    on Oct 20, 2026
  2. added
    untriaged
    on Oct 20, 2026
  3. dotnet-policy-service commented on Oct 20, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
    See info in area-owners.md if you want to be subscribed.

  4. removed
    untriaged
    on Oct 21, 2026
  5. added a commit that references this issue on Oct 21, 2026
    c1f06a3
  6. locked and limited conversation to collaborators on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmarea-VM-meta-mono

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions