Skip to content

fix(update): show unpacking as its own native step - #1377

Merged
frahlg merged 1 commit into
masterfrom
fix/native-update-unpack-phase
Sep 24, 2026
Merged

frahlg merged 1 commit into
masterfrom
fix/native-update-unpack-phase

Conversation

@frahlg

@frahlg frahlg commented Sep 24, 2026

Copy link
Copy Markdown
Member

Summary

Found while testing the whole chain on the home box (homelab-rpi, v0.133.0-beta.1 → v0.134.0-beta.1 with the new ftw from #1375).

  • Download line misreported speed. It said ✓ 2/4 Downloading verified Core release 24.0 MB in 12s (2.0 MB/s), but the transfer ran at about 14 MB/s. The rest was verifying and unpacking the release, with an fsync per file on the SD card, all under the download status.
    • Fix: nativeupdate.Downloader gets a Downloaded callback once the archive is on disk. Core ends the download step there and starts step 2, "Unpacking and checking the release".
  • The live line was cut at 80 columns (… ETA 53s 1…). The bar now leaves the numbers about 60 columns.

Tests

  • internal/selfupdate: the recorded phases are download (with bytes), then unpack. Unpack starts no earlier than download ends.
  • internal/ftwcli: at 80 columns the live line fits with no cut and ends with the elapsed time.
  • make test and go vet ./... pass.

The whole chain follows after merge: beta, ftw update on the box (the first run of the new native path on hardware), ftw rollback, ftw update.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MuerPFZFG88kgu8sWVHeq7

On the home box, v0.134.0-beta.1 reported "Downloading verified Core
release 24.0 MB in 12s (2.0 MB/s)". The transfer ran at about 14 MB/s;
the rest was verifying and unpacking the release with a sync per file on
the SD card, all under the download status. The downloader now reports
when the archive is on disk, and step 2 "Unpacking and checking the
release" starts there.

ftw's progress line was cut at 80 columns. The bar now leaves the
numbers about 60 columns.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MuerPFZFG88kgu8sWVHeq7
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 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-24T08:02:56.644431Z 527bcb5 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 1ea58de into master Sep 24, 2026
15 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