Repository navigation
fix(test): avoid coauthor cleanup failures in fast CI workers - #158102
roboclaw-bot wants to merge 1 commit into
Conversation
Route the stateful coauthor fixture through the existing parallel infra fork owner so retired native-worker cleanup can use its required host broker. Preserve former unit-fast watch admission and all fixture assertions and custody rules; cover registry, explicit/watch routing and compact planning. Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 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 25, 2026, 9:45 AM ET / 13:45 UTC (Revision 3). ClawSweeper reviewWhat this changesRoutes the Git co-author attribution test through the forked infrastructure test pool and adds checks for direct, watch, registry, and compact CI selection. Merge readiness✅ Ready for maintainer review Current main still lacks the routing needed for this fixture’s cleanup fallback. The branch provides a distinct, source-supported repair with positive fixture evidence; the linked model-inventory failure does not supersede it. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s test planner assigns test files to Vitest worker pools. The co-author fixture uses shared database state, so its cleanup may need the host database broker before a later test can use a clean environment. flowchart LR
A[Co-author test] --> B[Test routing registry]
B --> C{Selected project}
C --> D[Infrastructure fork]
D --> E[Host database broker]
E --> F[Fixture cleanup]
F --> G[Clean next test]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +15. Total +15 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep this fixture with its single forked infrastructure owner and existing cleanup contract, then let the normal merge gate validate the combined tree after the separate model-inventory repair. Do we have a high-confidence way to reproduce the issue? Yes for the cleanup fallback: the fixture, thread-only host-broker rejection, and forked owner give a concrete fault-injection path, with before-and-after observations recorded in the PR. The spontaneous worker exit that first exposed it has not been explained. Is this the best way to solve the issue? Yes. Reusing the existing forked infrastructure owner supplies the required host broker while preserving the fixture’s cleanup and attribution assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against af32e81d1441. 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
History |
|
Closing as superseded by 6d32778 ( With the owner fixed, rerouting this test onto the host-broker infra config isn't needed. The branch's two red shards were unrelated |
Related: canonical CI failure
What Problem This Solves
Fixes co-author fixture cleanup failing in thread-based CI and leaving its state-directory selector active for later tests.
User Impact
Internal test routing only; production attribution, workspace resolution and database behavior are unchanged. The fixture now runs with the host-owned database broker required by its cleanup fallback. Existing cleanup custody and all assertions remain intact.
Why This Change Was Made
All nine attribution assertions passed in the failed run, but cleanup of an exited native worker reached a host-only broker path from a reused Vitest thread. The rejected cleanup left the fixture environment selected; a later workspace-default test then observed that same fixture root.
Register this stateful consumer with the existing parallel infra fork owner and preserve its former unit-fast watch admission. Extend existing registry, explicit/watch routing and compact-planner checks so the file has exactly one appropriate owner. No new worker configuration, serial pin, retry, timeout, cleanup suppression or environment-reset shortcut.
The initiating reason native cleanup became unsettled is still unknown. This repairs the demonstrated host-capability mismatch, not every possible native cleanup failure.
Contributor credit: requested by and co-authored with @vincentkoc.
Work sessions
Evidence
d43208fc; adjacent native-cleanup PRs do not supply this host routing change. No full-main recovery claim.View the OpenClaw team session