Skip to content

Long-chat gate coverage: measure forced motion now that Reduce motion is on by default - #17395

Merged
danielhanchen merged 1 commit into
mainfrom
test/appearance-measure-forced-motion
Nov 10, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
test/appearance-measure-forced-motion

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, studio) is red on main since #17377 merged:

tests/studio/test_appearance_coverage.py::test_every_appearance_setting_is_measured_or_allowlisted
E   AssertionError: appearance setting reduceMotion='off' is not measured: set it in CUSTOM_MEASURED or list ('reduceMotion', 'off') in ENUM_ALLOW with a reason

#17377 turned Reduce motion on by default. The coverage guard from #17262 requires every appearance value to be the default, measured by the long-chat gate, or allowlisted with a reason. Until #17377 the default was 'off' (forced motion), which every gate mode measured, so reduceMotion sat in CUSTOM_ALLOW on that basis. With the default now 'on', the costliest value, forced motion, is no longer measured anywhere. The guard is right and #17377 is right; the coverage table needs to follow the new default.

Changes

  • tests/studio/_appearance_coverage.py:
    • CUSTOM_MEASURED gets "reduceMotion": "off", so the +custom gate modes now run with forced motion, the setting's costliest value.
    • CUSTOM_EXPECT gets force-motion, the class the store puts on <html> for 'off', so a renamed key cannot silently measure nothing.
    • reduceMotion leaves CUSTOM_ALLOW, whose reason ("default 'off' is what every mode measures") is no longer true.

No product code changes; default modes keep measuring the new default.

Testing

  • tests/studio/test_appearance_coverage.py: 5 passed (fails on main as above).
  • test_area_matrix.py, test_webkit_leg.py, test_firefox_leg.py, test_appearance_coverage.py: 91 passed.
  • Not run here: the long-chat Playwright gate itself, where the +custom modes will now also check that force-motion reached <html>.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 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-10T12:36:55.210285Z 51c189c 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 51c189ca62

ℹ️ 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 baf518b into main Nov 10, 2026
@danielhanchen
danielhanchen deleted the test/appearance-measure-forced-motion branch November 10, 2026 12:40
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