Skip to content

test(config): migrate preflight snapshot reader ownership - #170619

Merged
steipete merged 1 commit into
mainfrom
dbasync/redmain-preflight-reader-test
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
dbasync/redmain-preflight-reader-test

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Complete the preflight reader migration in config-preflight-snapshot.test.ts. Commit 33a438a (#170530) intentionally made readConfigPreflightSnapshot private and moved reads behind createConfigPreflightSnapshotReader, which owns and disposes executable inspection caches. The remaining direct test import caused TS2724 in the commands test type project. The diagnostic was observed in run 38344022221/job 115121788481 on PR #170575's synthetic merge; source inspection confirms the same stale caller on main at fcb89a3.

Use the existing factory with await using in the Doctor test branch and call its read method. All snapshot options and behavioral assertions stay unchanged. Disposal completes before the final config, backup, and SQLite-family byte-preservation assertions. The private helper stays private, with no compatibility wrapper or test-only production export.

Exact candidate proof checked out 573774fd5d001f19983da243bf241df0bceb6530 and passed the complete src/commands/config-preflight-snapshot.test.ts: 19/19, no skips, 103.81s Vitest / 108.07s runner wall. It also passed the exact failing commands TypeScript leaf: node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.commands.json --incremental.

The independent baseline job checked out actual main fcb89a331a1f59eedde59c4b3a338febdb199cb7 with the same setup and naturally reproduced config-preflight-snapshot.test.ts:41 TS2724 (exit 2). The overall proof workflow is red because that separate baseline fails; the independent candidate test and type steps both pass. No failure was suppressed.

Ordinary CI completed successfully: 18 jobs passed, 29 skipped, including the aggregate. Selected test types, lint, source contracts, and boundaries pass; Madge reports zero cycles. T1 live stays 455→455, compatibility stays 9→9, and dialect stays 0→0. Knip, build, update, and SDK-diff jobs were unselected and are not claimed as fresh passes. Scoped formatting, basic lint with warnings denied, whitespace checks, and native hooks passed. One isolated Codex P2 review completed scoped-clean with zero findings. No local suite was run.

Scope: one test file, +3/-2 lines; no production, schema, update, or runtime behavior changes. SQL/T1 measurements and published-driver update proof do not apply to this test caller migration. No assertions or safety checks were removed.

Use the disposable preflight reader in the remaining Doctor test caller after the direct reader became private. Preserve snapshot options and all config, backup, and database byte checks.
@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-13T04:12:01.251046Z 573774f 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.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS labels Oct 13, 2026
steipete added a commit that referenced this pull request Oct 13, 2026
The Solid widget migration in `4a05c7c5d59d5768d10105b46cf131e05734f902` (#169725) removed the final three callers of `renderBoardWidgetError`, leaving its Lit adapter exported but unused. Scheduled main [38343322520/job 115119178402](https://github.com/openclaw/openclaw/actions/runs/38343322520/job/115119178402) fails the canonical export scans on that exact symbol.

Delete the obsolete adapter module and import `BoardWidgetPageMenu` directly from its existing owner in all four remaining type-only consumers. The type, Solid error component, error/retry behavior, and page-menu actions are unchanged. The superseded module is removed completely.

Exact candidate `6b6b0c21aa90d026e6ee7af0bbc00a34b052e5dd` passed all four complete browser, report, website, and board page-chrome test files: **22/22, no skips**, 7.48s Vitest / 11.16s command wall. The [focused run](https://github.com/openclaw/openclaw/actions/runs/38344141789) also passed all three canonical scans: `deadcode:dependencies` (173.37s), `deadcode:unused-files` (98.68s), and `deadcode:exports` (117.24s), with zero production/full-tree unused files or exports and zero script exports. No finding suppression was added.

[Ordinary CI](https://github.com/openclaw/openclaw/actions/runs/38344033939) completed with 35 successful jobs, 24 skipped, and two failed jobs: the commands test type leaf reports the separate preflight-reader TS2724, and the aggregate repeats it. All other selected types, lint, source contracts, and boundaries pass; Madge reports zero cycles. The database ratchets report T1 live 455→455, compatibility 9→9, and dialect 0→0. The [independent baseline job](https://github.com/openclaw/openclaw/actions/runs/38345114058/job/115124606702) checked out actual main `fcb89a331a1f59eedde59c4b3a338febdb199cb7` and naturally failed the identical commands TypeScript leaf with `config-preflight-snapshot.test.ts:41` TS2724 (exit 2). Only this exact inherited failure and its aggregate are waived under the red-main exception; this PR's ordinary CI is not claimed green. The separate preflight repair is tracked in #170619. Build, SDK diff, and update-cell jobs were unselected and are not claimed as fresh passes.

Local formatting, lint, whitespace checks, and native commit hooks passed. One scoped Codex P2 review completed clean with no findings.

Five files: +4/−15. No visual or runtime behavior change, new dependency, schema change, SQLite call, or removed authority check. SQL statements and requests are unaffected by scope; no SQL benchmark was run for this dead-code repair.
@steipete
steipete merged commit 72ccf43 into main Oct 13, 2026
106 of 108 checks passed
@steipete
steipete deleted the dbasync/redmain-preflight-reader-test branch October 13, 2026 04:22
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
The Solid widget migration in `62f3a1a8e593bb65c657f2bb836e5eb5dc9bd921` (openclaw#169725) removed the final three callers of `renderBoardWidgetError`, leaving its Lit adapter exported but unused. Scheduled main [38343322520/job 115119178402](https://github.com/openclaw/openclaw/actions/runs/38343322520/job/115119178402) fails the canonical export scans on that exact symbol.

Delete the obsolete adapter module and import `BoardWidgetPageMenu` directly from its existing owner in all four remaining type-only consumers. The type, Solid error component, error/retry behavior, and page-menu actions are unchanged. The superseded module is removed completely.

Exact candidate `6b6b0c21aa90d026e6ee7af0bbc00a34b052e5dd` passed all four complete browser, report, website, and board page-chrome test files: **22/22, no skips**, 7.48s Vitest / 11.16s command wall. The [focused run](https://github.com/openclaw/openclaw/actions/runs/38344141789) also passed all three canonical scans: `deadcode:dependencies` (173.37s), `deadcode:unused-files` (98.68s), and `deadcode:exports` (117.24s), with zero production/full-tree unused files or exports and zero script exports. No finding suppression was added.

[Ordinary CI](https://github.com/openclaw/openclaw/actions/runs/38344033939) completed with 35 successful jobs, 24 skipped, and two failed jobs: the commands test type leaf reports the separate preflight-reader TS2724, and the aggregate repeats it. All other selected types, lint, source contracts, and boundaries pass; Madge reports zero cycles. The database ratchets report T1 live 455→455, compatibility 9→9, and dialect 0→0. The [independent baseline job](https://github.com/openclaw/openclaw/actions/runs/38345114058/job/115124606702) checked out actual main `54a9df02cc64f5f466490dc7b76ae6bc7f2b2690` and naturally failed the identical commands TypeScript leaf with `config-preflight-snapshot.test.ts:41` TS2724 (exit 2). Only this exact inherited failure and its aggregate are waived under the red-main exception; this PR's ordinary CI is not claimed green. The separate preflight repair is tracked in openclaw#170619. Build, SDK diff, and update-cell jobs were unselected and are not claimed as fresh passes.

Local formatting, lint, whitespace checks, and native commit hooks passed. One scoped Codex P2 review completed clean with no findings.

Five files: +4/−15. No visual or runtime behavior change, new dependency, schema change, SQLite call, or removed authority check. SQL statements and requests are unaffected by scope; no SQL benchmark was run for this dead-code repair.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…w#170619)

Complete the preflight reader migration in `config-preflight-snapshot.test.ts`. Commit 33cbbd1 (openclaw#170530) intentionally made `readConfigPreflightSnapshot` private and moved reads behind `createConfigPreflightSnapshotReader`, which owns and disposes executable inspection caches. The remaining direct test import caused TS2724 in the commands test type project. The diagnostic was observed in run 38344022221/job 115121788481 on PR openclaw#170575's synthetic merge; source inspection confirms the same stale caller on main at 54a9df0.

Use the existing factory with `await using` in the Doctor test branch and call its `read` method. All snapshot options and behavioral assertions stay unchanged. Disposal completes before the final config, backup, and SQLite-family byte-preservation assertions. The private helper stays private, with no compatibility wrapper or test-only production export.

[Exact candidate proof](https://github.com/openclaw/openclaw/actions/runs/38345114058/job/115124606937) checked out `573774fd5d001f19983da243bf241df0bceb6530` and passed the complete `src/commands/config-preflight-snapshot.test.ts`: **19/19, no skips**, 103.81s Vitest / 108.07s runner wall. It also passed the exact failing commands TypeScript leaf: `node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.commands.json --incremental`.

The [independent baseline job](https://github.com/openclaw/openclaw/actions/runs/38345114058/job/115124606702) checked out actual main `54a9df02cc64f5f466490dc7b76ae6bc7f2b2690` with the same setup and naturally reproduced `config-preflight-snapshot.test.ts:41` TS2724 (exit 2). The overall proof workflow is red because that separate baseline fails; the independent candidate test and type steps both pass. No failure was suppressed.

[Ordinary CI](https://github.com/openclaw/openclaw/actions/runs/38345111705) completed successfully: **18 jobs passed, 29 skipped**, including the aggregate. Selected test types, lint, source contracts, and boundaries pass; Madge reports zero cycles. T1 live stays 455→455, compatibility stays 9→9, and dialect stays 0→0. Knip, build, update, and SDK-diff jobs were unselected and are not claimed as fresh passes. Scoped formatting, basic lint with warnings denied, whitespace checks, and native hooks passed. One isolated Codex P2 review completed scoped-clean with zero findings. No local suite was run.

Scope: one test file, +3/-2 lines; no production, schema, update, or runtime behavior changes. SQL/T1 measurements and published-driver update proof do not apply to this test caller migration. No assertions or safety checks were removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant