Skip to content

test(ci): dedupe pdf-tool.resources in database worker core paths - #161335

Closed
zachisfine wants to merge 1 commit into
openclaw:mainfrom
zachisfine:fix/preflight-dedupe-core-paths
Closed

zachisfine wants to merge 1 commit into
openclaw:mainfrom
zachisfine:fix/preflight-dedupe-core-paths

Conversation

@zachisfine

@zachisfine zachisfine commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Every PR whose diff touches any non-README path fails preflight with:

Error: split timing generation repeats files for core-runtime-infra-storage-state

Since 670e3fb4ea2 (#161270), databaseWorkerCoreTestFiles in test/vitest/vitest.database-worker-core-paths.mjs lists src/agents/tools/pdf-tool.resources.test.ts twice: once from 16b17b22ebc and again from the block #161270 added. The changed-node shard planner enforces that a split timing generation never repeats files (createCompactSplitTimingGeneration in scripts/lib/vitest-shard-metadata.mts), so the planner crash blocks every PR's CI at preflight.

Changes

Remove the duplicate entry. No behavior change elsewhere: the list is a set of file paths consumed by shard planning.

Evidence

Reproduction at origin/main (1a4c5d9), content-independent:

node --experimental-strip-types -e "
import('./scripts/lib/ci-changed-node-test-plan.mts').then(m =>
  m.createChangedNodeTestShards(['src/commands/backup-shared.ts'],
    { baseRef: 'origin/main', compactNodeJobCap: 130 }))"
# => Error: split timing generation repeats files for core-runtime-infra-storage-state

The crash reproduces for arbitrary unrelated single-file diffs (e.g. src/config/sessions/disk-budget.ts, src/commands/status.scan-result.ts), while README.md passes — confirming the duplicate in the shared path list is the trigger, not any PR's content. After deleting the duplicate locally, every case plans cleanly (112–115 shards, including all three previously-crashing paths).

670e3fb (openclaw#161270) re-added src/agents/tools/pdf-tool.resources.test.ts
to databaseWorkerCoreTestFiles, which already listed it (16b17b2). The
changed-node shard planner now rejects repeated files in a split timing
generation, so preflight threw 'split timing generation repeats files for
core-runtime-infra-storage-state' for every PR touching any non-README path.
Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:33
@clawsweeper

clawsweeper Bot commented Sep 29, 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 the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The targeted deletion restores registry uniqueness while retaining the PDF test route.

Review effort: Balanced
Findings: None

What changed in this PR

Removes a duplicate database-worker test route that broke CI shard planning.

Changes:

  • Deletes the second PDF resource test entry.
  • Preserves its canonical route and registry uniqueness.
File Description
test/​vitest/​vitest.database-worker-core-paths.mjs Deduplicates the worker-core test list.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vincentkoc vincentkoc self-assigned this Sep 29, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 3:06 PM ET / 19:06 UTC (Revision 2).

ClawSweeper review

What this changes

Removes a duplicate PDF resource test path from the database-worker test inventory so CI can plan test shards.

Regression provenance

Possible regression — suspected (failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 2 items remain

Current main contains the same repair in commit b4df789. This PR has no apparent unique change, but the supplied record does not establish the merged fixing PR required for automatic implemented-on-main PR closure; a maintainer should retire the redundant branch.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused deletion and reported planner before/after run support the fix; the remaining question is disposition of a branch duplicated by main.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body reports running the production changed-node shard planner against unrelated changed paths: it failed before the deletion and produced 112–115 shards afterward. The changed inventory feeds that planner directly; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body reports running the production changed-node shard planner against unrelated changed paths: it failed before the deletion and produced 112–115 shards afterward. The changed inventory feeds that planner directly; no stored-data contract changes.
Evidence reviewed 7 items Introduced patch: The pinned PR delta removes only the second PDF resource test registration.
Current main source: Current main retains one PDF resource test registration; the merge-base inventory had two.
Planner failure mechanism: The planner appends the database-worker inventory to the storage-state group, and timing generation rejects repeated file paths.
Findings None None.
Security None None.

How this fits together

OpenClaw's CI planner takes changed files and a shared inventory of tests that need a database worker. It groups those tests into shards, then generates timing identities that require each test path to appear once.

flowchart LR
  A[Changed files] --> B[CI shard planner]
  C[Database worker test inventory] --> B
  B --> D[Split timing uniqueness check]
  D --> E[Test shard plan]
Loading

Decision needed

Question Recommendation
Should this PR be closed manually now that current main contains the same one-line repair? Close the redundant branch: Credit the contribution and retain the independently landed main fix.

Why: The code outcome is clear, but the automatic PR closure rule requires a GitHub-verified merged fixing PR that the supplied record does not establish.

Before merge

  • Complete next step (P2) - Confirm that the current-main repair covers this branch and close the redundant PR if it does.
  • 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:

Keep the single inventory registration and duplicate guard on main, then retire this branch once a maintainer confirms it has no distinct remaining work.

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

No current-main failure remains to reproduce: its inventory has one PDF resource path. The pinned base has two, and the planner's uniqueness check establishes the reported failure path.

Is this the best way to solve the issue?

Yes. Removing the extra inventory entry preserves database-worker routing and the planner's duplicate guard; current main has already made that repair.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b4df789c4a95; fix evidence: commit b4df789c4a95, main fix timestamp 2026-09-29T18:55:21Z.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The duplicate blocked CI shard planning, but the exact repair is already on current main.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body reports running the production changed-node shard planner against unrelated changed paths: it failed before the deletion and produced 112–115 shards afterward. The changed inventory feeds that planner directly; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports running the production changed-node shard planner against unrelated changed paths: it failed before the deletion and produced 112–115 shards afterward. The changed inventory feeds that planner directly; no stored-data contract changes.

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-29T18:50:56.355Z sha d629859 :: needs maintainer review before merge. :: none

@vincentkoc

vincentkoc commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

@zachisfine, thank you for identifying the duplicate and supplying the focused fix.

Peter has now landed the same inventory deletion on main:
b4df789

I verified that main retains exactly one PDF resources entry and fully covers this PR's change. Closing this PR as already implemented, rather than merging a redundant change.

My earlier request to include the cron repair is withdrawn. That repair remains separately published, not landed, and is not your responsibility or a condition of this closeout:
4e27114

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

Labels

P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

3 participants