-
-
Notifications
You must be signed in to change notification settings - Fork 12
chore: add bun to CI matrix #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded@ymc9 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 11 minutes and 42 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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. 📒 Files selected for processing (1)
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughAdds a runtime matrix (node, bun) to the CI workflow, configures conditional setup and test steps per runtime, sets Node.js to 20.x, installs Bun 1.x, and replaces a single test step with runtime-specific test steps in .github/workflows/build-test.yml. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
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. Comment |
|
Claude finished @ymc9's task —— View job PR Review: Add Bun to CI MatrixI've completed my review of the changes that add Bun runtime support to the CI workflow. Todo List:
Review Feedback✅ Code Quality & Best PracticesThe implementation is well-structured and follows GitHub Actions best practices:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds Bun runtime support to the CI build matrix alongside the existing Node.js runtime, enabling tests to run on both runtimes.
- Replaces single
node-versionmatrix withruntimematrix containing bothnodeandbun - Adds conditional setup steps for both Node.js and Bun runtimes
- Creates separate test steps for each runtime using their respective package managers
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Claude finished @ymc9's task —— View job PR Review: Add Bun to CI MatrixI've completed my analysis of the PR that adds Bun runtime support to the CI workflow. Here's my comprehensive review: Todo List:
Review SummaryOverall Assessment: This is a well-structured change that properly adds Bun support to the CI matrix. The implementation follows good practices with conditional runtime setup and separate test execution steps. Detailed Analysis✅ Code Quality & Best Practices
|
|
Claude finished @ymc9's task —— View job PR Review: Add Bun to CI MatrixI've completed my analysis of the PR that adds Bun runtime support to the CI workflow. Here's my comprehensive review: Todo List:
Review Feedback✅ Code Quality & Best PracticesThe implementation is well-structured and follows GitHub Actions best practices:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/build-test.yml (1)
35-38: Matrix looks good; consider avoiding unnecessary Postgres for sqlite runs.Right now the Postgres service starts for all matrix entries, including
provider: sqlite, wasting minutes. Consider splitting into two jobs or using separate workflows so Postgres only runs forpostgresql.I can draft an include/exclude matrix or a split‑job version if you want.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/build-test.yml(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: build-test (bun, postgresql)
- GitHub Check: build-test (node, sqlite)
- GitHub Check: build-test (bun, sqlite)
- GitHub Check: build-test (node, postgresql)
🔇 Additional comments (3)
.github/workflows/build-test.yml (3)
55-60: Prefer a major-range (1.x) for Bun unless you need to pin exactly.Pinning to
1.2.22is reproducible but increases maintenance. If you only need Bun 1, use1.xto automatically receive patches/minors; otherwise keep exact and ensure Renovate/Dependabot bumps it.Proposed change:
- bun-version: 1.2.22 + bun-version: 1.x
86-89: Node test path LGTM.
90-93: Verify Bun test path works with your current scripts and deps.
bun run testwill run the package script under Bun; confirm your test runner and dependencies are compatible with Bun (e.g., Vitest/Jest under Bun,pgdriver for Postgres).- If tests rely on Node‑only features, consider
TEST_RUNTIME=bungating inside scripts or usingbun testonly if you’ve migrated to Bun’s test runner.I can help adjust scripts or add a quick detector to skip Bun‑incompatible suites.
|
Claude finished @ymc9's task —— View job PR Review: Add Bun to CI MatrixI've completed my analysis of the PR that adds Bun runtime support to the CI workflow. Here's my comprehensive review: Todo List:
Review Feedback✅ Code Quality & Best PracticesThe implementation is well-structured and follows GitHub Actions best practices:
|
Summary by CodeRabbit
Tests
Chores