Skip to content

Let migrations wait for a package without failing the update - #19754

Merged
dhh merged 2 commits into
quattrofrom
migrate-defer
Nov 22, 2026
Merged

dhh merged 2 commits into
quattrofrom
migrate-defer

Conversation

@dhh

@dhh dhh commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

A migration that depends on a newer package (today: three that wait on omarchy-settings for mise tool declarations) had to exit 1 to stay pending, which fails omarchy update. On a dev-linked checkout this happens after every merge that touches etc/: migrations come from the checkout, but /etc still comes from the last omarchy-settings-dev build, so updates break until that package is rebuilt.

A migration now exits 75 (EX_TEMPFAIL) to mean "waiting for a package". omarchy-migrate leaves it pending, stops the queue so strict ordering still holds, says it will retry, and exits 0 so the update carries on. The next update or the login notifier runs it again. Any other non-zero exit still fails the update.

The three waiting migrations (1791382872, 1792504295, 1795318856) switch from exit 1 to exit 75, and agents/skills/migrations.md documents the convention.

🤖 Generated with Claude Code

A migration that needs a newer settings package exits 75 to stay pending
and hold back the queue, while omarchy update carries on. A dev checkout
runs ahead of its dev packages after every merge that touches etc/, so the
three migrations that wait on omarchy-settings broke every update until the
package was rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Migrations can exit 75 to wait for a package without failing the update.

  • Migrations can wait for a package without stopping the update.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Run pending migration] --> B{Exit status}
  B -->|0| C[Record completion and continue]
  B -->|75| D[Leave pending and stop queue]
  D --> E[Let update continue]
  B -->|Other non-zero| F[Fail update]
Loading

Reviews (3) · Last reviewed commit: "Keep the migrations reminder while a mig..." · Reviewed by Greptile

Comment thread bin/omarchy-migrate Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit d4dea95 into quattro Nov 22, 2026
3 checks passed
@dhh
dhh deleted the migrate-defer branch November 22, 2026 11:12
@omarchybot

Copy link
Copy Markdown
Collaborator

GPT-6 in Codex (effort not exposed) checked the diff, discussion, and current PR state. This was already merged into quattro as d4dea95e81 before this queue run, so no worker tests or further code review were run. The classification command returned unreviewed without a valid second-model answer; no labels were added. No action is requested from the author.

cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 22, 2026
…19754)

* Let migrations wait for a package without failing the update

A migration that needs a newer settings package exits 75 to stay pending
and hold back the queue, while omarchy update carries on. A dev checkout
runs ahead of its dev packages after every merge that touches etc/, so the
three migrations that wait on omarchy-settings broke every update until the
package was rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the migrations reminder while a migration waits

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@emirb emirb added this to the 4.6.0 milestone Dec 1, 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.

3 participants