Skip to content

fix(migrate): treat exit 75 as waiting, not failed - #29

Merged
lbssousa merged 1 commit into
mainfrom
migrate-exit-75
Nov 27, 2026
Merged

lbssousa merged 1 commit into
mainfrom
migrate-exit-75

Conversation

@lbssousa

Copy link
Copy Markdown
Owner

Why

Since omacom/omarchy#19754, a migration exits 75 (EX_TEMPFAIL) to stay pending until a package lands or a graphical/audio session exists; omarchy-migrate keeps it pending and the update goes on. omarchy-mu-migrate counted 75 as a failure, so users outside wheel got "A migration failed for your account" at every login. Five migrations added upstream on 2026-11-25 use it (1795441383, 1795600968, 1795602376, 1795604021, 1795613633).

What

  • omarchy-mu-migrate: exit 75 from a user or mixed migration leaves it pending, holds back the ones after it (as upstream), logs deferred, and exits 4. The migrations notice stays.
  • omarchy-mu-update: says the migration will run again later on exit 4.
  • share/migrations-overrides.tsv: 1795613633 (Dell XPS 16 N1x speaker tuning) is mixed, not system. It installs a package, then writes the tuning to the user's own ~/.config/pipewire and user units. As system it was only marked done for non-admins.

The other new upstream migrations were checked against the classifier and are classified correctly.

Tests

  • tests/sh/migrate.test.sh: three new cases (user deferral then completion, mixed deferral after the admin's run then completion, the shipped override). 14 pass, 0 fail.
  • shellcheck -x clean on the changed files.
  • The rest of tests/sh fails the same 10 files on main and on this branch, run on NixOS in a bwrap with /bin/bash, so that comes from the environment.

🤖 Generated with Claude Code

Since omacom/omarchy#19754 a migration exits 75 to stay pending until a
package lands or a session exists. omarchy-mu-migrate counted it as a
failure, so non-admins were told a migration failed at every login. It now
keeps the migration pending, holds back the rest as upstream does, logs it
as deferred and exits 4.

Also classify 1795613633 (Dell XPS 16 N1x speaker tuning) as mixed: the
tuning lives in each user's ~/.config/pipewire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lbssousa
lbssousa merged commit 6abc7fa into main Nov 27, 2026
1 check passed
@lbssousa lbssousa mentioned this pull request Nov 27, 2026
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