Repository navigation
fix(ci): avoid broad plugin runs for retention helpers - #160260
Conversation
|
🦞👀 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 September 28, 2026, 4:04 AM ET / 08:04 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch routes retention child helper changes to their owning test and adds coverage for bounded test selection and CI tooling comparisons. Merge readiness✅ Ready for maintainer review Current main still lacks the routing needed for the retention child helper. The proposed fix remains useful, and the introduced changes show no blocking defect. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s changed-test planner takes changed repository paths, identifies owning tests and import consumers, and packs them into CI jobs. The plugin retention test launches its child helper through a runtime descriptor, which ordinary import tracing cannot see. flowchart LR
A[Changed source paths] --> B[Precise owner map]
B --> C[Owning retention test]
A --> D[Import consumer scan]
C --> E[Bounded test targets]
D --> E
E --> F[CI job planner]
F --> G[Node test jobs]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +45. Total +45 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the retention helper on the existing precise-owner route, preserving bounded consumer discovery and the regression that checks the resulting selection. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source shows the missing owner entry and the runtime-descriptor launch that import tracing misses; this read-only review did not execute the planner. Is this the best way to solve the issue? Yes. The branch uses the existing precise-owner map and keeps bounded import-consumer discovery; its planner fixture compares tooling against the matching selected inventory. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 33d1dbeae6db. 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 (1 earlier review cycle)
|
Map the process-only retention child to its existing test owner while preserving bounded direct and same-area transitive consumers. Co-authored-by: steipete <[email protected]>
Full inventory runner promotion includes unrelated compiler fixtures. Keep strict metadata assertions against the matching selected tooling owner; leave non-tooling canonical comparisons and production packing unchanged. Co-authored-by: steipete <[email protected]>
00ac054 to
10b5904
Compare
158 upstream commits, including the Kie AI, Z.AI and Novita video providers (openclaw#160080) and several CI planner repairs (openclaw#160187, openclaw#160260, openclaw#160324, openclaw#160376). No file outside the generated set and the test routing list changed on both sides. Two conflicts, both generated: docs/.generated/config-baseline.counts.json and docs/.generated/config-baseline.sha256. openclaw#160080 adds plugin settings, so plugin goes from 4353 to 4374. This branch keeps channel at 3788 and core stays at 2464. Both files came from upstream and were regenerated. test/vitest/vitest.extension-database-workers-paths.mjs changed on both sides in separate places and merged cleanly, with upstream's ten new entries and this branch's Feishu entry all kept. build:docker ran in a separate detached checkout of this commit outside the nested node_modules install. Regenerating there changed those two files and nothing else, giving the predicted counts, the upstream core and plugin hashes, this branch's channel hash and a new combined hash. The three generated-file checks pass there. Upstream deleted 38 test files in this range. None of them were added or changed by this branch. Feishu: 106 files and 1853 tests in the extension project, 17 files and 312 tests in the database-workers project. The forwarder test and the routing guards pass, 1980 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines and assertion-safety ratchets against upstream/main, oxlint and oxfmt on the 43 changed code files all pass.
Map the opaque retention child helper to its owning test while retaining bounded direct and same-area transitive consumers. Repair the CI integration fixture to compare precise tooling with its selected canonical owner rather than an unrelated full-inventory compiler promotion. Validated the original retention regression and 1,768-test owner suite, the repaired exact CI shard (28/28), affected type graphs, lint/format, and the unchanged 38-row / 291-test plan. Fresh independent autoreview found no actionable findings. Worked on by @steipete. Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes CI selecting the whole plugin directory when the opaque retention child helper changes.
Related: #159923
User Impact
No user-visible change. Retention-helper changes keep their owning regression and relevant consumers without running unrelated plugin tests. Job limits, timing budgets, worker policies, and runtime behavior are unchanged.
Why This Change Was Made
The retention test launches its helper through a runtime-worker descriptor rather than an import. The existing precise-owner map records that relationship while bounded routing still discovers direct and in-area transitive consumers.
Investigating the first CI run also exposed a planner-test fixture comparing precise tooling against an unrelated full-inventory compiler promotion. The fixture now uses the selected canonical tooling owner and retains all strict metadata and coverage assertions. This is one additional test file, not a packing implementation.
Evidence
Worked on by @steipete.
Work sessions