Skip to content

Put the checkout's bin/ on PATH for shell tests - #17324

Open
Jitheswar wants to merge 1 commit into
omacom:quattrofrom
Jitheswar:test-checkout-bin-on-path
Open

Jitheswar wants to merge 1 commit into
omacom:quattrofrom
Jitheswar:test-checkout-bin-on-path

Conversation

@Jitheswar

@Jitheswar Jitheswar commented Nov 2, 2026 •

Copy link
Copy Markdown

Fixes #17325

Problem

base-test.sh sets OMARCHY_PATH to the checkout ("commands under test belong to this checkout"), but never puts the checkout's bin/ on PATH. Tests run commands by full path ("$ROOT/bin/omarchy-battery-status"), but those commands call their siblings by name, and the siblings resolve from whatever PATH the machine has. On a desktop session that is the installed release in /usr/share/omarchy/bin.

When the installed Omarchy is older than the checkout, those calls either reach an older copy or find nothing. On a machine running Omarchy 4.0.6, 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

These are battery-status, brave-widevine, hermes-cli, keybindings-menu, menu-plugin, omarchy-kernel, screenrecording-wf-audio, sleep-lock, system-power and update-restart-kernel. They pass only where the installed release happens to match the checkout.

Change

base-test.sh exports PATH="$ROOT/bin:$PATH" next to OMARCHY_PATH. Tests that stub commands still prepend their stub directories, so stubs keep winning. Tests that build their own PATH with env -i are unaffected.

Testing

On Omarchy 4.0.6 with this checkout on quattro:

  • Before: ./test/all fails 12 shell test files.
  • After: the ten files above pass. The other two are unrelated. agent-account-exec-test.sh fails because of the mise 2026.10.23 wrapper change that Run the agent CLI, not the mise wrapper, when newer mise keeps it on PATH #17301 addresses (I've left a note there about the part it still misses). shell-idle-spawn-test.sh reads the live desktop and passes when run alone.
  • update-lock-test.sh failed once in a loaded full run with every check printing ok, and passes alone.

🤖 Generated with Claude Code

Commands under test call siblings by name, so on a machine whose
installed Omarchy is older than the checkout they reached the installed
copies, or none: ten test files failed with "omarchy-i18n: command not
found" and similar.

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

greptile-apps Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This change appears safe to merge.

Summary

Adds the checkout’s bin/ to PATH when shell tests source base-test.sh.

  • Shell tests find sibling commands in the checkout they are testing.

Reviews (1) · Last reviewed commit: "Put the checkout's bin/ on PATH for shel..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator

I read the diff, the shared shell-test helper and runners, and linked issue #17325. I classify this as a bug fix, but the configured classification model (deepseek-v4p1-flash, reasoning effort unspecified) returned no classification, so the classification remains unsettled. No tests ran and no labels were added; this is waiting on the maintainer to resolve the classification before verification continues.

The source review was by GPT-6 in Codex (reasoning effort not exposed by the harness). No second model reviewed the change; a separate reviewer health check succeeded.

@omarchybot omarchybot added the bug Something isn't working label Nov 22, 2026
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

I checked the shared helper, its callers and stub precedence, the test runners, and issue #17325. On a disposable Omarchy worker, the existing battery-status test fails on current quattro with omarchy-i18n: command not found, passes at b4af99290928b7886593a8977e070c79ae1832df, and fails again with this change reverted. The reproduction uses a PATH with system tools but no installed Omarchy commands, representing an older install missing the sibling.

The full ./test/all run passed CLI but failed 14 of 417 shell-test files; six files had skipped checks. Comparing the failed files with current quattro showed the same explicit failure in eight. The other outcomes remain unisolated. This worker run also encountered mise trust errors, invalid synced Git metadata, and a temporary socket path made too long by my chosen temporary-directory location. These results do not establish a regression in the PATH change. The fix is labelled verified; ready is withheld pending a green full worker suite. No commits were pushed.

Reviewed by GPT-6 in Codex (reasoning effort not exposed by the harness), Opus 5.5 High, and muse-wonder via pi, thinking high. Both second-opinion reviewers found no defect and agreed that the reproduction exercises the reported bug; independence is not guaranteed. Greptile reports 5/5 on this head with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants