Skip to content

fix(deploy): the cutover keeps costRoll.enabled, so the cost-roll CronJob survives (#1334) - #1335

Merged
athvin merged 1 commit into
mainfrom
fix/667-cutover-cost-roll
Nov 28, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/667-cutover-cost-roll

Conversation

@athvin

@athvin athvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Closes #1334

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

deploy-cutover.py sets costRoll.enabled=true when COST_ROLL is set, like the colour deploy; a test pins it.

Fix-forward from #1332: the dev deploy created er-cost-roll (release 440) and the cutover's full---set upgrade deleted it 44s later (release 441), because it is not --reuse-values.

Proof

python3 scripts/ci/test_ci_cutover.py: 12 passed, including the new test_the_cutover_keeps_what_the_colour_deploy_enabled (fails without the change). Diagnosis: helm -n ci history er-platform shows 440 (colour deploy, 00:38:26) and 441 (cutover, 00:39:10); kubectl -n ci get cronjob er-cost-roll NotFound after a green deploy.

Risk & rollback

One conditional --set; prod does not set COST_ROLL. git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:24d16c2e-fec6-49d8-9797-060338df4848 on brians-MacBook-Pro · 2026-11-28T05:25:27Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: — 70d909b, rust 46091792739 + frontend 46091792666 success
  • images built, or correctly never ran because nothing that goes into
    an image changed: — ran (46091792718) — the scripts-only change built nothing new
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: — run 46091818217 success; the fix took effect on the next image deploy (46093433872), after whose cutover kubectl -n ci get cronjob er-cost-roll was still present
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: — infra, devcontainer success on 70d909b
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: — Deploy cutover drops costRoll.enabled, deleting the cost-roll CronJob #1334 CLOSED by fix(deploy): the cutover keeps costRoll.enabled, so the cost-roll CronJob survives (#1334) #1335 via automation
  • follow-ups are open for everything deferred here — numbers: — cost-roll: no HTTP client for the AWS SDKs; staleness read the month's end #1339 (the CronJob's first live run then exposed a missing AWS HTTP client)
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: — the cutover's helm upgrade sets its whole value list; any value the colour deploy sets must be repeated there (comment added in deploy-cutover.py)

Specific to this change

  • after the deploy, kubectl -n ci get cronjob er-cost-roll exists — present after deploy 46093433872
Context — plan, discoveries, measurements, files

Plan

Discoveries

  • Any value the colour deploy sets must be repeated in the cutover; the cutover's comment now says so.

Measurements

Files

🤖 Generated with Claude Code

…nJob survives (#1334)

The cutover's helm upgrade sets its whole value list rather than reusing
values, so costRoll.enabled — set by the colour deploy from COST_ROLL —
reverted to the chart default and the CronJob created 44s earlier was
deleted (release 440 → 441). It now carries the value when COST_ROLL is
set, with a test that a cutover keeps what the colour deploy enabled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
marketing-preview — 39795f3e Deployed Nov 28, 2026 by athvin via remove closed PR previews #113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy cutover drops costRoll.enabled, deleting the cost-roll CronJob

2 participants