Repository navigation
Conversation
Contributor
[Low impact] The PR appears safe to merge; both previous findings are addressed. SummaryAdds
Reviews (2) · Last reviewed commit: "count shells from every checkout and ski..." · Reviewed by Greptile |
…fails in omarchy doctor
1 of 2 tasks
Contributor
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.
omarchy rollcall(#20107) answers "does this machine's hardware work". Nothing answers the same question for the Omarchy install itself.omarchy debugprints thousands of lines for someone else to read, and several common breakages give no sign until something fails later: a full/run/user/$UIDmakes every app launch fail withInvalid arguments(#13287), a shell that did not come back, migrations that never ran, a session still on the old path afteromarchy dev link.omarchy doctoris the software twin ofrollcalland copies its shape: the same arguments ([--json] [--list] [check...]), the same three results, the same exit codes (0 nothing failed, 1 something failed, 2 usage error). The one addition is a hint under each failed check: the next command to run.runtime-dir$XDG_RUNTIME_DIRis 90% full or more. The detail also counts Quickshell log directories whose instance is gone (#13287, #20814).shellomarchy-shell shell pingdoes not answer, or one display has more than one shell instancenotificationsGetServerInformation, asked with--auto-start=noso the question starts nothinguser-servicessystemctl --userlists failed unitsmigrationsomarchy-migrate --pendinglists anyrestartsreboot-requiredorrestart-*-requiredstate marker is waitingomarchy-pathOMARCHY_PATHis unset, holds no Omarchy, or differs from/etc/omarchy.confthemeshellandnotificationsare skipped without a Wayland socket (SSH, a TTY).It only reads. It needs no sudo, writes no file, starts no service, and every call to another program runs under
timeout --kill-after. A full run took 212 ms in a QEMU guest.--jsonprints one line:{"version":1,"omarchy":"…","checks":[{"id","result","detail","hint"}]}.Not in this PR
--fix. Each failure's remedy is one existing command, and the hint names it..pacnewfiles: Report unmerged Omarchy .pacnew files after an update #15149 reports them after an update, andpacdiff -otook 10 s here, too slow for this command.omarchy update health) asks some of the same questions once, after an update. This command can be run at any time and shares no file with it.Testing
doctor-test.shruns the real script against a fake home, runtime directory and/proc, with stubbeddf,busctl,systemctl,quickshellandomarchy-shell, and the realomarchy-migrate. It asserts that a full run leaves the fake tree unchanged (paths, sizes, mtimes, link targets) and thatsudoandpkexecare never called.On a dev-linked QEMU guest, every result was compared with the same facts read directly in the same session (
df, theby-pidlinks against/proc,omarchy-migrate --pending, the state markers,busctl,systemctl --user): all agreed. Not tested on aarch64 or with a really full runtime directory outside the hermetic test.