Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds plugin update support to the main update flow, including unattended behavior, and extends the shell test to validate the new step and its arguments.
Changes:
- Insert
omarchy-plugin-updateinto the update sequence, gated on presence of Git-based plugins. - Pass
--yesto plugin updates when running unattended (-y) and continue on failure with a warning. - Update the update-sequence shell test to include the new step, set
HOME, and assert recorded args.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| test/shell.d/update-sequence-test.sh | Extends sequence/argument assertions and sets up a plugin .git fixture under HOME. |
| bin/omarchy-update | Runs omarchy-plugin-update when Git-based plugins are detected; adds unattended --yes behavior and non-fatal failure handling. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (3)
test/shell.d/update-sequence-test.sh:94
- These assertions became significantly less precise after adding the
args=field to the stub output: they only check forunattended=…followed by a space, and don’t assert the expectedargs=field at all. This can allow false positives if the line format changes further or additional fields are introduced. Consider matching the full expected format for these steps (e.g., includeargs=explicitly and anchor the end of line), or switch togrep -Fwith an exact expected line when arguments are not expected.
grep -q '^omarchy-update-system-pkgs unattended=1 ' "$test_tmp/steps" ||
fail "-y does not mark the update unattended"
test/shell.d/update-sequence-test.sh:101
- These assertions became significantly less precise after adding the
args=field to the stub output: they only check forunattended=…followed by a space, and don’t assert the expectedargs=field at all. This can allow false positives if the line format changes further or additional fields are introduced. Consider matching the full expected format for these steps (e.g., includeargs=explicitly and anchor the end of line), or switch togrep -Fwith an exact expected line when arguments are not expected.
grep -q '^omarchy-update-system-pkgs unattended= ' "$test_tmp/steps" ||
fail "an update a person confirmed is treated as unattended"
test/shell.d/update-sequence-test.sh:39
- Logging args via
$*loses information (e.g., it flattens arguments and makes it ambiguous if any argument contains spaces). Since the test now depends on argument logging, consider logging arguments in a more robust, parseable way (for example, iterating over\"$@\"and printing each arg in a shell-escaped form such as%q, or emitting a delimiter-separated format). This reduces test fragility and makes failures easier to diagnose.
printf '%s unattended=%s args=%s\n' "${0##*/}" "${OMARCHY_UPDATE_UNATTENDED:-}" "$*" >>"$STEP_LOG"
Git-managed shell plugins needed a separate `omarchy plugin update`, so they fell behind the Omarchy they run on. `omarchy update` now runs the plugin updater once sudo is released and while Stay Awake still holds. An interactive update shows each plugin's diff and asks; `-y` passes `--yes`. A plugin that fails to update warns with how to retry and does not stop the rest of the update.
ebbc811 to
a6347d0
Compare
[Medium impact] The PR appears safe to merge. SummaryAdds git-managed plugins to
No actionable issues found. Review was based on code inspection; no live update was run. Reviews (1) · Last reviewed commit: "Update installed plugins with Omarchy" · Reviewed by Greptile |
What changes
Git-managed shell plugins only update through a separate
omarchy plugin update, so they fall behind the Omarchy they run on.omarchy updatenow runs the existing plugin updater when any plugin in~/.config/omarchy/pluginsis a git checkout.It runs after the boot check, once sudo is released (plugins need none) and while Stay Awake still holds. An interactive update keeps the updater's per-plugin diff and confirmation;
omarchy update -ypasses--yes. If a plugin fails to fetch, fast-forward or validate, the update warns with how to retry (omarchy plugin update) and finishes as before. Plugins copied in without git add no step.Rebased onto current quattro, where the update was restructured; the step moved from after the AUR packages to after the boot check accordingly.
Verification
test/shell.d/update-sequence-test.shgains four cases: only copied plugins runs no plugin step; with a git-managed plugin,-yrunsomarchy-plugin-update --yesright afteromarchy-update-boot; a confirmed update runs it with no arguments, so the person reviews each diff; a failing plugin update still runs every later step and prints the retry command. The test now sets its ownHOME, so the plugins installed on the machine running it don't change the expected steps.bin/omarchy-updatechange the new test fails (not ok - an update does not update git-managed plugins after the boot check, missingomarchy-plugin-update); with it, the whole file passes.test/shell.d/update-*-test.sh, the security and channel-switch tests that exerciseomarchy-update,I18N_STRUCTURAL=1 test/shell.d/i18n-test.shandscripts/i18n-sync.py extract-scan --checkfor the new Englishupdate.pluginsFailedstring.omarchy updateagainst live plugin remotes. The updater itself (omarchy-plugin-update) is unchanged.Screenshots
No visible change: it adds a step to the terminal update flow, and the shell and panels render the same.