Repository navigation
Fix vscode theme file verification in test/cli - #13810
szaidi-code wants to merge 1 commit into
Conversation
|
Hi @szaidi-code It looks like #13766 is fixing the same
The second failure was hidden behind the first one before. The test still writes the #13766 fixes the marker too, and it also checks that the theme file isn't a symlink. Would you take a look at #13766 and see whether you agree it covers your fix? If it does, a +1 or review there would be great, and we can close this one so all the validation ends up on a single PR. |
Independent community review| This is an independent community review unaffiliated with the Omarchy team, intended to help prepare PRs for maintainer review. Tested: FindingsThis PR correctly identifies that However, resolving that assertion unmasks a secondary failure on the very next check: Root CauseIn echo '{"local.omarchy-theme-1.0.0":true}' >"$PI_TMPDIR/.vscode/extensions/.obsolete"However, GENERATED_EXTENSION_VERSION="1.0.$(cksum "$GENERATED_THEME" | cut -d' ' -f1)"When RecommendationAs noted earlier by @betizzel, PR #13766 by @SorenHJohansen addresses both stale assertions (the regular file check and the content-derived obsolete marker key) as well as asserting
|
|
Triage (not posted): This correctly switches the vscode theme check from symlink to a real file, but #13766 already fixes the same |
|
Thanks for this. I read it against The symlink assertion here is fixed correctly: I read both diffs and the script on |
|
Thank you for this, @szaidi-code. #13766 got there first, and also fixes the obsolete-marker check this leaves alone, so this is closed in favour of it. Closed at the maintainer's request. The review comment above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |
Summary
Fixes
test/cliverification foromarchy-theme-set-vscode. The test previously checked for a symlink ([[ -L ... ]]), butbin/omarchy-theme-set-vscodewrites a real file so file watchers can detect theme updates.Changes
test/clito verify regular file existence and content equality withcmp -s.