Repository navigation
test(config): migrate preflight snapshot reader ownership - #170619
Merged
Merged
Conversation
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.
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. |
This was referenced 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.
This was referenced Oct 13, 2026
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.
This was referenced Oct 13, 2026
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.
Complete the preflight reader migration in
config-preflight-snapshot.test.ts. Commit 33a438a (#170530) intentionally madereadConfigPreflightSnapshotprivate and moved reads behindcreateConfigPreflightSnapshotReader, 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 usingin the Doctor test branch and call itsreadmethod. 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
573774fd5d001f19983da243bf241df0bceb6530and passed the completesrc/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
fcb89a331a1f59eedde59c4b3a338febdb199cb7with the same setup and naturally reproducedconfig-preflight-snapshot.test.ts:41TS2724 (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.