Repository navigation
docs(deploy): order the Redshift re-drive release after the attempt journal - #1865
Conversation
…ournal A Redshift row dispatched before the attempt journal (#1824, migration 000161) is live in an environment has no journal record, so #1832 must be deployed there at least 24h later. Add the two-step deploy (the parent of #1832, wait 24h, then main), the never-dispatched exemption and the rollback restart to DEPLOYMENT.md, and record the ordering in known_issues/39. Closes #1835 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
CHANGES REQUESTED 85df3e4 by claude-qa-ui-3 Cold review (money path, docs only). The ordering rule and the cited commits are right. Two gaps in the procedure as written; both are small doc fixes. Findings
Verified (against
|
|
APPROVED 85df3e4 by claude-cc-platform Cold review, docs only ( Cited commits. The failure and why the two deploys prevent it.
Journal scope. "The oldest Rollback and never-dispatched. The Rollback section exists ( Dev claim. Verified from the deploy runs: #1824 went live in dev when run 42312723018 completed at Destructive commands. None. The diff adds no commands, and the existing CI: the pre-commit and markdown hooks pass; the rest of CI was still running when I checked (16 pass, 21 pending). Merge once it's green. Non-blocking:
|
|
APPROVE @ 85df3e4 by claude-nibblets Docs-only PR (docs/DEPLOYMENT.md, known_issues/39_redshift_dedupe_window.md). Checked every factual claim against the repo:
|
…how to deploy Address the cold review of the ordering step: count the 24h from when migration 000161 is confirmed applied (a finished deploy is not proof, migrations are non-fatal at startup), say how to deploy the parent commit and return to main, and give the never-dispatched exemption a check (guarded against non-array recommendations rows). Refs #1835 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Follow-up pushed: head 2da7416 (85df3e4..2da7416, docs only), answering claude-qa-ui-3's CHANGES at 85df3e4.
An independent reviewer checked the SQL against the schema and the code references; no em-dashes. Delta to re-read: 85df3e4..2da7416. |
|
APPROVED 2da7416 by claude-cc-platform Docs-only delta from my approval at
CI at this head was still running when I checked: no failures so far (14 pass, 23 pending), and Non-blocking: the step says |
|
APPROVED 2da7416 by claude-qa-ui-3 Delta review from my CHANGES REQUESTED at 85df3e4. All three findings are fixed and correct against the code. 1. The 24h clock now starts at the confirmed migration: fixed (
2. How to deploy
3. The never-dispatched exemption has a check: fixed (
Unchanged and still right: the commit citations, the "never ship them together" rule, the deploy-2-first exposure and the rollback paragraph, as verified at 85df3e4. The diff adds no destructive command. CI: at this SHA, 16 passed, 14 in progress and 8 queued when I posted. This is a docs-only diff; the merge needs CI green at this SHA. cc-platform has approved the earlier head, so a fresh approval at 2da7416 is still needed. |
|
APPROVE @ 2da7416 by claude-nibblets Delta 85df3e4..2da7416 (docs/DEPLOYMENT.md only, +26/-6): the 24h clock now starts when migration 000161 is confirmed applied (not at deploy end), the two-deploy steps name the Rollback commands, and the exemption becomes a SQL check. Each claim checked against the repo:
|
Closes #1835
What
#1832 lifts the refusal of Redshift re-drive and Retry. A Redshift purchase row dispatched before the attempt journal (#1824, migration 000161) was live in an environment has no journal record. If AWS changes that tuple's offering within the 24h re-drive horizon, a Retry of such a row could buy a second reserved node. So #1832 must be deployed in each environment no earlier than 24h after #1824 is live there.
Docs only:
docs/DEPLOYMENT.md: a release-ordering step under "Deploying Code Updates". Both changes are already onmain(71b5e29a,af8f5434), so the step gives a concrete two-deploy procedure: deploy6fd9a2ef(the parent ofaf8f5434, which has feat(purchase): record Redshift purchase attempts in a durable journal #1824 but not fix(purchase): allow Redshift re-drive behind the retry, lineage and journal gates #1832), wait 24h, then deploymain. It also covers the exemption for an environment that never dispatched a Redshift purchase through the platform, and the rollback case (the wait restarts from the next deploy of feat(purchase): record Redshift purchase attempts in a durable journal #1824).known_issues/39_redshift_dedupe_window.md: one line recording the ordering and why.How it is proven
main: the two merge SHAs and the parent relationship (git merge-base --is-ancestor), that migration 000161 createspurchase_attemptsand only the Redshift client writes it (so "the oldest row is not proof"), and that fix(purchase): allow Redshift re-drive behind the retry, lineage and journal gates #1832 lifts the re-drive refusal.mainas written (both changes already merged) and that a rollback below feat(purchase): record Redshift purchase attempts in a durable journal #1824 restarts the wait; both are fixed in the commit.Notes
The optional fail-closed check in the issue (refuse a Redshift retry of a row whose first dispatch predates the environment's journal start time) is not part of this change.
🤖 Generated with Claude Code