Skip to content

Fix WASM Debug external-data test failures - #33226

Merged
Tianlei Wu (tianleiwu) merged 2 commits into
mainfrom
copilot/fix-wasm-debug-build
Oct 9, 2026
Merged

Tianlei Wu (tianleiwu) merged 2 commits into
mainfrom
copilot/fix-wasm-debug-build

Conversation

Copilot AI commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Preserve compile-output checks while skipping file-backed runtime cases unsupported by the WASM test module.
  • Exclude the host-filesystem external-initializer test on Emscripten; retain native coverage.

Motivation and Context

The wasm_Debug / build-wasm job failed because these tests attempted to load external data without a Module.MountedFiles mapping. WASM’s test module does not provide that mapping.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job wasm_Debug / build-wasm Fix WASM Debug external-data test failures Oct 9, 2026
@tianleiwu
Tianlei Wu (tianleiwu) marked this pull request as ready for review October 9, 2026 05:15
Copilot AI balanced review requested due to automatic review settings October 9, 2026 05:15

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.

🟢 Approval recommended

The guards match the WASM loader contract while preserving supported compile and native coverage.

0 open findings

What changed in this PR

Updates WASM test guards for unsupported file-backed external data loading. No actionable issues found.

Changes:

  • Retains compile-output assertions while skipping unsupported WASM runtime cases.
  • Excludes a host-filesystem initializer test on Emscripten.
File Description
onnxruntime/​test/​framework/​inference_session_test.cc Adds targeted Emscripten guards around external-data runtime tests.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tianleiwu
Tianlei Wu (tianleiwu) enabled auto-merge (squash) October 9, 2026 05:17
@tianleiwu
Tianlei Wu (tianleiwu) merged commit 2297e77 into main Oct 9, 2026
@tianleiwu
Tianlei Wu (tianleiwu) deleted the copilot/fix-wasm-debug-build branch October 9, 2026 05:24
Edward Chen (edgchen1) pushed a commit that referenced this pull request Oct 22, 2026
### Description
<!-- Describe your changes. -->

- Preserve compile-output checks while skipping file-backed runtime
cases unsupported by the WASM test module.
- Exclude the host-filesystem external-initializer test on Emscripten;
retain native coverage.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to it here. -->

The `wasm_Debug / build-wasm` job failed because these tests attempted
to load external data without a `Module.MountedFiles` mapping. WASM’s
test module does not provide that mapping.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
eserscor pushed a commit that referenced this pull request Oct 22, 2026
### Description
<!-- Describe your changes. -->

- Preserve compile-output checks while skipping file-backed runtime
cases unsupported by the WASM test module.
- Exclude the host-filesystem external-initializer test on Emscripten;
retain native coverage.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to it here. -->

The `wasm_Debug / build-wasm` job failed because these tests attempted
to load external data without a `Module.MountedFiles` mapping. WASM’s
test module does not provide that mapping.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
Edward Chen (edgchen1) added a commit that referenced this pull request Oct 22, 2026
### Description
<!-- Describe your changes. -->

This cherry-picks the following commits for the release:

| Commit ID | PR Number | Commit Title |
|-----------|-----------|-------------|
| 1f4b965 | #33526 | Fix WebGPU bundled Dawn platform cleanup |
| 2297e77 | #33226 | Fix WASM Debug external-data test failures |

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

WebGPU EP release.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
Copilot-Session: 9bab1fc9-3c49-4110-91c4-5097c3373dd5
Copilot-Session: 5f4f7562-11aa-4473-afeb-c8e1206de604
eserscor added a commit that referenced this pull request Oct 23, 2026
### Description
<!-- Describe your changes. -->

Prepare the ONNX Runtime 1.31.1 patch release targeting `rel-1.31.1`:

- Bump native, Python, and JavaScript package versions from 1.31.0 to
1.31.1, including lockfiles, Node.js native-package install metadata,
API version assertions, and the Python release-notes link.
- Backport the OpenVINO provider-info namespace fix from
[#33327](#33327): move the
forward declaration to the global namespace and explicitly qualify the
type in the optional-provider probe test.
- Backport the WASM Debug external-data test fix from
[#33226](#33226): skip
file-backed cases that require `Module.MountedFiles`, while retaining
buffer-destination coverage.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Keep release metadata aligned for 1.31.1 and include targeted fixes for
OpenVINO-enabled Python builds and WASM Debug tests. The OpenVINO change
corrects a mismatched type declaration; the WASM changes avoid
external-data filesystem paths unsupported by the test module without
changing runtime behavior.

---------

Co-authored-by: Mustapha Jaber <mustjab@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants