Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions tools/smoke-c0/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,20 @@ import { TranslateError } from "../../runtime/src/plan/mod.ts";
import type { WirePlan } from "../../runtime/src/plan/format.ts";

export const REPO_ROOT = new URL("../../", import.meta.url);
export const POLYMORPH = "/home/lmartin/p/polymorph";
export const POLYMORPH = Deno.env.get("POLYMORPH_ROOT") ??
"/home/lmartin/p/polymorph";
/** experiment-mosh renamed and moved out of the polymorph tree
* (2026-08-10): it is `wosh`, a sibling OF the polymorph directory. */
export const WOSH = Deno.env.get("WOSH_ROOT") ?? "/home/lmartin/p/wosh";

/** Absolute paths to the consumer artifacts under test (never copied). */
export const ARTIFACTS = {
tdz: `${POLYMORPH}/experiment-mosh/spikes/compose-async-tdz/composed.wasm`,
tdz: `${WOSH}/spikes/compose-async-tdz/composed.wasm`,
execModel:
`${POLYMORPH}/polymorph-iroh/target/wasm32-wasip2/release/iroh_exec_model_guest.wasm`,
engineGo: `${POLYMORPH}/experiment-mosh/engine-go/main.wasm`,
composedClient: `${POLYMORPH}/experiment-mosh/client-core/composed-client.wasm`,
composedProxy: `${POLYMORPH}/experiment-mosh/proxy/composed-proxy.wasm`,
engineGo: `${WOSH}/engine-go/main.wasm`,
composedClient: `${WOSH}/client-core/composed-client.wasm`,
composedProxy: `${WOSH}/proxy/composed-proxy.wasm`,
irohEndpoint:
`${POLYMORPH}/polymorph-iroh/target/wasm32-wasip2/release/iroh_endpoint.wasm`,
} as const;
Expand Down
10 changes: 5 additions & 5 deletions tools/smoke-c0/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.0.0",
"exports": "./common.ts",
"tasks": {
"leg1": "deno run --allow-read leg1_tdz.ts",
"leg2": "deno run --allow-read leg2_exec_model.ts",
"leg3": "deno run --allow-read leg3_throughput.ts",
"leg4": "deno run --allow-read leg4_websocket.ts",
"repro": "deno run --allow-read repro_stream_pump.ts"
"leg1": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT leg1_tdz.ts",
"leg2": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT leg2_exec_model.ts",
"leg3": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT leg3_throughput.ts",
"leg4": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT leg4_websocket.ts",
"repro": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT repro_stream_pump.ts"
}
}
3 changes: 2 additions & 1 deletion tools/smoke-c0/leg1_tdz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// deno run --allow-read leg1_tdz.ts
//
// Artifact: experiment-mosh/spikes/compose-async-tdz/composed.wasm — a wac
// Artifact: wosh/spikes/compose-async-tdz/composed.wasm (the consumer
// formerly named experiment-mosh) — a wac
// composition of `tdz:plug` (async factory returning own<widget>) into
// `tdz:socket` (async export awaiting it, plus an exported `handoff`
// interface that names the same resource in a signature). That combination
Expand Down
Loading