fix(ci): harden version fetches and auto-open issue on workflow failure - #1
Merged
Merged
Conversation
- Harden all external fetches (fail-fast connect timeout, 3x retry with backoff, max-time cap) so transient network flakes don't kill the run - Capture the real failure reason and open a GitHub issue automatically via a report-failure job (deduped with the 'auto-failure' label, closed automatically when the workflow succeeds again) - Add issues: write permission; run still fails visibly (red) on error
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.
What this does
Same treatment as kimicode-flake#1: the scheduled update workflow dies whenever an external version fetch hits a transient network failure (e.g. TCP connect timeouts to upstream services). This makes the fetch layer resilient and adds automatic failure reporting.
1. Harden all version fetches
--connect-timeout 10— fail fast instead of hanging on dropped SYNs--retry 3 --retry-delay 3 --retry-all-errors— retry transient errors--max-time 30— cap total time per attemptfail_reasonjob output (via adie()helper) instead of dying silentlyApplied to the workflow's check step and the self-fetching
update-version.shpaths.2. Auto-open a failure issue
If the update job fails, a
report-failurejob opens a GitHub issue with the failure reason + run link:auto-failure— while one is open, later failures comment on it instead of spamming (workflow runs on a schedule)auto-failureissues are closed automaticallyexit 1step)issues: writepermissionVerification
fail_reason+ exits 1