Skip to content

Retry git clones on transient network failures#93

Merged
moshest merged 1 commit into
mainfrom
claude/registry-vue-publish-fail-j1xnnt
Jun 11, 2026
Merged

Retry git clones on transient network failures#93
moshest merged 1 commit into
mainfrom
claude/registry-vue-publish-fail-j1xnnt

Conversation

@moshest

@moshest moshest commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

The scheduled publish-all run on 2026-06-11 failed with exit code 1 because cloning vuejs/docs hit a transient connection timeout to github.com:

FAILED npm/vue@latest: Git clone failed: ...
fatal: unable to access 'https://github.com/vuejs/docs/': Failed to connect to github.com port 443 after 135337 ms

45 packages published successfully; the single network hiccup failed the whole job.

Changes

  • cloneRepository in @neuledge/context now retries up to 3 attempts with exponential backoff (2s, 4s) when the git error looks like a transient network failure (connection/DNS failures, timeouts, HTTP 429/5xx).
  • Permanent errors (missing ref, repo not found, auth failure) still fail immediately — no wasted retries.
  • Added isTransientGitError helper with unit tests, including the exact error message from the failed run.
  • Changeset: patch bump for @neuledge/context.

Validation

  • pnpm lint passes
  • pnpm build succeeds
  • pnpm test passes (162 tests)
  • Changeset added

https://claude.ai/code/session_0192fXyAdE2KVY5QpSh9oBxZ


Generated by Claude Code

The scheduled publish-all run failed when cloning vuejs/docs hit a
connection timeout to github.com. Add retry with exponential backoff
(2s, 4s) in cloneRepository for transient errors (connection/DNS
failures, timeouts, 5xx), while still failing fast on permanent errors
like missing refs or repos.

https://claude.ai/code/session_0192fXyAdE2KVY5QpSh9oBxZ
@changeset-bot

changeset-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3ff9450

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@neuledge/context Patch
@neuledge/registry Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@moshest moshest marked this pull request as ready for review June 11, 2026 11:35
@moshest moshest merged commit b33164a into main Jun 11, 2026
3 checks passed
@moshest moshest deleted the claude/registry-vue-publish-fail-j1xnnt branch June 11, 2026 11:35
@github-actions github-actions Bot mentioned this pull request Jun 11, 2026
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