Skip to content

test(ios): accept the glass-tinted play disc colour on iOS 26.2 - #526

Merged
Quick104 merged 1 commit into
mainfrom
t3code/fix-play-disc-test-threshold
Sep 27, 2026
Merged

Quick104 merged 1 commit into
mainfrom
t3code/fix-play-disc-test-threshold

Conversation

@Quick104

@Quick104 Quick104 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The Apple regression workflow has failed on main since #521, and on every PR opened after it. The iOS SiloTests job fails one test, PlayerSurfaceLayoutTests.testMobilePlayButtonIsLargeAndCentredOnThePlayer: every point inside the play disc reads as "not white".

The layout is correct. The CI snapshot from the failing run shows the disc centred on the player and 64pt across. The disc is a white-tinted glass effect, which blends in the backdrop. On the CI runtime (Xcode 26.3, iOS 26.2), it renders at RGB (215, 224, 234), and the test requires every channel to be above 215. Red misses by one.

Solution

Lower the disc check to above 180 on every channel. The background just outside the disc measures (34, 45, 58), so the test still fails if the disc is missing, too small, or off-centre. The helper's doc comment records the measured values.

Validation

  • Measured the disc and background pixels in the four testMobileControlsSnapshots attachments from the failing main run (36297232021). All four viewports give (215, 224, 234) inside the disc and (34, 45, 58) outside it.
  • PlayerSurfaceLayoutTests passes locally on an iOS 27 simulator (9 tests).
  • This PR's CI run covers iOS 26.2.

AI disclosure

Written with Claude Code (model claude-opus-5-5[1m]).

🤖 Generated with Claude Code

Note

Lower play-disc pixel threshold in PlayerSurfaceLayoutTests.isPlayDiscWhite for iOS 26.2

Updates the pixel-classification helper in PlayerSurfaceLayoutTests.swift to accept the glass-tinted play disc color observed on iOS 26.2. The per-channel threshold drops from 215 to 180, and the doc comment now describes the disc as a light, backdrop-blended fill.

Macroscope summarized 326ee98.

The play disc is a white-tinted glass effect, which blends in the
backdrop. On the CI runtime (iOS 26.2) it renders at (215, 224, 234),
one step under the test's > 215 check, so the Apple regression job has
failed since #521. The background measures (34, 45, 58); a threshold of
180 still separates the two.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 79397627-05ab-411f-b787-f22f9949fb8d

📥 Commits

Reviewing files that changed from the base of the PR and between 10a7732 and 326ee98.

📒 Files selected for processing (1)
  • iosApp/Tests/PlayerSurfaceLayoutTests.swift

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-27T15:12:41.407282Z 326ee98 PR opened
ℹ️ 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.

@Quick104
Quick104 merged commit 37dad98 into main Sep 27, 2026
5 checks passed
@Quick104
Quick104 deleted the t3code/fix-play-disc-test-threshold branch September 27, 2026 15: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