Skip to content

Commit 2e6b335

Browse files
committed
테스트: 강등된 WASI 표면의 잔존 루트 import 수리
wasiGate와 wasiGuestAdapter가 루트 index.js에서 bootWasi를 import한 채 남아, subpath 강등 이후 모듈 로드가 죽어 게이트가 무보고 타임아웃으로 실패했다(첫 실검증 CI가 적발). 검증 트리는 소스 경로로 같은 모듈을 열도록 바꿨다. 수리 후 wasiGate 10/10 GREEN(부팅 746ms), 잔존 루트 import 전수 재검(tests HTML 포함) 0건.
1 parent 16f368f commit 2e6b335

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/browser/wasiGate.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ <h1>pyproc WASI 게이트 - 승격된 WasiSession 실배선</h1>
1111
자산 재현: tests/attempts/enginePort/README.md 레시피(python-3.14.6.wasm + python314-stdlib.zip).</p>
1212
<pre id="out">실행 중...</pre>
1313
<script type="module">
14-
import { bootWasi } from "../../index.js";
14+
// pyproc/wasi subpath 표면(루트에서 강등됨). 게이트는 소스 경로로 같은 모듈을 연다.
15+
import { bootWasi } from "../../src/runtime/engines/wasi/wasiSession.js";
1516
const out = document.getElementById("out");
1617
const checks = []; const timings = {};
1718
const check = (name, pass, info = "") => { checks.push({ name, pass: !!pass, info: String(info) }); out.textContent += `\n${pass ? "PASS" : "FAIL"} ${name}${info ? " (" + info + ")" : ""}`; };

tests/webMachine/contracts/wasiGuestAdapter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// wasiGuestAdapter.js - 공개 WASI surface만 소비하는 guest adapter.
2-
import { bootWasi } from "../../../index.js";
2+
// pyproc/wasi subpath 표면(루트에서 강등됨). 검증 트리는 소스 경로로 같은 모듈을 연다.
3+
import { bootWasi } from "../../../src/runtime/engines/wasi/wasiSession.js";
34

45
const encoder = new TextEncoder();
56
const decoder = new TextDecoder();

0 commit comments

Comments
 (0)