Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe auth test runner records signal termination and formats timeout, signal, and exit failures for CLI and JUnit output. OAuth retry tests cover timing behavior. Core tests migrate utilities to Bun and refine timer, mocking, and assertion patterns. ChangesAuth test runner and validation
Core test updates
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
📋 Issue PlannerBuilt with CodeRabbit's Coding Plans for faster development and fewer bugs. View plan used: ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
OpenCodeReview — PR #3110
|
WalkthroughBefore this change, the auth workspace’s Bun test execution path lacked a dedicated runner that could safely bound per-file execution time, capture child-process outcomes consistently, and emit structured failure output for CI. A hung or slow test file could stall the whole suite with little diagnostic context, and failures were reported only through raw exit codes or console noise. After this PR, the workspace uses a dedicated Bun test runner that discovers test files under Release NotesNew Features
Bug Fixes
Tests
Documentation
Changes
Sequence DiagramsequenceDiagram
participant Runner as run-bun-tests runner
participant FS as filesystem
participant Child as bun test child process
participant Report as JUnit report
Runner->>FS: discoverTestFiles(WORKSPACE_ROOT)
FS-->>Runner: sorted test file paths
Runner->>Runner: batch files by CONCURRENCY
loop for each batch
Runner->>Child: spawn process.execPath test --preload bun-preload.ts <file>
Runner->>Runner: start PER_FILE_TIMEOUT_MS timer
alt child exits before timeout
Child-->>Runner: exit code
Runner->>Runner: clear timeout and resolve TestResult
else timeout expires first
Runner->>Child: kill SIGKILL
Runner-->>Runner: resolve TestResult with timedOut=true
end
end
Runner->>Runner: aggregate passed/failed results
Runner->>Report: writeFileSync(JUNIT_PATH, generateJUnit(...))
Runner->>Runner: process.exit(1) if failures else process.exit(0)
Magnitude🎯 1 (S) Related
Pre-merge Checks
Walkthrough generated by LLxprt PR Review. Planner issue: #2256 |
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-24.x-ubuntu-latest' artifact from the main CI run. |
TLDR
Makes the Bun-migrated auth and core tests prove their stated behavior instead of relying on disabled timing, broad timer drains, or undiscovered spec files. It also makes the auth test runner report child signal termination accurately in JUnit and console diagnostics.
Dive Deeper
bun:testand renames the two directly affected.spec.tsfiles so the existing package runners discover them.Local review completed with DeepThinker and Open Code Review. All valid in-scope findings were remediated. OCR's exact-timeout assertion suggestion was rejected because the configured 60-second boundary is intentional behavioral evidence; the OCR partial result was caused by one unchanged test file exhausting its review tool-round budget, not a code diagnostic.
Reviewer Test Plan
From
packages/auth, runbun run-bun-tests.tsand confirm all 35 discovered files pass, including OAuth timing and real SIGTERM propagation coverage.From
packages/core, run:Confirm all 110 tests pass.
Run
npm run typecheck,npm run build,npm run format, and the canonical lint command. The complete root test chain was also attempted locally, but the external command runner terminated it by signal 15 before completion; package-level affected suites passed and CI is the definitive aggregate test gate.Run the smoke check:
Testing Matrix
Linked issues / bugs
Fixes #2904
Summary by CodeRabbit
Improvements
Testing