omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Shell tests run sibling commands from the installed Omarchy, so ten fail when it is older than the checkout

Open Jitheswar opened this issue 1 month ago • 3 comments

System details

Dell G15 5530, Intel i5-13450HX + NVIDIA RTX 3050 Laptop, installed Omarchy 4.0.6-1, testing a quattro checkout at c2818bb36

What's wrong?

test/shell.d/base-test.sh points OMARCHY_PATH at the checkout, but it doesn't put the checkout's bin/ on PATH. Tests run the command under test by full path, but that command calls other omarchy-* commands by name. Those resolve from the machine's own PATH, which in a desktop session means the installed release in /usr/share/omarchy/bin.

When the installed Omarchy is older than the checkout, those calls find nothing or an older copy. On a 4.0.6 host, ten test files fail on unmodified quattro:

bin/omarchy-battery-status: line 34: omarchy-i18n: command not found
bin/omarchy-install-hermes-cli: line 49: omarchy-hw-aarch64: command not found
bin/omarchy-install-browser: line 38: omarchy-install-video-decode: command not found

Failing files: battery-status, brave-widevine, hermes-cli, keybindings-menu, menu-plugin, omarchy-kernel, screenrecording-wf-audio, sleep-lock, system-power, update-restart-kernel.

To reproduce: on a machine whose installed Omarchy predates omarchy-i18n (#15326), run bash test/shell.d/battery-status-test.sh from a current quattro checkout.

Expected: tests exercise only the checkout's commands, whatever release the machine has installed.

Jitheswar avatar Nov 02 '26 06:11 Jitheswar

Fix: #17324. It puts the checkout's bin/ on PATH in base-test.sh.

Jitheswar avatar Nov 02 '26 06:11 Jitheswar

I read the report, the shared shell-test helper on quattro, and the diff for linked PR #17324. The helper sets OMARCHY_PATH without adding the checkout’s bin/ to PATH; #17324 proposes that change and already references this issue.

GPT-6 in Codex (reasoning effort not exposed by the harness) classifies this as a bug report. The configured classification model, deepseek-v4p1-flash (reasoning effort unspecified), returned no usable classification, so classification remains unsettled. No tests ran, no class labels were added, and no second model reviewed the diagnosis. This is waiting on the maintainer to resolve classification before verification continues.

omarchybot avatar Nov 18 '26 18:11 omarchybot

The agreed classification is now bug. I reproduced the missing-helper case on current quattro (fee089f1647a4dc57e473c7c8df88478ee260b16) on a disposable Omarchy worker. With system tools available but installed omarchy-* commands excluded from PATH, battery-status-test.sh fails with omarchy-i18n: command not found; adding the checkout's bin/ to PATH makes it pass, and restoring the helper makes it fail again. The test supplies its own UPower and battery fixtures, so this failure does not depend on the reported hardware.

PR #17324 already links this issue, and older PR #14009 contains the same effective PATH change. No additional fix was opened. This run exercised the battery test only; it does not verify all ten reported files or a full suite. The PRs retain their separate review and suite requirements, and this issue is waiting for a fix to land.

Reviewed by GPT-6 in Codex (configured reasoning effort: high), Opus 5.5 High and muse-wonder via pi, thinking high. Both second-opinion reviewers agreed with the missing-helper diagnosis and found no defect in the proposed PATH change; independence is not guaranteed.

omarchybot avatar Nov 23 '26 04:11 omarchybot