From a2c1b36bdfef2e7eb85f862212e8571548e95b9b Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Sun, 26 Jan 2025 19:18:07 -0800 Subject: [PATCH] Iterate over each version Not sure why we need this now, but didn't before. --- .../debug-artifacts-failure-safe.yml | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/debug-artifacts-failure-safe.yml b/.github/workflows/debug-artifacts-failure-safe.yml index 2332341f99..108a7a3511 100644 --- a/.github/workflows/debug-artifacts-failure-safe.yml +++ b/.github/workflows/debug-artifacts-failure-safe.yml @@ -78,22 +78,25 @@ jobs: shell: bash run: | LANGUAGES="cpp csharp go java javascript python" - cd "./my-debug-artifacts" - echo "Artifacts from run:" - for language in $LANGUAGES; do - echo "- Checking $language" - if [[ ! -f "my-db-$language-partial.zip" ]] ; then - echo "Missing a partial database bundle for $language" - exit 1 - fi - if [[ ! -d "log" ]] ; then - echo "Missing database initialization logs" - exit 1 - fi - if [[ ! "$language" == "go" ]] && [[ ! -d "$language/log" ]] ; then - echo "Missing logs for $language" - exit 1 - fi + for version in $VERSIONS; do + echo "Artifacts from version $version:" + pushd "./my-debug-artifacts-${version//./}" + for language in $LANGUAGES; do + echo "- Checking $language" + if [[ ! -f "my-db-$language-partial.zip" ]] ; then + echo "Missing a partial database bundle for $language" + exit 1 + fi + if [[ ! -d "log" ]] ; then + echo "Missing database initialization logs" + exit 1 + fi + if [[ ! "$language" == "go" ]] && [[ ! -d "$language/log" ]] ; then + echo "Missing logs for $language" + exit 1 + fi + done + popd done env: GO111MODULE: auto