Skip to content

fix: 🐛 wasm detection failure#30

Merged
godronus merged 2 commits intomainfrom
fix/wasi-runner
Apr 1, 2026
Merged

fix: 🐛 wasm detection failure#30
godronus merged 2 commits intomainfrom
fix/wasi-runner

Conversation

@godronus
Copy link
Copy Markdown
Collaborator

Update wasm detection logic and add regression tests

Update wasm detection logic and add regression tests
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes WASM runner auto-detection so modern Rust wstd HTTP binaries are correctly classified as http-wasm, and adds regression coverage + updated internal docs.

Changes:

  • Extend detectWasmType() to treat modules with wasi:http/* / wasi:io/* imports as http-wasm (in addition to export-name heuristics).
  • Add a new unit test suite intended to validate all detection branches using real compiled WASM fixtures.
  • Update internal context docs describing the new detection rules and the new unit tests.

Reviewed changes

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

File Description
server/utils/wasmTypeDetector.ts Adds import inspection (wasi:http/*, wasi:io/*) as an additional signal for http-wasm detection.
server/tests/unit/utils/wasmTypeDetector.test.ts New unit tests covering component-model failure path, export-based detection, import-based detection, and Buffer input.
context/features/HTTP_WASM_IMPLEMENTATION.md Updates detection documentation to match new export+import inspection behavior and references the new tests.
context/CONTEXT_INDEX.md Updates index entry for detection logic and test location.

@godronus godronus requested a review from qrdl March 31, 2026 15:30
@godronus godronus merged commit 40ef1a9 into main Apr 1, 2026
2 checks passed
@godronus godronus deleted the fix/wasi-runner branch April 1, 2026 09:44
@godronus
Copy link
Copy Markdown
Collaborator Author

godronus commented Apr 1, 2026

🎉 This PR is included in version 0.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants