Skip to content

fix(ci): harden version fetches and auto-open issue on workflow failure - #1

Merged
Hy4ri merged 1 commit into
masterfrom
fix/ci-resilience
Aug 2, 2026
Merged

Hy4ri merged 1 commit into
masterfrom
fix/ci-resilience

Conversation

@Hy4ri

@Hy4ri Hy4ri commented Aug 2, 2026

Copy link
Copy Markdown
Owner

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 attempt
  • Failure reason captured into a fail_reason job output (via a die() helper) instead of dying silently

Applied to the workflow's check step and the self-fetching update-version.sh paths.

2. Auto-open a failure issue

If the update job fails, a report-failure job opens a GitHub issue with the failure reason + run link:

  • Deduped: issues tagged auto-failure — while one is open, later failures comment on it instead of spamming (workflow runs on a schedule)
  • Self-healing: when the workflow succeeds again, open auto-failure issues are closed automatically
  • The run still goes red (final exit 1 step)
  • Adds issues: write permission

Verification

  • YAML + bash syntax validated
  • Check-step logic simulated locally against real endpoints: all fetches return current versions (no update needed), failure path writes fail_reason + exits 1
  • Workflow will be dispatched on this branch to confirm green

- 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
@Hy4ri Hy4ri changed the title test pr create fix(ci): harden version fetches and auto-open issue on workflow failure Aug 2, 2026
@Hy4ri
Hy4ri merged commit e383146 into master Aug 2, 2026
2 checks passed
@Hy4ri
Hy4ri deleted the fix/ci-resilience branch August 2, 2026 07:41
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.

1 participant