diff --git a/.github/workflows/run-samples.yml b/.github/workflows/run-samples.yml index c34b45e..d34ea4f 100644 --- a/.github/workflows/run-samples.yml +++ b/.github/workflows/run-samples.yml @@ -128,7 +128,24 @@ jobs: env: LOCALSTACK_AUTH_TOKEN: ${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }} + - name: Docker state snapshot + # Capture the full Docker state on failure + if: failure() + run: | + echo "=== All Docker containers (running + stopped) ===" + docker ps -a --format "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}" 2>&1 + echo "" + echo "=== Docker images ===" + docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}\t{{.ID}}" 2>&1 + echo "" + echo "=== Exited container logs ===" + for c in $(docker ps -a --filter "status=exited" --format "{{.Names}}" 2>/dev/null); do + echo "--- [$c] (last 50 lines) ---" + docker logs "$c" --tail 50 2>&1 + done + - name: Get LocalStack Logs # Captured on failure or success to provide a detailed audit trail of the emulator's activity. if: always() run: make logs + diff --git a/requirements-runtime.txt b/requirements-runtime.txt index 6ede92c..573e0d0 100644 --- a/requirements-runtime.txt +++ b/requirements-runtime.txt @@ -9,3 +9,4 @@ azure-core python-dotenv localstack azlocal +terraform-local diff --git a/run-samples.sh b/run-samples.sh index ea418e9..b5a5080 100644 --- a/run-samples.sh +++ b/run-samples.sh @@ -103,7 +103,8 @@ BICEP_SAMPLES=( # 4. Calculate Shard # Combine script-based, Terraform, and Bicep samples into one array -ALL_SAMPLES=("${SAMPLES[@]}" "${TERRAFORM_SAMPLES[@]}" "${BICEP_SAMPLES[@]}") +#ALL_SAMPLES=("${SAMPLES[@]}" "${TERRAFORM_SAMPLES[@]}" "${BICEP_SAMPLES[@]}") +ALL_SAMPLES=("${SAMPLES[@]}") TOTAL=${#ALL_SAMPLES[@]} SHARD=${1:-1} SPLITS=${2:-1}