Skip to content

docs(deploy): record the rollback drill and what the staging runs settled - #210

Merged
aRustyDev merged 1 commit into
mainfrom
docs/deploy-drill-run
Nov 16, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
docs/deploy-drill-run

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What this does

The rollback drill passed on staging on 2026-11-16, so the docs stop saying that no deploy and no drill have run. This records the drill and what the staging runs settled, and it closes #49.

Fixes #49

The acceptance criteria of #49, and the run that met each

Criterion Evidence
deploy.yml exists and runs the steps in order Every real staging run: plan, build, fetch and verify, classify, expand migration, deploy, smoke, controls. "On push to main" was superseded on purpose by #185: staging deploys from the rc/* release candidate and production from a v* tag, so no push to main deploys.
On staging, a smoke that fails on purpose ends with the previous version active and the job red Run 43811076183 (2026-11-16, dispatched from a throwaway branch rc/manual-drill at the live commit 0c2c0f3). Live before: 5cd7ec87. The deploy made 4b508caf, every real check passed, SMOKE_FORCE_FAIL=1 failed the smoke, wrangler rollback put 5cd7ec87 back at 100 % (rollback of 0c2c0f3…: the smoke failed in deployments list), the previous version answered twice, and the deploy job exited 1.
The smoke fails when pointed at a Worker that still serves the previous version id The control "the smoke must refuse a version nobody deployed" runs in every deploy and passed in each real one (for instance run 43796469831); test-smoke-deploy.sh and test-deploy-worker.sh hold the must-fail case.
A release that adds a DO migration stops for approval and does not roll back automatically The first deploy (run 43676097831) deferred to deploy-do; runs 43796746005 and 43803593395 stopped at staging-do-lifecycle with nothing deployed until the owner approved them, then deployed with automatic rollback: false.
After a deploy, an asset URL from the previous release still returns its JavaScript Run 43796469831 kept 138 files only the earlier release had (merge-assets: new=1366 retained=138 total=1504); run 43803593395 kept 29; the control that asks for a script of the earlier release passed in both.
cicd.md describes the pipeline, and ADR-0110 and Q-0110.1 match it #165 and #167, and this change.

What the drill could not show

The drill redeployed the same commit, so the script's own check after the rollback, which compares tags, could not tell the two versions apart. What shows the rollback is the version id in wrangler's output and in deployments list. A drill from a different commit would exercise that check too; deploy.md says so.

A gap the runs found, written down and not fixed here

release-plz force-updates the release candidate's branch, so the live commit is usually not in the next candidate's history, and the classifier, which fails closed, sends that deploy to the manual gate although nothing in it touches a Durable Object (runs 43796746005, "not an ancestor", and 43803593395, "not a commit in this checkout"). A fix would compare the two commits' migration tags and files directly, which needs neither to descend from the other, and gate only when the live commit cannot be fetched. It is a separate change, and the same reason means a drill has to be dispatched from a branch at or above the live commit.

Changed

docs/src/architecture/deploy.md (the drill, what the runs settled, the known gap), docs/src/architecture/cicd.md and infra.md (no longer say nothing has run), docs/src/testing/status.md (G-36), and ADR-0110, which gets a new update that supersedes round 30's "neither has been run" (the round-30 text is left as it was).

mdbook build has no ERROR line, and the anchors the new links use exist in the built page. Nothing else changed: no code, no workflow.

Production has not been deployed through the pipeline; the first release target's drill, which ADR-0111 waits on, is not run.

🤖 Generated with Claude Code

…tled

The deploy has run on staging since 2026-11-15, and the rollback drill passed on 2026-11-16 (run 43811076183): an injected smoke failure put staging back on the previous version and ended the run red. The docs still said no environment had had a deploy and no drill had been run.

- deploy.md links the drill, says what it showed and what it could not (the same commit was redeployed, so the version id showed the rollback and the script's tag check could not), and records the two further things the runs settled: the previous release's web files kept over two real releases (retained=138 and retained=29) and the manual gate stopping runs until they were approved.
- cicd.md, infra.md, G-36 and ADR-0110 (a new update, which supersedes round 30's "neither has been run") no longer say that nothing has run; they say production has not been deployed.
- The gap the runs found is written down in each: release-plz force-updates the release candidate's branch, so the live commit is usually not in the next candidate's history, and the classifier, which fails closed, sends such a deploy to the manual gate with no Durable Object change in it. It is not fixed here.

Refs: #49
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev
aRustyDev merged commit 28212a1 into main Nov 16, 2026
13 checks passed
@aRustyDev
aRustyDev deleted the docs/deploy-drill-run branch November 16, 2026 05:52
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.

chore(cd): deploy pipeline per ADR-0110 round 29 (expand, deploy 100 %, smoke, auto-rollback)

1 participant