Skip to content

fix(deploy): determine target machine state from pre-deploy state#4984

Open
rianmcguirefly wants to merge 1 commit into
masterfrom
rm/update-retry-state
Open

fix(deploy): determine target machine state from pre-deploy state#4984
rianmcguirefly wants to merge 1 commit into
masterfrom
rm/update-retry-state

Conversation

@rianmcguirefly

@rianmcguirefly rianmcguirefly commented Jul 8, 2026

Copy link
Copy Markdown
Member

Change Summary

What and Why:

On a deploy retry, updated machines could be left stopped even though the machines were started prior to deploy.

Currently when retrying, updateMachineConfig rebuilds the launch input from the current state of the machine, which could be transient from the previous deploy attempt (replacing/stopped/created), and lead to it inferring the wrong target state for the updated machine.

How:

Make skipLaunch the single source of truth for whether a machine should run after the deploy, and always feed it a stable input: the machine's pre-deploy state.


Documentation

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

@rianmcguirefly rianmcguirefly force-pushed the rm/update-retry-state branch from 3ffad7c to 1d2c401 Compare July 10, 2026 04:24
@rianmcguirefly rianmcguirefly changed the title fix(deploy): derive skip_launch from plan intent, not transient re-read fix(deploy): base launch decision on pre-deploy state Jul 10, 2026
On a deploy retry, updateMachineConfig rebuilt the launch input from a
re-fetched oldMachine whose live State could be mid-churn
(replacing/stopped/created). skipLaunch() then inferred skip_launch=true
from that transient state, so updated machine was left stopped even though
the machine was started prior to deploy.

Make skipLaunch the single source of truth for whether a machine should run
after the deploy, and always feed it a stable input: the machine's immutable
pre-deploy state.
@rianmcguirefly rianmcguirefly force-pushed the rm/update-retry-state branch from 1d2c401 to 24895f1 Compare July 10, 2026 05:21
@rianmcguirefly rianmcguirefly marked this pull request as ready for review July 10, 2026 08:37
@rianmcguirefly rianmcguirefly changed the title fix(deploy): base launch decision on pre-deploy state fix(deploy): determine target machine state from pre-deploy state Jul 10, 2026
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