Skip to content

fix(inngest): log error and throw on repo discovery failure to enable retries#792

Open
yush-1018 wants to merge 1 commit into
Coder-s-OG-s:mainfrom
yush-1018:fix/repo-discovery-silent-failure
Open

fix(inngest): log error and throw on repo discovery failure to enable retries#792
yush-1018 wants to merge 1 commit into
Coder-s-OG-s:mainfrom
yush-1018:fix/repo-discovery-silent-failure

Conversation

@yush-1018

@yush-1018 yush-1018 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Overview

Fixes an issue where temporary GitHub API failures during repo discovery (e.g. when installing the GitHub App with "All repositories" selected) caused the installation to silently fail and leave installation_repositories empty permanently.

Changes Made

  • Error Visibility & Retries: Updated process-installation-event.ts to log errors using console.error with installation context and re-throw an Error when getInstallOctokit or paginate calls fail. This allows Inngest to automatically retry the step with exponential backoff.
  • Unit Tests: Added test coverage in process-installation-event.test.ts verifying that repo discovery works via API fallback and that errors are caught and thrown for retries.

Quality Control

  • Lint: npm run lint (eslint src) passed with 0 errors and 0 warnings.
  • Unit Tests: All 11 unit tests in process-installation-event.test.ts pass cleanly.

#791

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@yush-1018 is attempting to deploy a commit to the codersogs-3057's projects Team on Vercel.

A member of the Team first needs to authorize it.

@yush-1018
yush-1018 force-pushed the fix/repo-discovery-silent-failure branch from 0ed4cf9 to 2d66157 Compare July 24, 2026 14:54
@Ayush4958

Copy link
Copy Markdown
Collaborator

PR Review :-

Functionality :- Correctly logs and throws an error instead of failing silently.
Tests :-100% passing and tests both the new success and failure paths.

@Ayush4958 Ayush4958 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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