Skip to content

test(sqlite): make the Bun fixture dependency discoverable - #170778

Merged
steipete merged 1 commit into
mainfrom
dbasync/redmain-bun-fixture-reference
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
dbasync/redmain-bun-fixture-reference

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

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 #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. The full-tree unused-file scan reports this one helper; production-file and all unused-export scans passed.
  • Culprit: 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 base cdd0d2df564828ecf9fa01c03ae655af8c952b06 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, 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.

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.
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T07:26:17.472304Z d79c879 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete merged commit ce186b0 into main Oct 13, 2026
106 checks passed
@steipete
steipete deleted the dbasync/redmain-bun-fixture-reference branch October 13, 2026 07:39
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant