mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-17 00:39:48 +00:00
Show storage node logs URL in workflow summary
This commit is contained in:
parent
c85c658c48
commit
8527868c45
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@ -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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user