Repository navigation
Conversation
…tubs omarchy-pkg-present and omarchy-pkg-add now pass -- before package names (b72d7e5), but these two stubs still read the package from a fixed position. The kernel migration stub ran grep with -- as its pattern and no file, so it blocked on stdin; the headers stub looked up a package named "--". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Confirming this fixes the hang. I hit it while running I applied this PR's diff to current
Tested on Omarchy 4.0.4, Hyprland 0.56.2. |
|
Independent, AI-assisted verification of The fix is already covered by this PR, so I am contributing verification and a targeted test addition rather than opening a duplicate. I ran the two original test files with their direct dependencies in an isolated Debian 13 / Bash 5.2.37 / GNU grep 3.11 sandbox, as an unprivileged user. The retrieved source files were verified against their Git blob hashes. This was a focused source subset, not a complete checkout.
38 further checks passed against the extracted pacman stubs and real package helpers, covering queries with/without Non-blocking coverage suggestion: deleting only the new This assertion, placed immediately after the first ! grep -Fxq -- "--" "$INSTALLED_PACKAGES" "$CALL_LOG" || fail "the operand separator is not recorded as a package"I verified that it passes with this PR, and fails with Scope: |
|
Reviewed at a883efc. This fixes the bug, and nothing needs to change. Reproduced on a disposable Omarchy worker. I ran both test files with stdin closed and with stdin held open, on
Reverting either file on its own brings back that file's failure, so both changes are needed. Second opinion: Codex Medium reviewed this diff. Like my own review, it found no defect: the shift arithmetic leaves the package at Related: #13365 fixes the same two stubs differently. It takes the last argument for This is now waiting on the maintainer. |
|
Rechecked at a883efc now that this conflicts with What changed on What I checked. I compared this branch with Second opinion: Codex Medium traced the same call paths independently and reached the same conclusion: close as superseded. Independence isn't guaranteed, since it can read this review's reasoning. #13365 changes the same two stubs, so the same commit covers it too. Thanks for tracking this down. Your write-up of the hang is what the fix on |
Summary
#11495 (b72d7e5) changed
omarchy-pkg-presentandomarchy-pkg-addto pass--before package names:pacman -Q -- <pkg>pacman -S --noconfirm --needed -- <pkgs>The review on that PR caught the pacman stubs in
fingerprint-driver-migration-test.sh,fingerprint-package-test.shandmenu-guards-test.sh, which were fixed before merge. Two kernel migration tests still read the package name from a fixed position:omarchy-kernel-migration-test.sh: the stub runsgrep -Fxq "$2" "$INSTALLED_PACKAGES", which becomesgrep -Fxq -- <packages-file>. The file path is taken as the pattern and there is no file operand, so grep reads stdin./dev/null, as in a normal CI run, the file fails before its first assertion../test/allrun from an agent harness or a pipe), it blocks indefinitely. I hit a 74-minute hang this way.kernel-headers-migration-test.sh: the stub already passes--to grep but still uses$2, so every package lookup searches for a package literally named--and fails ("linux-omarchy gets its headers"). Its-Sbranch also records the--as an installed package.Changes
-Qstubs skip an optional--, using the sameif [[ $2 == "--" ]]; then shift 2; else shift; fipattern the fingerprint and menu-guard stubs use.-Sbranch drops the--before recording packages.pacman -S --noconfirm --needed -- linux-omarchy linux-omarchy-headers, matching the fingerprint test's expectation.No other
test/shell.dstub reads$2after-Qwithout handling--.Tests
omarchy-kernel-migration-test.sh, stdin/dev/nullomarchy-kernel-migration-test.sh, stdin open pipetimeout 60)kernel-headers-migration-test.shnot ok - linux-omarchy gets its headersFull
./test/allon this branch goes from 7 failing files to 5. The same 5 fail on unmodifiedquattroon this machine.None of the remaining failures come from this change. I checked each one:
config-test.sh,unowned-system-paths-test.sh,snapper-test.sh: these need local checkouts ofomarchy-pkgs(andomarchy-isofor snapper). With both cloned, all three pass.screenshot-sanity-test.sh: this needsomasnap. It was added toomarchy-base.packagesin e265934 but isn't installed on this machine, which runs Omarchy 4.0.4.test/cli: "vscode generated theme references current theme file" is a stale check. Make VS Code-family editors reload the Omarchy theme when it changes #10134 deliberately switchedomarchy-theme-set-vscodefrom a symlink to a real file with a content-derived version, but the test still expects the symlink. Behind it, the.obsoletecheck still seeds version1.0.0. This fails on unmodifiedquattrotoo; it is fixed in Update the VS Code theme CLI checks for the copied theme file #13065.runtime-smoke-test.sh: "each widget registers its IPC handler once per screen (saw 8 for 3 screen(s))" also fails on unmodifiedquattro. The live Omarchy 4.0.4 shell on this 3-monitor machine logs similar bursts of duplicate IPC handler registrations for every bar widget, so this may be a real multi-monitor issue rather than an environment quirk. I haven't investigated it further.🤖 Generated with Claude Code