Skip to content

feat: Trigger.dev index-repo task with R2 storage#88

Merged
HrushiBorhade merged 3 commits into
mainfrom
phase-2/index-repo
Mar 24, 2026
Merged

feat: Trigger.dev index-repo task with R2 storage#88
HrushiBorhade merged 3 commits into
mainfrom
phase-2/index-repo

Conversation

@HrushiBorhade
Copy link
Copy Markdown
Owner

Summary

Test plan

  • 153 core tests passing
  • 17 web tests passing (170 total)
  • Typecheck passes across all 4 packages (core, db, trigger, web)
  • Lint passes
  • Format check passes
  • E2E: Install GitHub App on test repo → verify webhook → task → vectors → R2 (manual)

- Scaffold apps/trigger with Trigger.dev SDK v4 (#81)
- GitHub App JWT generation, installation tokens, tarball download (#82)
- R2 upload helpers: tarball, file-tree.json, individual files (#83)
- DrizzleSyncStorage: Merkle state via Drizzle/Neon (#84)
- index-repo task: walk → chunk → embed → upsert → Merkle persist → R2 (#85)
- Wire webhook to trigger index-repo after repo upsert (#86)
- 170 tests passing (153 core + 17 web)
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 24, 2026

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

Project Deployment Actions Updated (UTC)
code-indexer-web Ready Ready Preview, Comment Mar 24, 2026 9:35pm

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 24, 2026

Warning

Rate limit exceeded

@HrushiBorhade has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 11 minutes and 43 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c41df31b-53f3-4f4a-ab5a-6064c49e2115

📥 Commits

Reviewing files that changed from the base of the PR and between 6912ab9 and abc7158.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (10)
  • apps/trigger/package.json
  • apps/trigger/src/lib/drizzle-sync-storage.ts
  • apps/trigger/src/lib/github.ts
  • apps/trigger/src/lib/r2.ts
  • apps/trigger/src/tasks/index-repo.ts
  • apps/trigger/trigger.config.ts
  • apps/trigger/tsconfig.json
  • apps/web/package.json
  • apps/web/src/app/api/webhooks/github/route.ts
  • turbo.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch phase-2/index-repo

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

Comment @coderabbitai help to get the list of available commands and usage tips.

- Fix SHA extraction: use redirect:manual to capture SHA from Location URL
- Bulk chunk cache inserts instead of sequential per-chunk DB round-trips
- Remove redundant hashFiles call — reuse fileHashMap from computeChanges
- Return 500 on webhook errors so GitHub retries delivery
- Reuse S3Client singleton instead of creating one per file upload
@HrushiBorhade HrushiBorhade merged commit 8832f8a into main Mar 24, 2026
5 checks passed
@HrushiBorhade HrushiBorhade deleted the phase-2/index-repo branch March 24, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant