Repository navigation
fix: retry transient GitHub 5xx and skip failing items during sync - #97
Merged
Merged
Conversation
Add withRetry helper with exponential backoff for 5xx, rate-limit, and network errors. Sanitize GitHub Unicorn HTML responses into concise messages. Skip individual issues/PRs that fail persistently instead of aborting the entire scheduled sync run. Fixes #96
This was referenced Jul 16, 2026
c-vigo
added a commit
that referenced
this pull request
Jul 16, 2026
…ease (#114) Unblocks the last red check on release PR #110 (Commit Messages), per approved plan in #113. The release-PR validation range `merge-base(main, head)..head` spans all pre-devkit history since v0.2.2; commit `9574ee12` (PR #97, merged 2026-06-10 before the gate existed) lacks the mandatory `Refs:` line and is immutable on `dev`. This patch advances `BASE_SHA` past that single SHA behind a `git merge-base --is-ancestor` guard: - **Release PR (#110)**: merge-base (Feb) is an ancestor of the waived commit → base advances → the one grandfathered commit is skipped, everything after it (June onward, incl. #112 and the freeze commit) is still validated. - **Dev PRs**: merge-bases are at dev's recent tip, not ancestors of the waived commit → range unchanged. Verified locally: `validate-commit-range` passes on the release span with the advanced base; `actionlint` + full hook run green. Self-healing: once 0.3.0 lands on `main`, merge-bases move past June, and the next devkit `ci.yml` regeneration drops the patch (hand-patch precedent: `codeql.yml`, vig-os/devkit#1142). Refs: #113
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.
Summary
Fixes the daily-failing Sync Issues and PRs scheduled workflow (#96).
The action now:
withRetry)Root cause
The scheduled workflow was crashing mid-PR-sync when a single unguarded API call returned a transient 5xx (GitHub's "Unicorn!" HTML page). Example failing run: https://github.com/vig-os/sync-issues-action/actions/runs/27257549903
Changes
src/index.ts: addwithRetry,formatGitHubError,isRetryableError; wrappulls.list/pulls.getandissues.listForRepo/issues.get; route existing fetch helpers through retrysrc/__tests__/unit/index.test.ts: tests for retry-success, skip-on-persistent-failure, and updated error-handling behaviordist/: rebuilt bundleTest plan
npm run lintnpm test(100 tests pass)Release required to stop daily failures
The dogfooding workflow
.github/workflows/sync-issues.ymlpins the action by released SHA (@bad447d… # v0.2.2). A new release (e.g. v0.2.3) and pinned-SHA bump in that workflow is required before the scheduled runs will pick up this fix.Closes #96