Repository navigation
fix(ci): use the subagent codec in state migration tests - #154014
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
6708dff to
de5c75a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 4:14 PM ET / 20:14 UTC. ClawSweeper reviewWhat this changesThe PR excludes UI end-to-end fixtures from targeted Stylelint checks and updates a state migration test to import its record serializer from the codec owner. Merge readiness✅ Ready for maintainer review Keep open: both repairs remain necessary on captured main, and the patch preserves existing test and lint contracts. No actionable introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherChanged-file tooling turns modified paths into lint and typecheck commands. Separately, state migration tests use the subagent codec to prepare database fixtures and verify identifier repair. flowchart TD
A[Changed file paths] --> B[Check planner]
B --> C[UI styles and Lit templates]
B --> D[End-to-end fixtures excluded from Stylelint]
C --> E[Targeted Stylelint]
F[State migration tests] --> G[Subagent codec]
G --> H[Database fixtures and repair assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -2, Other +3. Total +1 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Retain the narrow lint-target correction and direct codec import while preserving existing coverage and storage behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: main's Stylelint selector contradicts the existing companion-path expectation, and the state test imports a symbol the store no longer exports. Tests were not executed during this read-only review. Is this the best way to solve the issue? Yes. Both edits repair the existing owners directly without restoring a retired export, weakening tests, or adding another implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 476275081333. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Please keep the existing UI TypeScript lint scope and repair the selector test fixture instead. The failure at I ran the repository's stylelint wrapper against both the existing A small test-only alternative is verified:
The missing-TS assertion fails before that expectation correction, and all 352 tests in |
|
Update from the landing side: |
Restore the identifier test after main moved the binder out of the SQLite store. Retain the existing assertions and SQLite reader import. Use the minimal import correction from #154014. Co-authored-by: Dallin Romney <[email protected]>
Preserve the existing UI TypeScript stylelint scope and the corrected selector expectation from main. Retain the direct codec import repair without adding a compatibility export or changing migration assertions. Co-authored-by: Dallin Romney <[email protected]>
Preserve the reviewed activity projection patch and its measured source bytes while including the corrected main selector expectation and the reviewed codec import repair in #154014. Required CI must pass for this integrated head before landing.
* perf(ci): reduce Swift test build and fixture overhead * test(ci): retain optimized Swift arguments in launcher proof * test(state): import subagent record codec from its owner Restore the identifier test after main moved the binder out of the SQLite store. Retain the existing assertions and SQLite reader import. Use the minimal import correction from #154014. Co-authored-by: Dallin Romney <[email protected]> --------- Co-authored-by: Dallin Romney <[email protected]>
* perf(ci): reduce Swift test build and fixture overhead * test(ci): retain optimized Swift arguments in launcher proof * test(state): import subagent record codec from its owner Restore the identifier test after main moved the binder out of the SQLite store. Retain the existing assertions and SQLite reader import. Use the minimal import correction from openclaw/openclaw#154014. Co-authored-by: Dallin Romney <[email protected]> --------- Co-authored-by: Dallin Romney <[email protected]>
* fix(ci): skip UI e2e files in stylelint targets * test(state): import subagent record codec from owner
* perf(ci): reduce Swift test build and fixture overhead * test(ci): retain optimized Swift arguments in launcher proof * test(state): import subagent record codec from its owner Restore the identifier test after main moved the binder out of the SQLite store. Retain the existing assertions and SQLite reader import. Use the minimal import correction from openclaw#154014. Co-authored-by: Dallin Romney <[email protected]> --------- Co-authored-by: Dallin Romney <[email protected]>
What Problem This Solves
State migration tests import
bindSubagentRunRecordfrom the SQLite store, which no longer exports it, preventing the existing identifier-repair tests from running successfully.User Impact
Restores CI coverage for identifier normalization, completion ownership, collision refusal, and atomic legacy imports. There is no production behavior or schema change.
Why This Change Was Made
The fixture now imports the serializer directly from its existing codec owner and keeps
readSubagentRunwith the SQLite reader. All test bodies and assertions remain unchanged; no compatibility export is added.The existing UI TypeScript stylelint scope is preserved. Main already corrected the companion-file expectation in #153982, so no lint exclusion is needed. The contributor's original codec correction and commit ancestry are retained.
Evidence
bindSubagentRunRecord is not a function; two independent cases passed.pnpm test src/state/openclaw-state-db-task-identifiers.test.ts --maxWorkers=1.97954e43761c9fba1b3b33cce85b44b7e56235fb, and the final required commit statuses are successful. Earlier installation API-rate-limit failures are retained as historical failures.Before the existing author-enabled auto-merge completed, #153988 independently brought the identical codec correction onto main in
1c2bdf3e26532e71ae3fbb189b5bc58671f288f6. This PR then merged asd0b5c46fa7ee198a74d160f5e45548d78600589dwith no net delta. Post-merge verification confirms both the migration test and full-scope lint planner match the reviewed source. No additional application of the fix is needed.