Skip to content

Remove tests that only read source text - #16334

Merged
ryanrhughes merged 44 commits into
quattrofrom
t3/prune-source-text-tests
Oct 27, 2026
Merged

ryanrhughes merged 44 commits into
quattrofrom
t3/prune-source-text-tests

Conversation

@ryanrhughes

@ryanrhughes ryanrhughes commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Removes assertions that read source text instead of running code: regexes and includes() over QML, and grep/rg over bin/ scripts, install scripts, config files and package lists. They break when someone reformats a line and catch nothing a behaviour test wouldn't.

  • Deleted whole (14 files): background, lock-stranded-recovery, lock-blank-fingerprint, lock-wallpaper-preload, panel-entries, row-border-stability, shell-launch, network-manager-transition, limine-defaults, windows-vm, theme-neovim-colorscheme, hyprland-window, floating-terminal, launch-1password.
  • Trimmed (~70 files): the source checks go; model logic, extracted-and-run QML functions and runtime fixtures stay. The biggest cuts are menu-test (947 → 426), upgrade-to-quattro, bar-test, video-background, image-picker, clipboard, clock, snapper and network.
  • Kept on purpose: repo-wide lints, cross-file invariants (every overlay namespace is in the no-animation rule, each collector's AUTH_HELP maps to a panel case), upgrade-to-quattro's root-PATH check and install-language's "never sources the preset".

Where a removed grep was the only guard on a real rule, it's replaced with a check that runs or reads data rather than dropped:

  • Upgrade step order: upgrade-to-quattro-test runs the script's real step block with each step logging its name. The snapshot comes before the channel change, root= is pinned before the kernel install and checked after Limine is rewritten, and --reboot never reboots when root= wasn't confirmed. Each mutation goes red.
  • Menu glyphs: the pinned e900-e91f charset range becomes a check that every glyph the menu draws in the Omarchy font is in the font's own charset (fc-query). omarchy-dev-font and agents/skills/icon-font.md no longer ask you to bump a pin.
  • Docker group: the upgrade-only grep becomes a repo-wide rule that only omarchy-setup-security-sudoless-docker adds a user to docker.
  • keepLoaded: plugins-test reads the lock, polkit and idle manifests' JSON and requires them to stay loaded across plugin reloads.
  • Media shortcuts: the kept negative grep never matched, because helpers.lua quotes the fallback (omarchy-shell 'media' 'playPause'). It now matches the quoted form, and dropping a media shortcut goes red.
  • GB10 Suspend/Hibernate: the block that ran the real menu guards on fixture machines stays; only its string match goes.
  • Lock state: lock-state-test keeps the two currentlyLocked() asserts. They're the only guard on a fix for machines resuming unlocked, and the session lock can't be driven offscreen to test it another way.

The n1x.sh early return and the all.sh registration checks move into #16337's hardware-quirks-test, which runs the leaves and the real dispatchers.

Merged with quattro rather than rebased. Quattro's own additions to these files that run code stay: the agents panel's sign-in and limit-window blocks, the bar's peek wording, and the FALLBACK check on the external-monitor helper, which keeps monitor-recovery-test.sh alive on its own. The source checks quattro added to the same files (menu pins, Bar.qml and Panel.qml regexes, the upgrade's browser grep) go with the rest.

All 67 changed test files pass on their own on the final head.

@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable new defect was established.

Summary

Removes source-text assertions across the shell tests while keeping tests that run model logic, extracted functions, and runtime fixtures.

  • Feature tests focus on checks that run code instead of matching source text.
  • Menu tests check that installed software stays listed in Install.
  • Monitor state tests check each display’s width and height.
  • Upgrade tests run the step order and reboot gate with stubbed commands.
  • The font helper and menu test no longer require a manual glyph-range reminder.
  • The testing guide reflects the suite’s updated testing approach.

ryanrhughes explicitly accepts deleting the launcher checks because they only compare branch literals with stub logs. They also accept removing source-only guards for the N1x early return and the lock view's imports because those guards do not run the affected code. The stated concerns about plugin lifetime and upgrade ordering now have checks in the current diff.

Reviews (3) · Last reviewed commit: "Keep the lock's read-the-current-state c..." · Reviewed by Greptile

@omarchybot omarchybot added the enhancement New feature or request label Oct 22, 2026
The menu test no longer pins the icon font's coverage.
Keep the model, VM, runtime fixture and command-output checks. The overlay no-animation check now covers every OverlayWindow plugin instead of a fixed list, and the dock default-pins check reads the shipped defaults instead of a copy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants