Skip to content

fix(ci): avoid broad plugin runs for retention helpers - #160260

Merged
roboclaw-bot merged 2 commits into
mainfrom
fix/precise-retention-test-mapping
Sep 28, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
fix/precise-retention-test-mapping

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The retention regression failed on the baseline and passed after the mapping. The original full test-projects suite passed 1,768/1,768 (183.23 s wall; added case 113 ms).
  • Final three-file changed-path plan: 291 selected tests, 38 Node rows, below the unchanged 130-row cap.
  • First CI run 36392803828 tested merge 8e4072bd6b6c4c1086fbb12b66fcf5b321db91e6 and genuinely failed; cancelled jobs are not passing coverage. Exact failed-job logs were inspected once.
  • Incorporated canonical fixes da2efd83 for the missing reliability-test export and 9a7e90e for the duplicate device-pair inventory. The exact failing services type graph now passes.
  • Local replay of the failed two-file shard then reproduced the remaining runner-reference mismatch (27/28 passed). The selected QA tooling test used 8 vCPUs while the full inventory was promoted to 32 by an unrelated declaration compiler. Its fixture is repaired without changing production planning.
  • Repaired exact two-file shard: 28/28 passed (192.95 s wall with the original two-worker limit; seven planner integration cases plus 21 registry cases). The expensive existing cases exercise complete repository selection; no test, assertion, or timing budget was removed. The original CI failing shard took 140 s.
  • Fresh independent autoreview of the complete repaired candidate: scoped-clean through P2. Changed-file lint, format, and tooling test types pass. No CI rerun, workflow dispatch, or gate bypass was used.

Worked on by @steipete.

Work sessions

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Sep 28, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 28, 2026 07:39
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 4:04 AM ET / 08:04 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 10b5904a65189456f6cb528235064c3bb0087d22

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The narrow owner mapping has a relevant regression and reported local planner results, with no blocking defect found in the introduced diff.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The bot-authored internal CI change is exempt from the contributor proof gate. The PR body reports baseline and after-fix planner and test results for the changed route; this review did not rerun them, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The bot-authored internal CI change is exempt from the contributor proof gate. The PR body reports baseline and after-fix planner and test results for the changed route; this review did not rerun them, and no stored-data contract changes.
Evidence reviewed 7 items Introduced change: The pinned merge-base-to-head diff adds one precise owner mapping and changes two test files; the verified test merge contains the same three paths.
Current-main necessity: At the fetched main revision, the precise-owner map exists but has no entry for the retention child helper.
Opaque child relationship: The retention test launches a runtime worker identified by the descriptor rather than importing the child helper directly.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +45. Total +45 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 46 1 +45
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 46 1 +45

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: The change reduces unnecessary CI test selection without changing user-facing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The bot-authored internal CI change is exempt from the contributor proof gate. The PR body reports baseline and after-fix planner and test results for the changed route; this review did not rerun them, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-28T07:45:43.965Z sha 00ac054395ccad42732098144e86f84739f0e2a2 :: needs maintainer review before merge. :: none

roboclaw-bot and others added 2 commits September 28, 2026 07:49
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]>
@roboclaw-bot
roboclaw-bot force-pushed the fix/precise-retention-test-mapping branch from 00ac054 to 10b5904 Compare September 28, 2026 07:56
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) September 28, 2026 07:58
@roboclaw-bot
roboclaw-bot merged commit 5362ba0 into main Sep 28, 2026
153 of 155 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/precise-retention-test-mapping branch September 28, 2026 08:11
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Sep 28, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants