Skip to content

Tests: allowlist the WebKitGTK legacy-compositor flag in the appearance coverage gate - #18655

Merged
danielhanchen merged 1 commit into
mainfrom
ci/appearance-allow-webkit-legacy-compositor
Nov 20, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/appearance-allow-webkit-legacy-compositor

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, studio) is red on main (seen on #18650, reproduced on current main):

FAILED tests/studio/test_appearance_coverage.py::test_every_appearance_setting_is_measured_or_allowlisted
AssertionError: <html> flag 'webkit-legacy-compositor' switches on costly CSS (index.css: html.tauri.render-linux.webkit-legacy-compositor[data-glass][data-chat-wallpaper-workspace-ready] [data-slot="sidebar-co...) but no gate mode measures it: map it in ROOT_FLAGS to the mode that sets it ..., or to 'allow: <reason>'

Cause

#18600 ("pinned sidebar glass haloes the logo on WebKitGTK before 2.54") adds the webkit-legacy-compositor class. main.tsx sets it only in the Linux desktop app on WebKitGTK older than 2.54, and the CSS under it works around TextureMapper blurring later layers into a backdrop-filter. The fix is right. The coverage gate requires every root flag that switches on costly CSS to be either measured by a gate mode or allowlisted with a reason, and this flag was not added.

Change

  • tests/studio/_appearance_coverage.py: webkit-legacy-compositor is allowlisted in ROOT_FLAGS ("WebKitGTK before 2.54 only (TextureMapper backdrop workaround); the Chromium gate cannot run it"). That is the same treatment as its WebKitGTK siblings data-glass-cpu and webkit-cpu-paint: the browser gate runs Chromium, which can never set this class.

Testing

  • tests/studio/test_appearance_coverage.py fails on main with the message above and passes with this change (5 passed).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T18:19:30.586468Z ab0ee9e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: ab0ee9e2b2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 51040dc into main Nov 20, 2026
@danielhanchen
danielhanchen deleted the ci/appearance-allow-webkit-legacy-compositor branch November 20, 2026 18:20
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.

1 participant