-
Notifications
You must be signed in to change notification settings - Fork 0
WIP/DEPLAYED: feat/KEEP-1241-bun-upgrade
#161
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
base: staging
Are you sure you want to change the base?
Conversation
- Replace Node.js with Bun for all Docker stages - Update package.json scripts to use bun instead of tsx/pnpm - Update Helm values for staging/prod (bun commands, remove NODE_OPTIONS) - Update K8s manifests to use pre-built Bun-based images - Add setup-bun to PR checks workflow - Add bun.lock for dependency tracking Bun's AsyncLocalStorage implementation supports Sentry v10+ tracing.
- Add dotenv-expand to properly load .env variables in tests - Update tests/setup.ts to expand env variable interpolation - Fix graceful-shutdown tests for Bun's SIGTERM behavior (exit 143) - Fix workflow-runner tests for Bun's signal handling differences
- Remove pnpm setup and caching - Use bun install --frozen-lockfile - Use bun run for all scripts - Cache Bun dependencies using bun.lock hash - Fix mockUser type in rpc-preferences-routes.test.ts (add isAnonymous)
f0ba8da to
0ee673c
Compare
| // Exit code 1 = system termination (SIGTERM) | ||
| expect(result.exitCode).toBe(1); | ||
| // Exit code 1 (Node.js) or 143 (Bun: 128 + SIGTERM) = system termination | ||
| expect([1, 143]).toContain(result.exitCode); |
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.
Shouldn’t we just rely on Bun’s exit code? Since we’re completely migrating the runner, I think this could potentially add edge cases.
joelorzet
left a comment
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.
Honestly, it looks amazing. I’d definitely like to give it a try. That said, I’d prefer to do it in a separate environment to keep staging safe for a few days, since this might introduce unexpected issues as we continuously fetch updates from Vercel’s repo.
| # ============================================================================= | ||
| # Stage 1: Dependencies (Bun for fast installs) | ||
| # ============================================================================= | ||
| FROM oven/bun:1.2-alpine AS deps |
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.
@suisuss I see 1.3 is available. Should we give newest version a try?
WIP/DEPLAYED: feat/KEEP-1241-bun-upgrade
Bun's AsyncLocalStorage implementation supports Sentry v10+ tracing.