You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: run legacy relay database fixtures under Node - #29603
PR checks fail because three SSH relay tests open real SQLite databases but run under Bun. Run them under Node, matching the application's database runtime and the existing SQLite test policy. Product behavior is unchanged.
What Changed
Add exactly three legacy-relay CLI test paths to SQLITE_RUNTIME_INCLUDE. The shared runner already excludes that list from Bun and includes it in the Node worker. No test bodies, boundary checks or production code change.
Why
The existing boundary check correctly found the omission after these tests landed. Registering the real database consumers preserves that check and exercises Node publication/close semantics; suppressing the check or mocking the database would hide the problem.
Linked Issue
Found in the full PR workflow for #29324 (run 38884178158, unit shard 3). The omission is inherited from main, not caused by that PR's bind-host fixture change. Maintainer-directed CI audit; no separate issue.
Visual Proof
N/A — test routing only, no visual or interaction change.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Linux, background launch, Node 24.21.0 / Bun 1.4.3, one worker:
Before: existing boundary check lists exactly these three omissions; four-suite run has 41 passing cases and one intended boundary failure.
After: same 42 case names all pass, with all three database suites reported as node-runtime instead of bun.
All 97 cases across the relay directory and Node/SQLite runtime boundary suites pass in shuffled order (seed 104729).
Changed-code quality, targeted lint/format and diff checks pass. No new test duplicates the existing boundary guard. CI covers the complete workflow.
One local before/after pair: wall 18,354 → 19,847 ms; summed module 16,569 → 17,928 ms. Correct-runtime repair, no speedup claim. Hosted measurement and full exact-head gate remain pending. No native macOS/Windows or real SSH host run locally.
Review
Independent read-only review traced all three real database imports, the introducing changes and unchanged boundary guard. Only three runtime-list entries change.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
No remote wire, host execution, filesystem or workspace policy change.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 14a35e84-8567-4095-a48d-1612c1567cf5
📥 Commits
Reviewing files that changed from the base of the PR and between bb441d1 and dcbaa7d.
📒 Files selected for processing: 1
config/scripts/vitest-sqlite-runtime-files.mjs
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
📝 Walkthrough
The SQLite runtime include list now contains the legacy relay CLI call-limits, legacy-records, and server test files.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to dcbaa
The three SQLite-backed relay suites now run under Node, with unrelated tests unaffected. No actionable merge risk is evident.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly and concisely describes the primary change: routing legacy relay database fixtures through Node.
Description check
The description is detailed and covers the change, rationale, testing, scope, visual proof, and checklist. It references issue #29324, although the template's Fixes # field is not populated and no d…
Docstring Coverage
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description is detailed and covers the change, rationale, testing, scope, visual proof, and checklist. It references issue #29324, although the template's Fixes # field is not populated and no direct issue link is provided.
Full details: Docstring Coverage
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.
✨ Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
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.
Superseded by #29607, which includes this exact three-line routing fix plus the independently verified daemon teardown repair. The routing guard and all 31 relay cases pass under Node on this PR; the full gate is blocked by the repeated teardown failure, so both repairs will land together after the combined full workflow passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
PR checks fail because three SSH relay tests open real SQLite databases but run under Bun. Run them under Node, matching the application's database runtime and the existing SQLite test policy. Product behavior is unchanged.
What Changed
Add exactly three legacy-relay CLI test paths to
SQLITE_RUNTIME_INCLUDE. The shared runner already excludes that list from Bun and includes it in the Node worker. No test bodies, boundary checks or production code change.Why
The existing boundary check correctly found the omission after these tests landed. Registering the real database consumers preserves that check and exercises Node publication/close semantics; suppressing the check or mocking the database would hide the problem.
Linked Issue
Found in the full PR workflow for #29324 (run 38884178158, unit shard 3). The omission is inherited from main, not caused by that PR's bind-host fixture change. Maintainer-directed CI audit; no separate issue.
Visual Proof
N/A — test routing only, no visual or interaction change.
Testing
Linux, background launch, Node 24.21.0 / Bun 1.4.3, one worker:
node-runtimeinstead ofbun.One local before/after pair: wall 18,354 → 19,847 ms; summed module 16,569 → 17,928 ms. Correct-runtime repair, no speedup claim. Hosted measurement and full exact-head gate remain pending. No native macOS/Windows or real SSH host run locally.
Review
Independent read-only review traced all three real database imports, the introducing changes and unchanged boundary guard. Only three runtime-list entries change.
Agent skill upstream boundary
Notes
No remote wire, host execution, filesystem or workspace policy change.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)