Repository navigation
fix(lint): copied runner checks fail after schema preparation - #162489
Conversation
Generate Kysely declarations through the existing owner before direct typed lint and before striped children skip preparation. Keep core lint independent of plugin declaration builds and preserve metadata, focused syntax-only, and caller-owned preparation paths. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 1845cf04-95a0-4fb5-8975-0c309cc08106
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 4:14 AM ET / 08:14 UTC (Revision 6). ClawSweeper reviewWhat this changesThe PR prepares generated database types under shared lint ownership, preserves preparation exemptions, and completes copied-runner fixtures with real-linter regression coverage. Merge readiness✅ Ready for maintainer review Keep open: current main does not cover the complete repair, and the previous integration blocker is resolved. No actionable correctness or security findings remain. Likely related people: steipete and vincentkoc (medium-confidence routing candidates). Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s lint runners feed source files and generated database declarations into the native TypeScript-aware linter. The batch runner prepares shared artifacts before launching lint children and collects their results. flowchart TD
A[Developer or CI lint request] --> B[Direct or batch runner]
B --> C{Typed lint needed?}
C -->|Yes| D[Shared artifact ownership]
D --> E[Generate database declarations]
E --> F[Native linter]
C -->|No| F
F --> G[Diagnostics and exit status]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +132, Other +18. Total +150 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep generated-type preparation with the existing generator and shared artifact owner, preserving lightweight commands and core lint’s independence from plugin declaration builds. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: current-main copied fixtures omit the generator imported by their copied lint runners. The PR records the corresponding missing-module failure and cold-lint failures; this read-only review did not execute them. Is this the best way to solve the issue? Yes. The patch extends the existing generator and artifact owner, repairs the affected fixture closures, and preserves supported preparation exemptions without modifying database consumers or suppressing diagnostics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against af80e86b3a2a. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
Keep copied lint-status and changed-lint fixtures complete after typed runners gained their Kysely prerequisite. Preserve all process-lifetime, signal, timeout, and semantic-lint assertions. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 6962f022-9a87-4b9e-98b9-c48b9f678a13
Resolve the actual run-oxlint conflict with main commit 54522d1 by retaining the reviewed direct and batch preparation owners. Task files remain byte-identical to the tested candidate; 59 focused tests, typed lint and formatting pass after integration. Review disposition: the shard-parent skip-preparation suggestion is not applied. Existing batch preparation deliberately runs before child processes and installs OPENCLAW_OXLINT_SKIP_PREPARE=1 only for those children; the direct runner owns that leaf handoff. Preserve that established parent/child contract rather than adding a new batch-level bypass. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: f87db3b2-5303-4e82-abd2-215b0ad81c97
Mixed threads and forks add different immediate OS parent hops. Record each real Vitest CLI PID and PPID in the existing fixture, bind every borrower to its launcher, and continue requiring exactly two CI group owners. Preserve three borrowers, generation/input equality, compiler counts and disposal guarantees; strengthen per-group and launcher cleanup checks. The original first-case failure was reproduced with bounded ancestry observations before its assertion. Full original-order CI fixture plus batch/shutdown siblings: 81 passed. The failing case also passes with the reported bun-compatible runtime policy. Scoped changed checks passed; independent P2 review is clean. No production owner, scheduling, timeout, retry, or pool configuration changes. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 898d5732-9c30-4a0e-a6ae-83e81453a9a3
Resolve the actual conflict with newly landed main repair 5a1c18b by retaining its worker fixture byte-for-byte rather than shipping a competing observer. The canonical fix records the real group planner before threads or forks inherit its identity; all six original-order cases pass under the reported bun-compatible CI policy (53.51s Vitest, 54.42s runner wall). The remaining five-file Kysely and copied-lint-fixture patch is unchanged and retains its previous proof. The independently reviewed/tested alternative 632bd60 remains in history for attribution, but is superseded by the canonical main implementation. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 411d1e40-6d79-485c-b42e-63843f69fd68
|
Merged via squash.
|
…aw#162489) * fix(lint): prepare schema types before cold core checks Generate Kysely declarations through the existing owner before direct typed lint and before striped children skip preparation. Keep core lint independent of plugin declaration builds and preserve metadata, focused syntax-only, and caller-owned preparation paths. Co-authored-by: steipete <[email protected]> * fix(lint): cold core checks fail on missing database types Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 1845cf04-95a0-4fb5-8975-0c309cc08106 * test(lint): include generated-type owner in runner fixtures Keep copied lint-status and changed-lint fixtures complete after typed runners gained their Kysely prerequisite. Preserve all process-lifetime, signal, timeout, and semantic-lint assertions. Co-authored-by: steipete <[email protected]> * fix(lint): cold core checks fail on missing database types Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 6962f022-9a87-4b9e-98b9-c48b9f678a13 * fix(lint): copied runner checks fail after schema preparation Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: f87db3b2-5303-4e82-abd2-215b0ad81c97 * fix(test): measure CI group ownership at the Vitest launcher Mixed threads and forks add different immediate OS parent hops. Record each real Vitest CLI PID and PPID in the existing fixture, bind every borrower to its launcher, and continue requiring exactly two CI group owners. Preserve three borrowers, generation/input equality, compiler counts and disposal guarantees; strengthen per-group and launcher cleanup checks. The original first-case failure was reproduced with bounded ancestry observations before its assertion. Full original-order CI fixture plus batch/shutdown siblings: 81 passed. The failing case also passes with the reported bun-compatible runtime policy. Scoped changed checks passed; independent P2 review is clean. No production owner, scheduling, timeout, retry, or pool configuration changes. Co-authored-by: steipete <[email protected]> * fix(ci): repair cold lint fixtures and mixed-pool worker checks Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 898d5732-9c30-4a0e-a6ae-83e81453a9a3 * fix(lint): copied runner checks fail after schema preparation Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 411d1e40-6d79-485c-b42e-63843f69fd68 --------- Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes copied lint runners failing to load the generated schema-type owner, and completes cold typed-lint preparation across direct and striped entrypoints. The original cold-checkout failure reported unchanged database types as error/any.
User Impact
Developers and CI can run direct or striped core lint without first building plugin declarations. There is no user-visible runtime, SQL schema, data, or migration change.
Why This Change Was Made
The existing Kysely generator already prepares types for TypeScript checks and plugin-boundary builds, but core lint intentionally skips those plugin builds. While this PR was open, main independently added the direct generator call in 54522d1. The real overlap was resolved by merging main without a rebase or force-push; this PR completes batch ownership, preparation exemptions, artifact lifetime, and copied-fixture dependencies. Direct typed lint now invokes that generator under artifact ownership; the shard owner generates once before launching skip-prepare children. Metadata commands, focused syntax-only guards, and explicit caller-owned preparation retain their existing behavior. No database callers, casts, or suppressions were changed.
Evidence
src/state: four database error-as-any diagnostics before the repair; 494 files passed afterward.src/state/openclaw-state-read.types.ts: the same four diagnostics before the repair; passed afterward. Generator verification passed after both cold runs.pnpm test test/scripts/run-oxlint-kysely.test.ts --maxWorkers=1: 3 passed; 9.563 seconds command wall, 5.973 seconds test time. The fixture exercises the real process entrypoints and native linter. CI timing is not yet available.check-changedpassed, including script/root-test types, lint, formatting, ratchets, and dead-export scans.Worked on by
Work sessions
View the OpenClaw team session