Repository navigation
chore(test): deduplicate shared reader retirement - #154266
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 20, 2026, 10:13 PM ET / September 21, 2026, 02:13 UTC (Revision 2). ClawSweeper reviewWhat this changesRemoves an identical duplicate database-reader entry from the test runner’s cleanup map while retaining existing regression coverage. Merge readiness✅ Ready for maintainer review The cleanup remains useful on current main and introduces no actionable defect. The retained mapping preserves the runner’s existing cleanup behavior. Likely related people: @steipete (medium-confidence routing candidate based on prior merged work). Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s shared test runner drains database resources between test files, then retires their global singletons. The cleanup map connects evaluated module paths to the singleton symbols that must be removed. flowchart TD
A[Test file finishes] --> B[Drain database resources]
B --> C[Inspect evaluated modules]
C --> D[Look up singleton by module path]
D --> E[Retire matching singleton]
E --> F[Next test file starts]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -1. Total -1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one reader-retirement mapping and preserve the existing ordered cleanup regressions. Do we have a high-confidence way to reproduce the issue? Not applicable: this is cleanup, and source inspection confirms the duplicate entries without establishing a runtime defect. Is this the best way to solve the issue? Yes: deleting one identical entry is the smallest maintainable change, and the sole key-lookup consumer preserves behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8e9ac682beef. LabelsLabel 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)
|
|
Merged via squash.
|
Related: #154206, #154214
What Problem This Solves
Concurrent fixes left the shared reader singleton listed twice in the test runner's retirement map.
User Impact
No product or test-cleanup behavior changes. The runner looks entries up by module path, and both duplicate entries have the same path and symbol value.
Why This Change Was Made
Remove the redundant entry while keeping the reader retirement mapping and both existing regressions. This changes one line in test support.
Evidence
git diff --checkpassed.