From 36632ed630fca94a5e0d2bbfff121121d32bee79 Mon Sep 17 00:00:00 2001 From: vjan-nie Date: Thu, 8 Oct 2026 00:00:21 +0200 Subject: [PATCH] fix(studio-pack): run the oracle studio-pack.sh from inside its worktree scripts/orch/gr mounts the git top-level of the current directory (gr:8), while studio.sh resolves its root from the script's own path (studio.sh:23). Invoked from the main checkout, the oracle compiled main's tree into the checkout's target/ and then failed to copy the wasm from the worktree's (run 37690199241: cp: cannot stat). --- .github/workflows/studio-pack.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/studio-pack.yml b/.github/workflows/studio-pack.yml index b3446e1d..edb14e30 100644 --- a/.github/workflows/studio-pack.yml +++ b/.github/workflows/studio-pack.yml @@ -118,7 +118,9 @@ jobs: - name: Byte-identical to the commit's own studio-pack.sh run: | git worktree add --detach "$RUNNER_TEMP/upstream" "$COMMIT" - "$RUNNER_TEMP/upstream/scripts/studio-pack.sh" target/pack + # From inside the worktree: scripts/orch/gr mounts the cwd's git top-level, not the + # script's, so run from the main checkout it built main's tree (run 37690199241). + cd "$RUNNER_TEMP/upstream" && scripts/studio-pack.sh target/pack packs=("$RUNNER_TEMP"/upstream/target/pack/graph-studio-*/) ((${#packs[@]} == 1)) || { echo "::error::expected one pack directory, got ${packs[*]}"; exit 1; } diff -r "${packs[0]}" "$RUNNER_TEMP/pack-a"