Skip to content

fix(ci): deduplicate database worker test inventory - #154429

Closed
steipete wants to merge 1 commit into
mainfrom
codex/ci-storage-inventory-20260920
Closed

steipete wants to merge 1 commit into
mainfrom
codex/ci-storage-inventory-20260920

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

CI preflight fails with split timing generation repeats files for core-runtime-infra-storage-state because the database-worker inventory contains src/worker/worker.runtime.test.ts twice.

User Impact

CI can construct its test plan and run the selected jobs again. The worker test retains its original inventory entry and still runs exactly once.

Why This Change Was Made

Main #154244 added a second occurrence of an existing entry. This removes that added occurrence. The strict duplicate guard, test coverage, shard policy, and timing data stay unchanged.

The failed merge used the same inventory blob as the inspected main revision. The maintenance changes in #154308 do not modify this inventory and did not cause the failure.

Evidence

  • The actual hybrid compact PR planner reproduced the CI preflight failure before the repair.
  • The existing exactly-once regression failed before the deletion; the complete planner test file then passed 114 cases in 88.65 seconds. No redundant regression test was added.
  • Actual hybrid planners now produce 68 PR jobs and 45 push jobs. Both retain 14 storage groups containing 660 distinct files, with the affected worker test included once.
  • The complete selected changed-file gate and whitespace check passed. Fresh independent P2 review found no actionable issues.

Keep worker.runtime in its original database-worker inventory position. A repeated entry made compact CI timing generation reject the infrastructure storage/state shard before test admission.

Validation: existing infra exactly-once regression fails before removal; all 114 CI planner tests pass after. Hybrid PR and push manifests retain 660 distinct storage files and one worker.runtime entry. Changed checks and independent P2 review pass.
@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
@steipete
steipete marked this pull request as ready for review September 21, 2026 04:49
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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: blocked before merge. Reviewed September 21, 2026, 12:55 AM ET / 04:55 UTC (Revision 2).

ClawSweeper review

What this changes

Removes a duplicate worker-test inventory entry so CI planning succeeds while preserving the test’s process-isolated registration.

Merge readiness

⛔ Blocked before merge - 2 items remain

The patch is correct, but current main already contains the identical repair. Keep this protected maintainer PR open for human disposition; no GitHub-verified merged fixing PR establishes an automatic-close path.

Priority: P2
Reviewed head: 04c10eb5cbcd24f0ed559d43ac2840ee3234173d
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, correct repair with relevant existing coverage and reported planner validation; redundancy on main does not reduce patch quality.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this maintainer PR; its captured evidence nevertheless reports successful execution of the changed CI planner with exactly one worker-test assignment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this maintainer PR; its captured evidence nevertheless reports successful execution of the changed CI planner with exactly one worker-test assignment.
Evidence reviewed 8 items Precisely bounded introduced change: The pinned introduction delta removes only the duplicate worker.runtime.test.ts entry near line 31; its existing registration remains at line 480.
Identical repair already on main: The fetched main commit removes the same occurrence, and comparing its inventory against the PR head produces no differences.
Main repair provenance: The main repair is dated 2026-09-21T04:52:46Z. Its commit message records preflight reproduction and successful planning that preserves 660 unique storage-state files.
Findings None None.
Security None None.

How this fits together

The test inventory identifies suites that need the database worker’s process-isolated environment. CI combines these entries into test shards and rejects duplicate file assignments before scheduling jobs.

flowchart LR
  A[Test inventory] --> B[CI shard planner]
  B --> C{Unique file assignments}
  C -->|No| D[Preflight failure]
  C -->|Yes| E[Scheduled test jobs]
  E --> F[Process-isolated tests]
Loading

Decision needed

Question Recommendation
Should this protected PR be closed manually because main already contains its complete repair? Close manually as already applied: Retain the repair on main and close this PR with its validation history preserved.

Why: Source equality establishes redundancy, but protected maintainer work requires human disposition and no merged fixing PR was verified.

Before merge

  • Complete next step (P2) - Decide whether to close this protected PR manually because its complete repair is already on main.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
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:

Preserve main’s deduplicated inventory and existing exactly-once guard, with no additional implementation work.

Do we have a high-confidence way to reproduce the issue?

No current-main failing reproduction remains established: its inventory already matches the repaired PR. The original duplicate and rejecting planner guard are source-confirmed, and the PR records before/after planner execution.

Is this the best way to solve the issue?

Yes. Removing the duplicate at its inventory owner preserves coverage and isolation without weakening the planner’s guard.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f76d38a4ac5e; fix evidence: commit f76d38a4ac5e, main fix timestamp 2026-09-21T04:52:46Z.

Labels

Label justifications:

  • P2: This is a bounded CI inventory repair whose underlying failure is already addressed on fetched main.
  • 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 external-contributor proof gate does not apply to this maintainer PR; its captured evidence nevertheless reports successful execution of the changed CI planner with exactly one worker-test assignment.

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-21T04:48:34.926Z sha 04c10eb :: needs maintainer review before merge. :: none

@vincentkoc vincentkoc self-assigned this Sep 21, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Peter landed this exact inventory repair directly in f76d38a. The landed file matches this PR byte-for-byte: 483 unique entries, with the original worker-runtime registration and remaining order preserved. Main preflight also passed: https://github.com/openclaw/openclaw/actions/runs/35562537453/job/106218008872.

Closing as already applied. The investigation and validation recorded here remain available; no branch deletion.

@vincentkoc vincentkoc closed this Sep 21, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

This exact repair is now on main in f76d38a. Native review verified that its one-line deletion and resulting inventory blob are identical to this PR, preserving the original test entry and strict duplicate guard. The latest full Claw review independently confirms the duplication.

Closing this PR as already applied. The retained planner regression and hybrid-plan proof remain useful validation of the canonical fix.

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

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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.

2 participants