@@ -443,7 +443,11 @@ jobs:
443443 wasmtime --version
444444
445445 - name : Fetch dependencies (locked)
446- run : cargo fetch --locked
446+ run : |
447+ cargo fetch --locked
448+ if [ "${{ matrix.adapter }}" = spin ]; then
449+ cargo fetch --locked --manifest-path tests/fixtures/reusable-app/Cargo.toml
450+ fi
447451
448452 - name : Run ${{ matrix.adapter }} wasm tests
449453 env :
@@ -482,8 +486,17 @@ jobs:
482486 tar -xzf "$install_dir/$archive" -C "$install_dir"
483487 export PATH="$install_dir:$PATH"
484488 test "$(spin --version | awk '{print $2}')" = "$version"
485- cargo build --offline --locked -p edgezero-adapter-spin --no-default-features --features spin,test-utils --target wasm32-wasip2 --example outbound-bodyless-wire
486- python3 crates/edgezero-adapter-spin/tests/outbound_bodyless_wire.py
489+ run="$GITHUB_WORKSPACE/tests/fixtures/reusable-app/.runs/ci-spin-wire"
490+ CARGO_NET_OFFLINE=true ./scripts/smoke_test_reusable_app.sh --adapter spin --suite outbound-wire --output "$run"
491+ jq --slurp --exit-status '
492+ ([.[] | select(.event == "spin-wire-inventory")]
493+ | length == 1 and .[0].status == "pass"
494+ and .[0].exchanges == 68 and .[0].origin_requests == 84
495+ and .[0].qualification == false)
496+ and ([.[] | select(.event == "spin-wire-case")]
497+ | length == 68 and ([.[].origin_requests | length] | add) == 84)
498+ and all(.[]; .status != "fail")
499+ ' "$run/events.jsonl"
487500
488501 - name : Run Cloudflare outbound runtime unit tests
489502 if : matrix.adapter == 'cloudflare'
@@ -534,11 +547,11 @@ jobs:
534547 and all(.[]; .status != "fail")
535548 ' "$run/events.jsonl"
536549
537- - name : Preserve Fastly lifecycle evidence
538- if : always() && matrix.adapter == 'fastly'
550+ - name : Preserve provider lifecycle evidence
551+ if : always() && ( matrix.adapter == 'fastly' || matrix.adapter == 'spin')
539552 uses : actions/upload-artifact@v4
540553 with :
541- name : fastly -lifecycle-evidence
554+ name : ${{ matrix.adapter }} -lifecycle-evidence
542555 path : tests/fixtures/reusable-app/.runs/
543556 include-hidden-files : true
544557 if-no-files-found : ignore
0 commit comments