Repository navigation
fix: updates fail with one moved cron partition - #185097
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: blocked before merge. What this changesThe pre-v34 cron migration automatically binds a sole retained partition when its original path no longer matches. Example: A pre-v34 database moves from /srv/old to /srv/new and retains only /srv/old/cron/jobs.json.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: the simplified migration addresses a remaining legacy-state case without introducing a definite code defect, and the maintainer explicitly limits it to review preparation. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherUpdate rehearsal and database admission invoke the shared cron identity migration, which converts retained partition inventory into a durable default binding consumed by cron selection. flowchart TD
A[Published updater] --> B[Private state snapshot]
B --> C[State schema migration]
D[Original state admission] --> C
C --> E[Retained cron inventory]
E --> F[Durable default binding]
F --> G[Cron selection]
Technical reviewBest possible solution: Keep the sole-partition fallback in the existing migration owner while preserving bindings, explicit selectors, and unresolved multiple-partition behavior. Do we have a high-confidence way to reproduce the issue? Current-main source leaves an unmatched sole legacy partition unresolved, and the changed migration and process tests directly exercise that path; this read-only review ran no reproduction. Is this the best way to solve the issue? The fallback is the smallest complete fix within the existing migration owner, and every remaining test change covers migration preservation or a distinct snapshot/admission boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8b1efb47c130. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +16. Total +18 across 5 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed October 31, 2026, 5:02 AM ET / 09:02 UTC (Revision 6). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review Please review current head 88 focused tests pass, including selector-less two-partition published rehearsal coverage. Core/test typechecks, targeted lint, and formatting pass. Scope remains ready-for-review preparation only; do not merge. |
|
🦞👀 Re-review progress:
|
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review Please review simplified head Effective diff is 5 files (+36/−18), with a +4/−2 runtime change. 76 focused tests and core/test typecheck, targeted lint, and formatting pass. Scope is ready-for-review preparation only; do not merge. |
|
🦞👀 Re-review progress:
|
* fix: unblock updates with one cron partition Co-authored-by: RomneyDa <[email protected]> * test: cover historical cron binding upgrade Co-authored-by: RomneyDa <[email protected]> * test: align cron upgrade expectations Co-authored-by: RomneyDa <[email protected]> * test(update): prove moved cron upgrade from stable Co-authored-by: RomneyDa <[email protected]> * test(update): repair moved cron upgrade proof * test(update): compare stable cron definition across runs * fix: choose moved cron partitions during upgrade Co-authored-by: RomneyDa <[email protected]> * fix: keep ambiguous cron upgrades non-fatal Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
An update rehearsal could leave a pre-v34 database without a cron default when its one retained partition still used the old state-directory path.
Behavior
Evidence
Scope
Ready-for-review preparation only. Do not merge or backport.