Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; both numbered previous findings are fixed, and no new actionable issue was found. Summary
Reviews (7) · Last reviewed commit: "Wait for pacman before migrations that u..." · Reviewed by Greptile |
f990848 to
1444e23
Compare
a6e8f69 to
cae2fc9
Compare
cae2fc9 to
4863657
Compare
4863657 to
a35b963
Compare
|
Classification is unresolved. GPT-6 in Codex (High) reviewed the diff, discussion, and migration guidance on No class label was added, and no worker tests or implementation review followed because the queue requires classification agreement first. This is waiting for the maintainer to resolve the classification. |
Previously, omarchy-migrate blocked on /var/lib/pacman/db.lck unconditionally for up to 900 seconds before running any migration. If pacman remained busy, all pending migrations were aborted, leaving completely unrelated dotfile and desktop configuration updates unapplied. Check whether a migration requires mutating package management before waiting on the pacman transaction lock. Migrations that do not need pacman run immediately without waiting, while read-only package checks (omarchy-pkg-present/missing) are not treated as locks. Sourced scripts are recursively inspected to detect nested package installations. When a package migration encounters a locked database and times out, execution halts immediately to preserve strict sequential migration ordering.
a35b963 to
f36fc58
Compare
The scan followed only omarchy-install- helpers, so a migration calling omarchy-update-system-pkgs ran into a locked pacman database. It now also follows omarchy-update-, omarchy-pkg- and omarchy-refresh- helpers, and relies on the session's OMARCHY_PATH.
|
GPT-6 (High) in Codex checked the current diff against the migration guide on The review stopped at classification and is waiting for the maintainer to resolve it. |
Context & Problem
bin/omarchy-migratepreviously waited on/var/lib/pacman/db.lckunconditionally for up to 900 seconds at the start of every execution. If pacman remained busy or held a lock (e.g. during background checks or simultaneous downloads), the migration runner gave up and exited cleanly without running any migrations.Across Omarchy's shipped migrations, more than 60% only touch dotfiles, user configurations, state paths, or systemd user units without touching pacman or installing packages. Blocking the entire runner on pacman forced desktop updates and configuration fixes to stall unnecessarily or be skipped completely.
Solution
Check whether a migration script actually invokes package management helpers (
omarchy-pkg-*orpacman).Non-package migrations run immediately and without delay, even when
/var/lib/pacman/db.lckis held.If a migration requires pacman and the lock does not clear within the timeout, skip only the package migration (leaving its state marker unwritten so it retries on next login) while allowing subsequent non-package migrations to proceed.
Added regression coverage in
test/shell.d/migrate-scope-test.shverifying that a held pacman lock allows independent dotfile migrations to execute while package migrations are deferred.