From 8527868c45688bb855a789e74f3570d354a5fbb8 Mon Sep 17 00:00:00 2001 From: E M <5089238+emizzle@users.noreply.github.com> Date: Fri, 24 Apr 2026 12:25:45 +1000 Subject: [PATCH] Show storage node logs URL in workflow summary --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3458b2df..7478a835 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -289,6 +289,24 @@ jobs: - name: Deploy test job run: envsubst < .github/release/job-release-tests.yaml | kubectl apply -f - + - name: Print storage node log link + run: | + QUERY=$(printf '%s\n%s\n%s\n%s' \ + 'resource.type="k8s_container"' \ + 'resource.labels.cluster_name="logos-storage-rel-tests-gcp-europe-west4"' \ + 'resource.labels.namespace_name=~"^storage-"' \ + 'resource.labels.container_name="storage"') + ENCODED=$(python3 -c "import urllib.parse,sys; print(urllib.parse.quote(sys.stdin.read()))" <<< "$QUERY") + URL="https://console.cloud.google.com/logs/query;query=${ENCODED};project=${{ vars.RELEASE_TESTS_GCP_PROJECT }}" + echo "Storage node logs: $URL" + echo "## Storage Node Logs" >> "$GITHUB_STEP_SUMMARY" + echo "" >> "$GITHUB_STEP_SUMMARY" + echo "Run ID: \`${RUNID}\`" >> "$GITHUB_STEP_SUMMARY" + echo "" >> "$GITHUB_STEP_SUMMARY" + echo "[View in Cloud Logging]($URL)" >> "$GITHUB_STEP_SUMMARY" + echo "" >> "$GITHUB_STEP_SUMMARY" + echo "Filters: namespaces matching \`storage-*\`, container \`storage\`" >> "$GITHUB_STEP_SUMMARY" + - name: Wait for test pod to start run: | kubectl wait pod \