Repository navigation
Conversation
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]>
tend-agent
approved these changes
May 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.shiterates 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.