mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-23 11:49:48 +00:00
update workflow run summary
- add retention date - update titles and links for readability
This commit is contained in:
parent
9bc429667c
commit
54aa2a7b20
2
.github/scripts/generate_test_summary.py
vendored
2
.github/scripts/generate_test_summary.py
vendored
@ -76,7 +76,7 @@ def log_url(fixture):
|
||||
passed = sum(1 for s in fixtures.values() if s == "Passed")
|
||||
total = len(fixtures)
|
||||
|
||||
lines = ["## Test Results", ""]
|
||||
lines = ["## Test logs", ""]
|
||||
for fixture in order:
|
||||
icon = "✅" if fixtures[fixture] == "Passed" else "❌"
|
||||
lines.append(f"- {icon} [{fixture}]({log_url(fixture)})")
|
||||
|
||||
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -318,13 +318,17 @@ jobs:
|
||||
ENCODED=$(python3 -c "import urllib.parse,sys; print(urllib.parse.quote(sys.stdin.read(), safe=''))" <<< "$QUERY")
|
||||
URL="https://console.cloud.google.com/logs/query;query=${ENCODED};startTime=${JOB_START_TIME}?project=${{ vars.RELEASE_TESTS_GCP_PROJECT }}"
|
||||
echo "Storage node logs: $URL"
|
||||
echo "## Storage Node Logs" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "## Summary" >> "$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 "[Logs for entire run]($URL)" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "Filter: \`labels.\"k8s-pod/runid\"=\"${RUNID}\"\`" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "Note: To see the runner logs, add filter `resource.labels.container_name="runner"`" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "" >> "$GITHUB_STEP_SUMMARY"
|
||||
LOG_RETENTION_DATE=$(date -u -d "${JOB_START_TIME} + 30 days" +"%Y-%m-%dT%H:%M:%SZ")
|
||||
echo "Note: Logs are retained until ${LOG_RETENTION_DATE} (30 days)" >> "$GITHUB_STEP_SUMMARY"
|
||||
|
||||
- name: Wait for runner pod to start
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user