Skip to content

fix(ops): wait through a native migration restart - #1363

Merged
frahlg merged 1 commit into
masterfrom
fix/migration-restart-reset
Sep 24, 2026
Merged

frahlg merged 1 commit into
masterfrom
fix/migration-restart-reset

Conversation

@frahlg

@frahlg frahlg commented Sep 23, 2026

Copy link
Copy Markdown
Member

Summary

  • ftwctl migrate-native treated the API socket closing during Core's restart as a failed install and rolled the new process back within a second.
  • On homelab-rpi, v0.132.0-beta.1 had already booted (migrations complete, HTTP listening) when that happened. The old v3.8.0-beta.1 service was restored.
  • The readiness wait now treats ConnectionResetError and timeouts as "not ready yet", and API.open turns a raw socket error into the same handled error. A regression test keeps a booting native Core in place across one restart disconnect.

Test

python3 scripts/test_ftwctl.py — 10 tests, ok.

A Core restart closes the API socket. ftwctl treated that reset as a
failed install and rolled the new process back within a second, even
when the new version had already booted. The readiness wait now treats
the disconnect as not ready yet.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-23T14:55:05.441785Z ca876ec PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit dfb54ff into master Sep 24, 2026
13 checks passed
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