Repository navigation
test: split dashboard worker test monolith - #1127
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 6:25 PM ET / 22:25 UTC. ClawSweeper reviewWhat this changesThis PR replaces the Dashboard Worker’s single 29,073-line test file with eight themed test files, a shared harness, and committed equivalence and container-proof records. Merge readinessKeep open: the test split is not on current main, has strong current evidence, and no correctness or security blocker was found. The PR body explicitly says “Do not merge,” so it should remain paused rather than enter an automated landing path. Priority: P3 Review scores
Verification
How this fits togetherThe Dashboard Worker receives GitHub events, manages review and queue lifecycle state, and exposes dashboard status data. Its tests use in-memory Worker storage and request fixtures to cover those paths. flowchart LR
A[GitHub events] --> B[Dashboard Worker]
B --> C[Queue and lifecycle state]
C --> D[Dashboard status APIs]
E[Shared test harness] --> B
F[Themed test files] --> E
F --> G[Equivalence and container proof]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the themed test split and shared harness as the maintainable replacement for the monolith, and resume landing only after the PR owner removes or clarifies the explicit merge pause. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a test-ownership refactor rather than a reported product bug. The relevant validation is preservation of test discovery, registrations, names, and full-suite results. Is this the best way to solve the issue? Yes: splitting by coherent test themes while keeping shared fixtures in a non-discovered harness is the narrowest maintainable way to reduce the monolith, and the submitted evidence checks the resulting behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4b79888c3f2a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Behavior proof
Claim: test ownership changes only; runtime names, counts, and bodies are unchanged.
Exercised surface: Node 24 discovery through the real
scripts/run-node-tests.mjsglob, every split file in isolation, the complete localpnpm run check, and the full suite from a clean PR checkout inside Docker through Crabbox.Observable result:
origin/main: 3,333 tests; 3,324 passed; 9 macOS skips; 0 failedpnpm run checkpasses at 81.58% line, 74.03% branch, and 87.39% function coverageContainer receipt
The clean
--fresh-pr openclaw/clawsweeper#1127 --no-hydrateproof passed at pushed head07d5ef9528ad69b7b4a2aaafa1050c199b2506c6. The current head adds only its reviewed receipt.awsnode:24-bookwormcbx_a6899c138d00(jade-lobster-c3f0)run_8980401fcc5dc7a.8xlargedocs/proof/split-dashboard-worker-tests/container-provenance.jsondbc6510b36b5b50ce8bc8fb7e201fde0dcc05281871e92e20433408c5520da3e; TruffleHog 3.96.0 found zero verified or unknown secretsTwo missing-tool bootstrap attempts and one pre-pin successful run are disclosed in the receipt with their exact heads, run/lease IDs, outcomes, reasons, and cleanup states.
Finding disposition
Accepted and resolved: the prior ClawSweeper P2 finding required a repository-pinned jq trust anchor. Commit
07d5ef9528removes the network-fetched manifest as the trust root and pins the official per-architecture jq 1.8.2 digests in the proof script. The subsequent clean fresh-PR proof passed on that exact commit.All applicable rank-up moves are complete: pinned jq digests, current integrity-fixed container proof, committed receipt, and updated PR body.
The generic autoreview transport could not review the full mechanical move because its secret-fragment guard refuses existing synthetic credential-shaped fixtures duplicated between a deleted file and moved additions; TruffleHog was clean. The repository-native committed-range ClawSweeper review ran read-only, and every later receipt/integrity patch received a clean structured Codex review.
Limits and Bay
No production endpoint, Worker deployment, GitHub mutation path, or live queue is exercised. This is a test-only ownership split.
OpenClaw Bay: none. No data contract, lifecycle projection, queue control, telemetry, route, or observer-only boundary changes.
Do not merge.