Skip to content

Avoid deploy timeouts when proxy autostop overlaps a Machine update - #5128

Merged
tomr-a5 merged 2 commits into
masterfrom
tom/accept-preserved-stopped-update
Aug 26, 2026
Merged

Avoid deploy timeouts when proxy autostop overlaps a Machine update#5128
tomr-a5 merged 2 commits into
masterfrom
tom/accept-preserved-stopped-update

Conversation

@tomr-a5

@tomr-a5 tomr-a5 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Change Summary

What and Why:

Proxy autostop can finish during a canary or rolling Machine update. Flyd correctly leaves the replacement stopped, but flyctl keeps waiting for it to start until the deploy times out.

How:

Wait for both outcomes and accept stopped only when a fresh Machine read matches the exact updated instance and its newest lifecycle event confirms flyd preserved it. Ambiguous, scheduled, unsupported, and failed cases keep the existing behavior.

Tests cover the accepted stopped outcome and the fallback cases. The exact candidate also passed a development canary.

Related to:

Fixes superfly/machines-meta#8.


Documentation

  • n/a

@tomr-a5 tomr-a5 self-assigned this Aug 26, 2026
@tomr-a5 tomr-a5 added the bug Something isn't working label Aug 26, 2026
@tomr-a5
tomr-a5 force-pushed the tom/accept-preserved-stopped-update branch from 009d35e to 1deed7b Compare August 26, 2026 00:25
@tomr-a5
tomr-a5 force-pushed the tom/accept-preserved-stopped-update branch from 5021916 to c0f810a Compare August 26, 2026 16:08
@tomr-a5
tomr-a5 requested a lite review from Copilot August 26, 2026 16:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@tomr-a5
tomr-a5 force-pushed the tom/accept-preserved-stopped-update branch from c0f810a to 0e5fe2a Compare August 26, 2026 16:13
@tomr-a5
tomr-a5 marked this pull request as ready for review August 26, 2026 16:15
@tomr-a5
tomr-a5 merged commit 1f90676 into master Aug 26, 2026
47 of 51 checks passed
@tomr-a5
tomr-a5 deleted the tom/accept-preserved-stopped-update branch August 26, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants