Skip to content

Sync vscode theme test with the real-file extension - #13133

Closed
anandude wants to merge 1 commit into
omacom:quattrofrom
anandude:fix-vscode-theme-test
Closed

anandude wants to merge 1 commit into
omacom:quattrofrom
anandude:fix-vscode-theme-test

Conversation

@anandude

@anandude anandude commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Problem: ./test/cli fails on clean quattro with 'vscode generated theme references current theme file' (#13131). 977e0fc deliberately switched the generated theme extension from a symlink to a real file (a symlink dangles while theme-set swaps current/theme, and the _watch watcher needs a same-inode rewrite) and derived the extension version from the theme content — but the test still expects a symlink at version 1.0.0, so it fails, and the stale obsolete-marker setup hides a second failure behind it.

Change (test only, no production code): assert the installed theme is a real file matching the generated theme, and seed the .obsolete marker with the actual content-derived version.

Verification:

  • ./test/cli is fully green (113 ok, 0 failures) — the first green CLI run in this environment.
  • Negative control: restoring the pre-977e0fcd script trips the new real-file assert; re-applying the fix returns to green.
  • ./test/all: only the known shell env failures remain (bar-icon-geometry, config, screenshot-sanity, snapper, unowned-system-paths, kernel-headers; omarchy-kernel-migration passes isolated).

Fixes #13131

@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed and verified at e6c7ca4; nothing found.

The problem is real: on current quattro (821ae58), ./test/cli stops at not ok - vscode generated theme references current theme file, because bin/omarchy-theme-set-vscode has written a real file with a content-derived version since 977e0fc. Run on a disposable Omarchy worker, this head passes the whole suite (113 ok), and so does this head merged onto current quattro (118 ok). Reverting the change fails again at the same assert. Fixing only the symlink assert and keeping the 1.0.0 marker fails at vscode generated theme clears obsolete extension marker, so both halves of the change are needed. It is test-only and the size the problem warrants.

A second opinion from Codex Medium reviewed the diff against the script and found no defects; it agreed with the above, and its independence is not guaranteed. It added that set -e at test/cli:3 means the seeded marker can't make the obsolete check pass vacuously.

Two other open pull requests fix the same assertions. #13810 keeps the 1.0.0 marker, so the suite still fails at the obsolete-marker check, and its -f plus cmp would also accept a symlink. #13766 makes the same correction as this one and adds a check that the manifest declares _watch. Codex was asked separately which of the three to bring forward and chose this one: it is the earliest, it is complete, and it is the smallest.

This pull request now closes #13131. It is waiting on the maintainer.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 4, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This no longer needs to land: quattro has since made the same correction to test/cli, and that is why this pull request now conflicts.

Commit 0e7d6c2 (#14259, merged 2026-10-04) seeds the .obsolete marker with the content-derived version (test/cli:611-612), asserts that the installed theme is not a symlink (test/cli:617) and compares it with current/theme/vscode-theme.json (test/cli:618). Those are the two fixes this pull request makes. The one difference is the extra -f check here, and it adds no coverage: cmp already fails if the file is missing, and that failure calls fail. I ran ./test/cli from current quattro (d9b970d) on a disposable Omarchy worker. It passed in full, including all four vscode theme assertions.

Codex Medium was given this branch and current quattro and asked whether anything here is still missing from quattro. It found nothing left to keep, and it checked the missing-file case separately. It agreed with the above, and its independence is not guaranteed.

The same change also replaces #13766, and #13131 is now fixed on quattro, although #14259 did not close it. This is waiting on the maintainer, and my recommendation is to close it. Thank you for tracking down both halves of the failure. Your report was the first to name them.

@anandude

Copy link
Copy Markdown
Contributor Author

Closing as superseded — omarchybot verified this is fixed on quattro by 0e7d6c2 (#14259), which seeds the .obsolete marker with the content-derived version and asserts the real file. Nothing left to keep here. Thanks for the pointer.

@anandude anandude closed this Oct 14, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test/cli vscode assert expects a symlink that 977e0fcd replaced with a real file

2 participants