Skip to content

test: run the headless suites on Qt's generic platform theme - #253

Merged
thisisgm merged 1 commit into
thisisgm:mainfrom
nixfred:fix/headless-qt-platform-theme
Oct 6, 2026
Merged

thisisgm merged 1 commit into
thisisgm:mainfrom
nixfred:fix/headless-qt-platform-theme

Conversation

@nixfred

@nixfred nixfred commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Omarchy exports QT_QPA_PLATFORMTHEME=gtk3. When the headless runner starts offscreen Qt tests without a display, GTK exits before their assertions run. Select Qt's generic platform theme inside tests/run-all.sh so those tests can execute.

Validated with two restricted copies of the real runner, both inheriting gtk3: the fix passes pdf-first, pdf-turn, preview-swap, preview-decode, and modes; removing only the export makes all four offscreen suites fail with the GTK display error. All 30 production platform-theme checks pass, and the child export leaves the caller's environment unchanged. Syntax and lint checks pass.

Validation covers the affected suites; the complete headless battery was not run for this PR.

Use the generic Qt platform theme for the headless test battery.
The inherited GTK theme otherwise exits when offscreen tests hide the display.
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 90268377-713e-444d-a870-a01d1eca6fd5
📥 Commits

Reviewing files that changed from the base of the PR and between 58fc89f and 35a8767.

📒 Files selected for processing (1)
  • tests/run-all.sh

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The test runner now sets QT_QPA_PLATFORMTHEME=generic before it runs the suites.

Changes

Test Environment

Layer / File(s) Summary
Set Qt platform theme
tests/run-all.sh
The runner exports QT_QPA_PLATFORMTHEME=generic before executing the suites.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: thisisgm

Merge Risk: ⚪ Minimal · up to 35a87

No actionable merge-blocking issue is established for this test-runner change. The full suite remains unrun, but that alone does not indicate a regression.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the change to use Qt’s generic platform theme for headless tests.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thisisgm
thisisgm merged commit 35a8767 into thisisgm:main Oct 6, 2026
1 check passed
thisisgm added a commit that referenced this pull request Oct 6, 2026
PR #253 (@nixfred) runs the headless suites on Qt's generic theme. Every
offscreen launch the stage added since names it too: 135 sites, none left.
advloop APPROVED r2 on the branch.
@thisisgm

thisisgm commented Oct 6, 2026

Copy link
Copy Markdown
Owner

offscreen suites inherited Omarchy's gtk3 theme and GTK exited with no display; merged as authored, and every offscreen suite now names the generic theme too (35a8767, 5e0a78b, v0.3.8). Thanks @nixfred! https://github.com/thisisgm/flea/releases/tag/v0.3.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants