Skip to content

Improve machine wait and update reliability#4765

Merged
dangra merged 12 commits intomasterfrom
preflight-fixes
Mar 7, 2026
Merged

Improve machine wait and update reliability#4765
dangra merged 12 commits intomasterfrom
preflight-fixes

Conversation

@dangra
Copy link
Member

@dangra dangra commented Mar 5, 2026

Change Summary

What and Why:

  • Add fly machine wait so operators can wait for a specific state or for a machine to settle.
  • Make machine update fail clearly when an update settles in failed state.
  • Improve deploy preflight coverage by using machine wait in detach deploy tests.

How:

  • Add machine wait command with --state (default settled) and --wait-timeout.
  • Add resilient wait retries for transient API/network errors and machine replacement transitions.
  • Return an explicit error in machine update when settled state is failed.
  • Update preflight tests and lease handling around machine destruction.

Related to:

  • Better machine lifecycle ergonomics and reliability in CLI workflows.

Documentation

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

dangra added 6 commits March 6, 2026 03:32
Resolve primary and secondary regions once per process instead of re-querying per test env. Keep fallback failures as warnings and move successful auto-selection to debug logging to reduce noise.
@dangra dangra force-pushed the preflight-fixes branch from 4c8f735 to a7d4657 Compare March 6, 2026 06:37
@dangra dangra marked this pull request as ready for review March 6, 2026 07:42
@dangra dangra changed the title Preflight fixes Improve machine wait and update reliability Mar 6, 2026
@dangra dangra merged commit 975af7b into master Mar 7, 2026
47 of 50 checks passed
@dangra dangra deleted the preflight-fixes branch March 7, 2026 02:37
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