Repository navigation
Conversation
The desired dry run showed the stopped run's statement against the table's current shape with no resumes; mark it as the imperative plan does.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Review 1/2 (correctness) of 6fa6806: 0 blocking, 4 non-blocking. Inspected the whole change at What the change does: a desired-state Invariants ( Non-blocking
Test case: a desired-state dry run over an offline-stopped run (not run here)Beside
Verified
This review was generated by Claude Code (claude-sonnet-5-5). |
|
🤖 Review 2/2 (OSS adoption and integration) of 6fa6806: 0 blocking, 4 non-blocking. Read the change from two seats: a host that renders Non-blocking
Overlap with pg-sprite#691#691 (dry-run planning of an online partition create) is stacked on
What reads well for adopters
This review was generated by Claude Code (claude-sonnet-5-5). |
aparajon
left a comment
There was a problem hiding this comment.
🤖 Stamping with comments: 0 blocking, 8 non-blocking (see the review comments above).
This stamp was left by Claude Code (claude-sonnet-5-5).
|
🤖 I reviewed the complete eight-file diff at P1 · The preview can promise an offline resume that apply refuses. A stopped offline run can match the first desired statement on a server that supports logical decoding. The annotation passes that offline checkpoint to GitHub reported all 18 checks successful. I did not run local tests. Direct Builderbot lookup failed to resolve its host. GitHub showed no current-head Builderbot check or review, and I did not independently enumerate unresolved inline threads. |
JashLal
left a comment
There was a problem hiding this comment.
🤖 Approved by Codex on Jash’s behalf after reviewing the current head, as instructed. See my substantive review comment for findings and validation limits; approval does not resolve those findings.
A desired-state dry run now marks its first statement with
resumeswhen the run would resume a stopped copy-and-swap run, as the imperative dry run already does.Why
Copy-and-swap changes a table by building a new copy and swapping it in; a stopped run leaves its progress behind, and the next run on that table resumes it. With a desired schema file, the real run already resumes that work, but its dry run showed the statement as if it would start fresh, with no sign that a resume was coming. A reviewer reading the plan could not tell the run would pick up from where it stopped. Now the plan says so, and the guide's caveat about it is gone.
What
previewDesiredcalls a newmarkDesiredResumeafter the stopped-run check admits the plan. It asksmigrate.ResumesStoppedRunwhether statement 1 is the stopped run's, and if so marks it.plan.ResumeStoppedRunnow marks the first statement of a report of any length (before, it allowed only one statement). The whole plan becomesexecuteonly if every statement executes, so a refused later statement keeps it refused. The imperative path is unchanged.resumesstays out of the fingerprint.docs/schemabot-integration.mddrops the caveat;docs/plan-report.md'sresumesrow covers desired-state plans.orders.qtyincatching_upand at thecutoversave, and checks the desired dry run reports the matchingresumes.phase. Unit tests cover the multi-statement marking and the text output.A run stopped after its swap committed is not covered here because it cannot happen in this path: the live table already has the desired shape, so the desired plan does not contain the stopped statement and the run is refused with a pointer to
migrate --alter.Before / after
A live retype of
orders.qtytobigintstops at its cutover save. The same desired file (withqty bigint) is then dry-run.