Skip to content

fix(github): reconnect verified installations and recover current checks - #601

Merged
imshashank merged 3 commits into
mainfrom
fix/verified-github-reconnect
Nov 18, 2026
Merged

imshashank merged 3 commits into
mainfrom
fix/verified-github-reconnect

Conversation

@imshashank

@imshashank imshashank commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

A workspace integration manager can reconnect a reinstalled GitHub App while preserving the existing watches, project links, policy and check history. The previous installation must be unavailable, and the replacement must be verified for the same account and every watched repository. A concurrent change or ambiguous match leaves the existing binding intact.

The manager-only recovery endpoint verifies the current GitHub repository, pull request and head before it can queue a failed check again. Ordinary refresh keeps its existing behavior.

Rollout

Production installation replacement defaults to disabled. Enable it after all production aliases serve the reviewed version, older deployments can no longer write reconciliation or pull data, and outstanding writes have drained. The existing worker safeguards are already deployed. No database migration is required.

Verification

The focused run passed all 47 installation activation, replacement boundary and concurrent recovery cases. Additional route tests exercise actual policy and membership checks.

The history refresh tests now exercise a real installation binding as well as missing and contradictory binding IDs. All 66 focused cases passed with the full web test tree imported. The local full suite passed all 7,662 tests with zero skips. All six CI jobs passed on fc01a81d, including both Playwright suites. The Vercel preview is ready and its schema check passed.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Noveum/orbit
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 74d4a79
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ae4da2f8-27b7-44e3-bc28-eea201df392f
Commits

Reviewing files that changed from the base of the PR and between 74d4a79 and fc01a81.

Files selected for processing: 38

  • .env.example
  • apps/web/src/app/api/integrations/github/check-recovery/route.ts
  • apps/web/src/app/api/webhooks/github/route.ts
  • apps/web/src/features/pulls/github-refresh.ts
  • apps/web/src/features/settings/github-connect.ts
  • apps/web/tests/app/api/integrations/github/check-recovery/route.test.ts
  • apps/web/tests/features/pulls/github-reach.test.ts
  • apps/web/tests/features/settings/github-installation-replacement-activation.test.ts
  • apps/web/tests/features/settings/github-installation-replacement-boundaries.test.ts
  • apps/web/tests/features/settings/github-installation-replacement-guards.test.ts
  • apps/web/tests/features/settings/github-installation-replacement-ownership.test.ts
  • apps/web/tests/features/settings/github-installation-replacement-recovery.test.ts
  • apps/web/tests/features/settings/github-installation-replacement-remaining.test.ts
  • apps/web/tests/features/settings/github-installation-replacement-watched.test.ts
  • apps/web/tests/features/settings/github-installation-replacement.test.ts
  • apps/web/tests/features/settings/github-replacement-fixture.ts
  • apps/web/tests/features/settings/github-replacement-read-barrier.ts
  • apps/web/tests/fixtures/github-check-recovery.fixture.ts
  • docs/configuration.md
  • docs/github-app.md
  • packages/services/src/github/apply.ts
  • packages/services/src/github/index.ts
  • packages/services/src/github/installation-binding.ts
  • packages/services/src/github/installation-replacement-budget.ts
  • packages/services/src/github/installation-replacement-proof.ts
  • packages/services/src/github/installation-replacement.ts
  • packages/services/src/github/installations.ts
  • packages/services/src/github/recovery-provider.ts
  • packages/services/src/github/recovery.ts
  • packages/services/src/github/watched.ts
  • packages/services/src/github/webhook-events.ts
  • packages/services/tests/github/installation-replacement-proof.test.ts
  • packages/services/tests/github/recovery-provider.test.ts
  • packages/services/tests/github/recovery.test.ts
  • packages/shared/src/validators/github-installation-replacement.ts
  • packages/shared/src/validators/github-recovery.ts
  • packages/shared/src/validators/index.ts
  • packages/shared/tests/validators/github-recovery.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added documentation Docs, the README, or anything that explains Orbit tests Test coverage and test infrastructure area: web The Next.js app and its UI area: integrations GitHub, Slack and webhooks labels Nov 18, 2026
@imshashank
imshashank marked this pull request as ready for review November 18, 2026 09:51
@imshashank
imshashank requested a review from pulkitxm as a code owner November 18, 2026 09:51

Copy link
Copy Markdown
Contributor Author

The keyboard board reorder test passed in 6.9 seconds on fc01a81. The Playwright job also passed. Current run

In the earlier trace, the drag overlay was visible and the pickup announcement had passed when Playwright sent ArrowDown. The status stayed at position 1 of 7 for the full 10-second assertion. The trace does not record when the keyboard listener attached or when drop targets were measured, so the cause remains unconfirmed. Earlier trace

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
orbit Ready Ready Preview Nov 18, 2026 10:32am UTC

Request Review

@imshashank
imshashank merged commit 09e7f71 into main Nov 18, 2026
17 checks passed
@imshashank
imshashank deleted the fix/verified-github-reconnect branch November 18, 2026 10:34

This branch was successfully deployed

1 active deployment
Preview — fc01a81d Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: integrations GitHub, Slack and webhooks area: web The Next.js app and its UI documentation Docs, the README, or anything that explains Orbit tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant