Skip to content

reconcile: continue past a default-branch 404 - #103

Closed
team-humaki wants to merge 2 commits into
balcsida:mainfrom
team-humaki:reconcile-continue-default-branch-404
Closed

team-humaki wants to merge 2 commits into
balcsida:mainfrom
team-humaki:reconcile-continue-default-branch-404

Conversation

@team-humaki

Copy link
Copy Markdown
Contributor

Fixes #102.

Reconciler.All returned on the first DefaultBranchSHA error, so a renamed or deleted default branch skipped every later installation for the rest of the tick.

  • Keep reconciling the rest of the installation and the remaining installations.
  • Mark the failed repository with error_code=default_branch and do not enqueue an empty SHA.
  • Log the installation ID, owner/name, and HTTP status from the periodic refresh and webhook reconcile paths.

go test ./internal/githubapp/ ./cmd/graphnest-server/ passed.

Fixes balcsida#102.

A renamed or deleted default branch aborted Reconciler.All, so later
installations never refreshed. Mark the repository, keep going, and
log installation, owner/name, and HTTP status.
@balcsida
balcsida self-requested a review September 19, 2026 10:36

@balcsida balcsida left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed; unit, race, integration and Helm checks pass locally and in CI. Thanks!

@balcsida

Copy link
Copy Markdown
Owner

Thanks @team-humaki! This landed via #120: the main ruleset requires signed commits, so the change was re-committed with a signature. You're still the commit author and the diff is unchanged. Closing in favour of #120.

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.

Reconcile aborts all remaining installations on a single default-branch 404

2 participants