Skip to content

fix: detect machine update reverts during deploy#4878

Draft
rianmcguirefly wants to merge 1 commit intomasterfrom
fix-deploy-revert-detection
Draft

fix: detect machine update reverts during deploy#4878
rianmcguirefly wants to merge 1 commit intomasterfrom
fix-deploy-revert-detection

Conversation

@rianmcguirefly
Copy link
Copy Markdown
Member

Change Summary

What and Why:

Previously, when Flaps gave up on an update and reverted a machine to its previous version, flyctl saw the machine in the "started" state (the old version still running) and treated the deploy as successful. Health checks would pass against the old image, so users had no indication their new code wasn't deployed.

Affects both flyctl deploy (in-place updates) and standalone flyctl machine update.

How:

Pass the post-update InstanceID to flaps Wait via WithWaitVersion so Flaps signals success only when that specific version reaches the desired state. A reverted update will now correctly time out instead of silently succeeding.

Related to:


Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

Previously, when Flaps gave up on an update and reverted a machine to
its previous version, flyctl saw the machine in the "started" state
(the old version still running) and treated the deploy as successful.
Health checks would pass against the old image, so users had no
indication their new code wasn't deployed.

Pass the post-update InstanceID to flaps Wait via WithWaitVersion so
Flaps signals success only when that specific version reaches the
desired state. A reverted update will now correctly time out instead
of silently succeeding.

Affects both `flyctl deploy` (in-place updates) and standalone
`flyctl machine update`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant