Skip to content

[browser] Restore HotReload functional test execution in CI - #136151

Merged
vitek-karas merged 1 commit into
dotnet:mainfrom
vitek-karas:vitek-karas-wasm-hot-reload-execution
Oct 21, 2026
Merged

vitek-karas merged 1 commit into
dotnet:mainfrom
vitek-karas:vitek-karas-wasm-hot-reload-execution

Conversation

@vitek-karas

Copy link
Copy Markdown
Member

The Windows browser library-test job builds WebAssembly.Browser.HotReload.Test.zip, but inherited functional-test props place it under runonly. Helix only selects matching .Sample.zip files from that directory, so the HotReload test is never submitted in the affected route.

Override the archive properties in the HotReload project, after the imported defaults have been evaluated, to put its ZIP under browseronly. The existing browser selectors then include it without changes to the test runner, expected exit code, or non-Windows CI exclusion.

This is deliberately scoped to HotReload. Moving the shared archive properties would also enable RuntimeConfig and StartupHook; StartupHook currently aborts locally while loading ICU data, so their routing is left unchanged.

Validation

Using the existing Mono/browser Release baseline on Windows:

$project = 'src\tests\FunctionalTests\WebAssembly\Browser\HotReload\WebAssembly.Browser.HotReload.Test.csproj'
.\.dotnet\dotnet.exe build --no-restore $project /t:Test -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=Mono -p:Configuration=Release -p:InstallChromeForTests=true
.\.dotnet\dotnet.exe build --no-restore $project -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=Mono -p:Configuration=Release -p:ContinuousIntegrationBuild=true -p:ArchiveTests=true

Both commands passed. The test applied delta revisions 1 and 2, returned browser exit code 42, and completed XHarness with exit code 0. The CI-configured build produced the ZIP under browseronly\browser.AnyCPU.Release.

Also verified locally:

  • Extracted that CI-format ZIP and executed its generated RunTests.cmd in headless Chrome: both deltas applied, browser exit 42, XHarness exit 0.
  • Invoked the real _AddWorkItemsForLibraryTests selector without submitting a Helix job: exactly one HotReload work item for Chrome and Firefox, none for V8. A negative control using the previous runonly layout selected none.
  • Other browser functional tests retain their existing archive routing; the non-Windows HotReload CI exclusion remains in effect.

An official CI execution of this patch has not yet been observed.

Resolves #136150

Note

This PR was prepared with GitHub Copilot assistance.

Override the functional-test archive defaults in the HotReload project so its ZIP is selected by the browser Helix route, while preserving the non-Windows exclusion and other functional-test routing.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 3a7f4db3-0298-4491-a95f-5bf803bf9a8b
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@vitek-karas
vitek-karas marked this pull request as ready for review October 20, 2026 14:54
@vitek-karas
vitek-karas merged commit c1f06a3 into dotnet:main Oct 21, 2026
79 of 81 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 22, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants