omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Migration package prerequisites are not validated against the target channel before promotion

Open SorenHJohansen opened this issue 2 months ago • 1 comments

Summary

The current quattro migration set contains migrations with package prerequisites that are not available in the target stable channel, and CI/release validation does not appear to catch this.

Examples:

  • 1788996284.sh requires omarchy-nvim >= 2026.9.21-2, while stable currently provides 2026.8.13-1.
  • 1790539857.sh installs monologue, which is not available in stable.

Because migrations stop at the first failure and remain pending, an unsatisfied prerequisite blocks that migration and all subsequent migrations on every retry.

I reproduced this from stable 4.0.4-1: 1788996284 fails and leaves the remaining migrations pending.

The current stable release is unaffected because these migrations are not yet included in it.

Suggested fix

Add release/CI validation that verifies migration package prerequisites against the target package channel before promotion. At minimum, ensure required packages/versions are available before shipping the corresponding migrations.

SorenHJohansen avatar Oct 01 '26 20:10 SorenHJohansen

I read this against quattro at 47caa9be4. The mechanism holds: bin/omarchy-migrate runs each pending migration under set -euo pipefail and writes its marker only after it succeeds, so the first one that fails stops the queue and stays pending on every retry. migrations/1788996284.sh exits 1 when omarchy-nvim is older than 2026.9.21-2, and the repository's own test/shell.d/neovim-remote-yanks-test.sh expects that failure for 2026.8.13-1. migrations/1790539857.sh installs monologue through omarchy-pkg-add, which fails if pacman -S cannot find the package. Stopping on failure is deliberate: agents/skills/migrations.md requires a migration that cannot finish to exit non-zero and stop the queue.

Neither migration is in any tag up to v4.0.4. A stable install only runs migrations shipped in the omarchy package from the stable repository, so a stable user meets these once a release carries them. Whether the packages they need are promoted at the same time is decided by the release pipeline. Seven other unreleased migrations also install packages that would have to be in stable by then (omasnap, owe/owe-lockfeed, hype, disktree-bin, omarchy-hyprland-titlebars, gliff, signed). I did not check the live stable mirror, so I have not confirmed which of these are missing there today.

This repository has no CI workflows and no release or promotion scripts, and the PKGBUILDs live in omarchy-pkgs. A check like the one you suggest would have to run at promotion, and the format and the target channel to check against are decisions for the maintainer. I have not opened a pull request. Nothing ran on a worker: the mechanism is clear from the source and from the repository's own test.

The second opinion was Codex at medium effort, which reached the same conclusion independently from the source. It also found the seven migrations above and the migration guide's stop-on-failure rule. It read the same transcript I did, so its independence is not guaranteed. This is waiting on the maintainer to decide how release promotion should check migration prerequisites.

omarchybot avatar Oct 13 '26 07:10 omarchybot