Skip to content

action: drop in_progress log polling; enrich tend-outage issues nightly - #376

Merged
max-sixty merged 1 commit into
mainfrom
reason
May 3, 2026
Merged

max-sixty merged 1 commit into
mainfrom
reason

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The action's "Report failure" step polled the annotations API (later the logs API) with backoff to attach error details to tend-outage issues. Both endpoints are unreliable while the job is in_progress: annotations index asynchronously and lagged past the 8-min budget on real failures, and the logs API returns 404 entirely for in_progress jobs. The result was tend-outage issues with no error block.

This PR strips the polling from action.yaml — the issue/comment now records only the run link — and adds a nightly enrichment pass: plugins/tend-ci-runner/scripts/enrich-tend-outage-issues.sh iterates open tend-outage issues, extracts run IDs from body and comments, and posts the failure annotations as a comment per run. The script is idempotent via an <!-- enriched-run:RUN_ID --> marker that's posted even when no annotations were found, so unenrichable runs aren't retried every night.

The annotations API is the only data path now; the logs-API fallback was only needed because annotations weren't reliable during in_progress, and the nightly script processes completed runs.

The "Report failure" step polled the annotations API (and later the logs
API) with backoff to attach error details to tend-outage issues. Both
endpoints are unreliable while the job is in_progress: annotations index
asynchronously and lagged past the 8-min budget on real failures, and
the logs API returns 404 entirely for in_progress jobs. The result was
issues with no error block.

Strip the polling. The action now records only the run link. A new
nightly script (enrich-tend-outage-issues.sh) iterates open tend-outage
issues, extracts run IDs from body and comments, and posts the failure
annotations as a comment per run. Idempotent via an
`<!-- enriched-run:RUN_ID -->` marker, posted even when no annotations
were found so unenrichable runs aren't retried every night.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 2dc67e1 into main May 3, 2026
5 checks passed
@max-sixty
max-sixty deleted the reason branch May 3, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants