From cf381c711a0456df7dc215afe2ec420cfa69c710 Mon Sep 17 00:00:00 2001 From: danielmeppiel Date: Wed, 18 Mar 2026 17:28:29 +0100 Subject: [PATCH] fix: gh-aw compat test uses correct apm install syntax The test used --isolated which is an apm-action flag, not an apm CLI flag. Fixed to create apm.yml and run 'apm install' directly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/test-release-validation.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/test-release-validation.sh b/scripts/test-release-validation.sh index 1fc36e0b..8e944f77 100755 --- a/scripts/test-release-validation.sh +++ b/scripts/test-release-validation.sh @@ -360,8 +360,14 @@ test_ghaw_compat() { unset GITHUB_TOKEN GITHUB_APM_PAT GH_TOKEN 2>/dev/null || true cd "$ghaw_dir" - echo "Running: apm install microsoft/apm-sample-package --isolated (no token)" - "$BINARY_PATH" install microsoft/apm-sample-package --isolated + # Create a minimal apm.yml like apm-action does in isolated mode + cat > apm.yml <<'APMYML' +dependencies: + - microsoft/apm-sample-package +APMYML + + echo "Running: apm install (no token)" + "$BINARY_PATH" install local install_exit=$? if [[ $install_exit -ne 0 ]]; then echo "apm install failed with exit code $install_exit" @@ -377,10 +383,10 @@ test_ghaw_compat() { fi # Verify a bundle was produced - if ls *.tar.gz 1>/dev/null 2>&1 || ls *.zip 1>/dev/null 2>&1; then + if ls build/*.tar.gz 1>/dev/null 2>&1; then echo "Bundle archive produced successfully" else - echo "No bundle archive found" + echo "No bundle archive found in build/" exit 1 fi )