Repository navigation
test(ci): dedupe pdf-tool.resources in database worker core paths - #161335
zachisfine wants to merge 1 commit into
Conversation
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.
|
🦞👀 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. |
There was a problem hiding this comment.
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.
|
Codex review: blocked before merge. Reviewed September 29, 2026, 3:06 PM ET / 19:06 UTC (Revision 2). ClawSweeper reviewWhat this changesRemoves a duplicate PDF resource test path from the database-worker test inventory so CI can plan test shards. Regression provenancePossible 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 Review scores
Verification
How this fits togetherOpenClaw'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]
Decision needed
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
Agent review detailsSecurityNone. PR surfaceTests -1. Total -1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes: No label changes. Label 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)
|
|
@zachisfine, thank you for identifying the duplicate and supplying the focused fix. Peter has now landed the same inventory deletion on main: 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: |
What Problem This Solves
Every PR whose diff touches any non-README path fails
preflightwith:Since
670e3fb4ea2(#161270),databaseWorkerCoreTestFilesintest/vitest/vitest.database-worker-core-paths.mjslistssrc/agents/tools/pdf-tool.resources.test.tstwice: once from16b17b22ebcand again from the block #161270 added. The changed-node shard planner enforces that a split timing generation never repeats files (createCompactSplitTimingGenerationinscripts/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:The crash reproduces for arbitrary unrelated single-file diffs (e.g.
src/config/sessions/disk-budget.ts,src/commands/status.scan-result.ts), whileREADME.mdpasses — 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).