fix: show progress message in ujust update bootc fallback - #951
Conversation
Co-authored-by: castrojo <1264109+castrojo@users.noreply.github.com>
Co-authored-by: castrojo <1264109+castrojo@users.noreply.github.com>
ujust update bootc fallback
castrojo
left a comment
There was a problem hiding this comment.
LGTM. Minimal, correct fix for #897's non-bctl path:
echo "Starting OS image update (this may take a while as layers download)..."is placed immediately beforesudo bootc upgradein the fallback branch, after thebctlearly-exec — so bctl users (who already get a progress UI) are unaffected.- The bats assertion
[[ "${output}" == *"Starting OS image update"* ]]is added to the existing no-layered-packages test, which is the exact path that exercises the fallback. Correct scope, no new surface.
CI: the validate failure is stale — it ran when the title was [WIP] Fix ujust update not showing progression and failed the Conventional Commits title check. The title has since been fixed to fix: show progress message in ujust update bootc fallback; a re-run should pass. All other checks (test, builds, E2E GNOME 50) are green.
Note: the follow-up comment on #897 about a spurious "staged — reboot when ready" notification is a separate regression and correctly out of scope here.
hanthor
left a comment
There was a problem hiding this comment.
Approving — one echo, right place, correct branch.
The placement is specifically after the exec bctl update hand-off, so it only fires on the path that actually lacks a progress UI. That's the correct branch: bctl users already get the richer output and would otherwise see a redundant line before being exec'd away.
Two small notes, neither blocking:
- The message lands before
sudo bootc upgrade, so on a machine without a cached sudo timestamp the user sees "Starting OS image update…" and then a password prompt. That ordering is still an improvement over silence, and it becomes moot if #932 lands a NOPASSWD rule forbootc upgrade. tests/test_update_just.batscurrently has 4 pre-existing failures onmain(independently observed and called out in #942). Your added assertion isn't among them, but if CI on this PR shows that file red, that's the cause rather than this change.
Worth noting the fix doesn't make bootc upgrade itself chattier — it just closes the silent window before bootc starts emitting its own progress, which is the window #897 actually described.
bluefin-common PR
What does this change?
ujust updateno longer appears hung in the non-bctlpath: it now prints a clear progress message beforebootc upgradestarts layer download/apply work.Why?
Users reported that
ujust updatecould sit silently during image fetch, creating a false “stuck” signal despite normal update progress.bctl)sudo bootc upgradeinsystem_files/shared/usr/share/ublue-os/just/update.just.tests/test_update_just.batsto assert the fallback path emits the new progress line.PR pipeline
Checklist
fix:,feat:,docs:,ci:,refactor:, etc.)just checkpassespre-commit run --all-filespassesdocs/skills/skill-improvement.md)AGENTS.md/docs/SKILL.md/docs/skills/links remain validgh run list --repo projectbluefin/common --limit 5AI attribution
If this PR includes AI-authored commits, include both trailers:
Original prompt