Repository navigation
Make shell tests pass from a symlinked checkout, an agent session, and a packaged install - #16570
Merged
Merged
Conversation
…d a packaged install - base-test resolves ROOT physically, so omarchy-plymouth-set, which refuses a non-canonical source root, accepts a checkout reached through a symlink. - base-test unsets the agent account homes (CLAUDE_CONFIG_DIR, CODEX_HOME, GROK_HOME and the OMARCHY_AGENT_*_HOME pins), which leaked into agent-account-copy when the suite ran inside an agent session and made a fake running CLI look like it used another home. - omarchy-kernel-test expects the root half the command actually picks: the packaged /usr/bin/omarchy-kernel where one is installed, else the checkout. - platform-setup-test stubs every first-run script the repo ships, so first run completes now that git.sh is one of them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Low impact] The changes appear safe to merge. SummaryUpdates shell tests to work from symlinked checkouts, agent sessions, and machines with Omarchy installed.
No actionable issues found. Tests were not run. Reviews (1) · Last reviewed commit: "Make shell tests pass from a symlinked c..." · Reviewed by Greptile |
omarchybot
added a commit
to therahul-yo/omarchy
that referenced
this pull request
Nov 1, 2026
quattro (omacom#16570) now exports OMARCHY_PATH=$ROOT itself, so the merge keeps its export and drops the duplicate; what remains of this change is putting the checkout's bin/ ahead of PATH, after quattro's new unset of the agent account homes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four shell test files failed on a real Omarchy machine for reasons that had nothing to do with the code under test. Three came from the machine running the suite; one is a stale fixture that fails everywhere.
omarchy-plymouth-setrefuses a source root that is not already canonical, because it publishes into root-owned paths.base-test.shbuiltROOTwithpwd, which keeps symlinks, so a checkout reached through one (here~/Work/omacom/omarchy→~/omarchy) was refused.ROOTis now resolved withpwd -P. The command's check is unchanged.OMARCHY_AGENT_CLAUDE_HOME. The test's fake runningclaudethen looked like it was using that other home, so the import didn't refuse to replace a login in use.base-test.shnow unsets the provider homes (CLAUDE_CONFIG_DIR,CODEX_HOME,GROK_HOME) and theOMARCHY_AGENT_*_HOMEpins, next to the XDG unset that guards the same kind of leak./usr/bin/omarchy-kernelwhere one is installed, and from the checkout only otherwise. The test expected the checkout path unconditionally, so it failed on any machine with Omarchy installed. It now expects the path the command's own rule picks.git.sh(Ask for the git identity after first login, with GitHub sign-in #16288). That step failed, so first run never marked itself complete. The fixture now stubs every*.shininstall/user/first-run, so the next new step doesn't break it the same way.config-testalso fails when the localomarchy-pkgscheckout is behind master, because it reads PKGBUILDs from whatever branch that checkout is on. That's the checkout's state, not something to fix here.🤖 Generated by Opus 5.5 in Claude Code.