remote-build: pull artifacts with sprite file pull; a tar stream over exec breaks on reconnect
CI / test (push) Failing after 18s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hk4tUnZsmzjbobxkwy
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-25 12:06:47 -08:00
1 parent caa12058fd
commit b4b9ba0e10
1 file changed
+9 -3
+9 -3
View File
@@ -21,7 +21,13 @@ sp --no-stdin --dir "$ROOT" -- bash -c \
'export PATH=$HOME/.pixi/bin:$HOME/.moon/bin:$HOME/.local/bin:$PATH; pixi run just '"${targets[*]}" 'export PATH=$HOME/.pixi/bin:$HOME/.moon/bin:$HOME/.local/bin:$PATH; pixi run just '"${targets[*]}"
echo "== pull artifacts" echo "== pull artifacts"
mkdir -p build host-wasm/target/release # `sprite file pull` rather than a tar stream over exec: a streamed binary can break on reconnect.
sp --no-stdin --dir "$ROOT" -- tar cf - build/compositor.wasm build/components host-wasm/target/release/chandra-host \ # -r on a directory fails, so pull build/components/ file by file.
| tar xf - mkdir -p build/components host-wasm/target/release
pull() { sprite file pull -s "$SPRITE" -p "$@"; }
pull "$ROOT/build/compositor.wasm" build/
pull "$ROOT/host-wasm/target/release/chandra-host" host-wasm/target/release/
mods=(); while IFS= read -r f; do mods+=("$ROOT/build/components/$f"); done \
< <(sp --no-stdin --dir "$ROOT" -- ls build/components | grep -E '\.(wasm|json)$')
pull "${mods[@]}" build/components/
ls -la build/compositor.wasm host-wasm/target/release/chandra-host ls -la build/compositor.wasm host-wasm/target/release/chandra-host