Skip to content

test: give a checkout run the commands the shell tests call - #15459

Closed
nekomario28 wants to merge 1 commit into
omacom:quattrofrom
nekomario28:shell-tests-checkout-path
Closed

nekomario28 wants to merge 1 commit into
omacom:quattrofrom
nekomario28:shell-tests-checkout-path

Conversation

@nekomario28

Copy link
Copy Markdown
Contributor

The shell tests run the commands they test from the checkout, and those commands call each other — omarchy-battery-status runs omarchy-i18n, and omarchy-i18n reads OMARCHY_PATH. A checkout run has neither the checkout's bin/ on PATH nor OMARCHY_PATH set, so any test whose command reaches another one fails before it tests anything:

bin/omarchy-i18n: line 47: OMARCHY_PATH: unbound variable
not ok - battery status works the time left out from the draw it shows

test/shell.d/i18n-test.sh already exports both for itself (lines 271–272); base-test.sh, which the rest source, did not. These two lines belong there.

Validation

run result
bash test/shell on quattro 32 of 419 files fail
same, with these two lines 17 of 419 files fail

Every one of the 17 also fails without the change (they want a compositor, hardware, or CJK fonts), so nothing new fails and fifteen are repaired.

Four of the fifteen are a regression from the language work (#15326), which is what led me here:

test file at 84cfb939^ at 84cfb939
battery-status-test.sh pass fail
crash-capture-test.sh pass fail
hyprland-workspace-layout-test.sh pass fail
keybindings-menu-test.sh pass fail

Removing the two lines puts all four back to failing, so the guard is the run above rather than an assumption.

The remaining 17 are out of scope here: they need the live compositor, a battery or GPU, or CJK fonts, and they fail identically before this change.

Integration status

Branched from quattro; no conflicts, no force-push. I'll merge quattro in rather than rebase while it is open.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for this. I read the change against quattro, and as of cce8b1c97 that branch still doesn't export the checkout's bin/ or OMARCHY_PATH in test/shell.d/base-test.sh, so this hasn't already been fixed. I read the PR as a bug fix to the test harness.

Every item needs a second opinion before it can be classified, verified or labelled. That reviewer is Codex Medium, and it didn't run on this one: omabot's daily cap on reviewer calls had already been reached. So nothing has been labelled yet, and nothing was run on a worker. The suite results in the description haven't been reproduced here either.

Next step: the maintainer, who can send this back through the queue for a full review. A new push to the branch also sends it round again. Either way it then gets classified, run on a worker and reviewed by both models. You don't need to do anything in the meantime.

The commands under test call each other: omarchy-battery-status runs
omarchy-i18n, and omarchy-i18n reads OMARCHY_PATH. A test run from a checkout
had neither on hand, so any test whose command reaches another one failed with
`omarchy-i18n: command not found` or `OMARCHY_PATH: unbound variable`.
test/shell.d/i18n-test.sh already exports both for itself; base-test.sh, which
the rest source, did not.

bash test/shell on quattro: 32 of 419 files fail. With these two lines: 17 of
419, and every one of the 17 also fails before this change, so nothing new
fails. Four of the fifteen are a regression from the language work (omacom#15326):
battery-status, crash-capture, hyprland-workspace-layout and keybindings-menu
pass at 84cfb93^ and fail at 84cfb93.
@nekomario28
nekomario28 force-pushed the shell-tests-checkout-path branch from f014b64 to 0d6365d Compare October 23, 2026 16:54
@greptile-apps

greptile-apps Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This change appears safe to merge.

Summary

Sets PATH and OMARCHY_PATH in the shared shell-test helper so commands can call other checkout commands and find their files.

  • Shell tests can run checkout commands that call one another.

Reviews (1) · Last reviewed commit: "test: give a checkout run the commands t..." · Reviewed by Greptile

@omarchybot omarchybot added the bug Something isn't working label Oct 23, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for tracking this down. The change here is already open as #14009, from 2 October: it adds the same two lines to test/shell.d/base-test.sh against quattro, export PATH="$ROOT/bin:$PATH" and export OMARCHY_PATH="$ROOT". I compared the two diffs at this head (0d6365d0) and #14009's head (83ac6b9b). The code is the same, and only the explanatory comment and the order of the two exports differ. So this is a duplicate, and the earlier pull request keeps it.

I read both diffs and nothing was run on a worker for this one. #14009 is already labelled bug and verified, and it is waiting on the maintainer. Codex Medium compared the two separately and agreed they make the same change. Its independence from my reading isn't guaranteed.

The four failures you traced to #15326 (battery-status, crash-capture, hyprland-workspace-layout and keybindings-menu) are useful context for #14009 and stay readable here. Your other pull request, #15305, changes three individual test files rather than base-test.sh, so it is not affected by this.

I'm closing this as a duplicate of #14009. If I've got that wrong, say so and it can be reopened.

@omarchybot omarchybot added the duplicate This issue or pull request already exists label Oct 23, 2026
@omarchybot omarchybot closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants