Skip to content

chore(test): deduplicate shared reader retirement - #154266

Merged
steipete merged 1 commit into
mainfrom
codex/dedupe-state-read-worker-retirement
Sep 21, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/dedupe-state-read-worker-retirement

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Confirmed the duplicate still exists on current main and that the map's only consumer uses key lookup.
  • Independent review through P2: no actionable findings on this exact patch.
  • Formatting and git diff --check passed.
  • No new tests or repeated test campaign for this behavior-preserving deduplication; required hosted CI passed on the published head (run).

@clawsweeper

clawsweeper Bot commented Sep 21, 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 size: XS maintainer Maintainer-authored PR labels Sep 21, 2026
@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 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 10:13 PM ET / September 21, 2026, 02:13 UTC (Revision 2).

ClawSweeper review

What this changes

Removes 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
Reviewed head: 51978e9a4792507d4b29062b2e9672f1c2e2fe48

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct cleanup with retained coverage and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER author classification exempts this behavior-preserving test-support cleanup from contributor runtime proof; source inspection confirms the runner retains the same lookup result.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER author classification exempts this behavior-preserving test-support cleanup from contributor runtime proof; source inspection confirms the runner retains the same lookup result.
Evidence reviewed 7 items Pinned introduced change: The merge-base-to-head patch deletes only one identical path/symbol pair; the other remains at line 19. The original base blob was also inspected.
Consumer preserves behavior: The only consuming lookup uses Map.get(node.file), not map iteration. Cleanup order follows evaluated modules after drainage, so removing the duplicate does not change retirement order or the returned symbol.
Still present on fetched main: Fetched main retains both identical entries. This cleanup is not already implemented there.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -1. Total -1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 0 1 -1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 0 1 -1

Review metrics

None.

Technical review

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

Labels

Label justifications:

  • P3: This is behavior-preserving test-support cleanup with no product runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 supplied MEMBER author classification exempts this behavior-preserving test-support cleanup from contributor runtime proof; source inspection confirms the runner retains the same lookup result.

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)

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-21T01:50:24.373Z sha 51978e9 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review September 21, 2026 02:00
@steipete
steipete merged commit 97a9339 into main Sep 21, 2026
195 checks passed
@steipete
steipete deleted the codex/dedupe-state-read-worker-retirement branch September 21, 2026 02:24
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant