Repository navigation
test(sqlite): make the Bun fixture dependency discoverable - #170778
Merged
Merged
Conversation
Make the actual subprocess dependency visible to Knip while preserving the Bun updater regression helper and all assertions. The opaque path was introduced with the live fixture in #170519.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
) ## What Problem This Solves Scheduled main CI reports `src/infra/sqlite-existing-database.bun.test-support.ts` as unused. The helper is live: the Bun regression added by openclaw#170519 launches it through a plain path string that Knip cannot connect to the test. Resolve the actual subprocess argument with `fileURLToPath(new URL(..., import.meta.url))`, following the existing fixture pattern. This makes the dependency visible while preserving the Bun helper, every assertion, the isolated environment, and the existing timeout. No ignore entries or production changes are added. ## Evidence - Original failure: [scheduled run 38359584345, check-dependencies](https://github.com/openclaw/openclaw/actions/runs/38359584345/job/115170478488). The full-tree unused-file scan reports this one helper; production-file and all unused-export scans passed. - Culprit: `d07e31eb2f581fd4147186fbed2045a6dc8f0faf` (openclaw#170519), verified against its parent. Launcher and helper blobs on base `1f32c05dc71dcd8a08761edc3410f6ecad85278b` match the failing scheduled head. - Changed-file oxfmt, oxlint, and `git diff --check` passed. - One independent Codex review completed scoped-clean at P0–P2. - The exact full-tree unused-file scan passed on candidate `d79c87980ff41b2218803b907201de9cfa164ff6`: [run 38363318115, job 115182433252](https://github.com/openclaw/openclaw/actions/runs/38363318115/job/115182433252), Knip 6.32.2, unchanged configuration and `--files` arguments, zero diagnostics in 130.2 seconds. Source-preservation verification passed. Ordinary PR CI 38362413570 passed all selected static, type, architecture, security, and required gates. T1 remained 454 to 454, compatibility calls 9 to 9, and dialect groups 0 to 0. No local Knip, typecheck, or runtime test was run under the compute-conservation rule. - Test LOC: +2/-1; production LOC: 0. No SQL or runtime behavior change.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Problem This Solves
Scheduled main CI reports
src/infra/sqlite-existing-database.bun.test-support.tsas unused. The helper is live: the Bun regression added by #170519 launches it through a plain path string that Knip cannot connect to the test.Resolve the actual subprocess argument with
fileURLToPath(new URL(..., import.meta.url)), following the existing fixture pattern. This makes the dependency visible while preserving the Bun helper, every assertion, the isolated environment, and the existing timeout. No ignore entries or production changes are added.Evidence
5dbb5799d2e747d5630f966a72cc576a0049bd83(fix(update): Bun-run updates fail with database is locked before replacing the package #170519), verified against its parent. Launcher and helper blobs on basecdd0d2df564828ecf9fa01c03ae655af8c952b06match the failing scheduled head.git diff --checkpassed.d79c87980ff41b2218803b907201de9cfa164ff6: run 38363318115, job 115182433252, Knip 6.32.2, unchanged configuration and--filesarguments, zero diagnostics in 130.2 seconds. Source-preservation verification passed. Ordinary PR CI 38362413570 passed all selected static, type, architecture, security, and required gates. T1 remained 454 to 454, compatibility calls 9 to 9, and dialect groups 0 to 0. No local Knip, typecheck, or runtime test was run under the compute-conservation rule.