Skip to content

Fix browser wasm merged test reference discovery - #129498

Merged
AndyAyersMS merged 3 commits into
dotnet:mainfrom
AndyAyersMS:fix-browser-wasm-merged-runner-refs
Jun 24, 2026
Merged

AndyAyersMS merged 3 commits into
dotnet:mainfrom
AndyAyersMS:fix-browser-wasm-merged-runner-refs

Conversation

@AndyAyersMS

@AndyAyersMS AndyAyersMS commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Normalize merged-runner project references before checking which referenced tests require process isolation.

This lets browser wasm test builds resolve merged-runner references correctly when the scan runs from a different base directory.

Enables

  • src\tests\build.cmd browser works as expected

Note

This PR description was created with assistance from GitHub Copilot.

Copilot AI review requested due to automatic review settings June 17, 2026 01:57
@AndyAyersMS
AndyAyersMS marked this pull request as ready for review June 17, 2026 01:59
@AndyAyersMS AndyAyersMS added the arch-wasm WebAssembly architecture label Jun 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the src/tests build logic used by merged test runner projects to evaluate process-isolation requirements using normalized (absolute) project reference paths, avoiding mis-resolution when the scan executes from a different base directory.

Changes:

  • Normalize @(ProjectReference) entries to %(FullPath) before invoking GetRequiresProcessIsolation.
  • Re-tag process-isolated referenced projects as OutOfProcessTests using FullPath-based matching instead of OriginalItemSpec.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

@dotnet/wasm-contrib PTAL

The path reshaping needed for browser was breaking on some cases causing test builds to fail.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

There is a mono test failure (maybe it wasn't running all test before)?

Copilot AI review requested due to automatic review settings June 18, 2026 01:25
@AndyAyersMS
AndyAyersMS force-pushed the fix-browser-wasm-merged-runner-refs branch from d1bd974 to 02c8391 Compare June 18, 2026 01:25
- Use call node type when forming wasm call signatures.

- Treat GT_FRAME_SIZE as a wasm leaf during use-edge iteration.

- Classify single-register struct call stores by wasm ABI type.

- Preserve ABI segment widths for wasm parameter register remaps.

- Bail out on wasm method/call signatures over the engine limit.

Issue: dotnet#129497

Co-authored-by: Copilot <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Comment thread src/coreclr/jit/codegenwasm.cpp Resolved
Comment thread src/coreclr/jit/error.h Resolved
Comment thread src/coreclr/jit/error.h Resolved
Comment thread src/tests/Directory.Build.targets Resolved
@AndyAyersMS
AndyAyersMS force-pushed the fix-browser-wasm-merged-runner-refs branch from 02c8391 to e38dc71 Compare June 18, 2026 01:30
AndyAyersMS and others added 2 commits June 17, 2026 18:37
Normalize merged-runner references before process-isolation discovery so browser wasm test builds can resolve referenced projects.

Co-authored-by: Copilot <[email protected]>
@AndyAyersMS

Copy link
Copy Markdown
Member Author

AI is making a mess here. Let me clean it up.

Copilot AI review requested due to automatic review settings June 18, 2026 01:39
@AndyAyersMS

Copy link
Copy Markdown
Member Author

This now has the right bits once again.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@pavelsavara
pavelsavara requested a review from radekdoulik June 18, 2026 06:47
@pavelsavara

Copy link
Copy Markdown
Member

@radekdoulik please take a look, it seems OK to me

@radekdoulik radekdoulik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, also checked the CI runs and it still runs the same tests as before which is right.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

/ba-g unrelated timeouts

@AndyAyersMS
AndyAyersMS merged commit 9e76efa into dotnet:main Jun 24, 2026
85 of 88 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jun 25, 2026
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
## Summary

Normalize merged-runner project references before checking which
referenced tests require process isolation.

This lets browser wasm test builds resolve merged-runner references
correctly when the scan runs from a different base directory.

## Enables

- `src\tests\build.cmd browser` works as expected

> [!NOTE]
> This PR description was created with assistance from GitHub Copilot.

---------

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-Infrastructure test-enhancement Improvements of test source code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants