Skip to content

feat: implement GitHub API failure recovery and jittered backoff#6106

Closed
saidai-bhuvanesh wants to merge 1 commit into
JhaSourav07:mainfrom
saidai-bhuvanesh:feature/api-resilience
Closed

feat: implement GitHub API failure recovery and jittered backoff#6106
saidai-bhuvanesh wants to merge 1 commit into
JhaSourav07:mainfrom
saidai-bhuvanesh:feature/api-resilience

Conversation

@saidai-bhuvanesh

Copy link
Copy Markdown

Fixes #6105

Phase 3: GitHub API Failure Recovery

  • Added jittered exponential backoff retries (getJitteredBackoff) to handle transient rate limits or outages without overloading GitHub.
  • Added intelligent error classification (shouldFallbackOnError) to distinguish transient errors from fatal logic/auth exceptions.
  • Implemented stale-cache and placeholder mock-data fallbacks in fetchUserProfile, fetchUserRepos, and fetchGitHubContributions.
  • Added the isOfflineFallback flag to return data so the UI can notify the user of potentially outdated information.
  • Wrote integration tests in tests/github-recovery.test.ts.

@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Someone is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @saidai-bhuvanesh! Thanks for your interest in contributing to CommitPulse! 🙏

Unfortunately, this PR has been automatically closed because you are not assigned to the linked issue #6105 — feat(api): intelligent GitHub API failure recovery and mock fallbacks.

To avoid this in the future, please follow these steps:

  1. Claim the issue — Comment /claim on #6105 if you are the issue author, or ask a maintainer to /assign you.
  2. Wait for confirmation — The bot will confirm your assignment with a ✅ reply.
  3. Then open your PR — Link the issue with Fixes #6105 in your description.

💡 You can be assigned to up to 5 open issues at a time. Check your current assignments before claiming a new one.

We look forward to your contribution once you're assigned! 🚀

@github-actions github-actions Bot closed this Jun 20, 2026
@github-actions github-actions Bot added the type:feature New features, additions, or enhancements label Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New features, additions, or enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(api): intelligent GitHub API failure recovery and mock fallbacks

1 participant