glass.spec: "switching tabs has no frame in between" fails under full-suite load #596

Closed
opened 2026-10-18 22:42:38 +00:00 by kayg · 3 comments
Owner

Fails in the last three full train runs (chromium-1440, 3 parallel shards): Settings showed is undefined. Passes alone 5/5. Investigating whether app or test.

Fails in the last three full train runs (chromium-1440, 3 parallel shards): `Settings showed` is undefined. Passes alone 5/5. Investigating whether app or test.
Author
Owner

Root cause: test timing, not an app bug. Evidence: the app showed no glassless frame under 6x CDP CPU throttling (20/20 pass on the old test) nor with throttling plus 12 CPU hogs (20/20). The failing runs' traces were already gone. The failure message (no Settings frame at all) fits fixed pauses (3s idle wait for Settings to build, 500ms per switch) ending before the other screen was drawn or a screencast frame delivered, on a host with 3 shards under software GL. Fix: wait for the built Settings layer, aria-selected, and a new screencast frame per switch. After: 20/20 normal, 20/20 with 6x throttle plus 12 hogs, on chromium-1440 (webkit-1440 skips this test by design).

Root cause: test timing, not an app bug. Evidence: the app showed no glassless frame under 6x CDP CPU throttling (20/20 pass on the old test) nor with throttling plus 12 CPU hogs (20/20). The failing runs' traces were already gone. The failure message (no Settings frame at all) fits fixed pauses (3s idle wait for Settings to build, 500ms per switch) ending before the other screen was drawn or a screencast frame delivered, on a host with 3 shards under software GL. Fix: wait for the built Settings layer, aria-selected, and a new screencast frame per switch. After: 20/20 normal, 20/20 with 6x throttle plus 12 hogs, on chromium-1440 (webkit-1440 skips this test by design).
Author
Owner

Correction: the first fix was not the cause. Reproduced by running the whole glass.spec.ts file with --repeat-each 3: the tab test failed in rounds 2 and 3, never in round 1. Frames were delivered and the screens did switch (luminance per frame '53 55 53 55 53'); the region's average brightness of Notes and Settings differed by only 2, under the test's threshold of 3, so Settings was never told apart from Notes. Cause: the backdrop photo differs per page load, and a pale one makes the two averages nearly equal. The test measured the wrong thing; the app is fine. Fix: compare the region pixel by pixel (mean absolute difference > 1.5) instead of the average. After: glass.spec.ts x20 under 12 CPU hogs: 100 of 100 pass, including 20 of 20 for this test.

Correction: the first fix was not the cause. Reproduced by running the whole glass.spec.ts file with --repeat-each 3: the tab test failed in rounds 2 and 3, never in round 1. Frames were delivered and the screens did switch (luminance per frame '53 55 53 55 53'); the region's average brightness of Notes and Settings differed by only 2, under the test's threshold of 3, so Settings was never told apart from Notes. Cause: the backdrop photo differs per page load, and a pale one makes the two averages nearly equal. The test measured the wrong thing; the app is fine. Fix: compare the region pixel by pixel (mean absolute difference > 1.5) instead of the average. After: glass.spec.ts x20 under 12 CPU hogs: 100 of 100 pass, including 20 of 20 for this test.
Author
Owner

Closing during the 26 Oct handover cleanup: The glass.spec fix landed in dev (PR #598).

Closing during the 26 Oct handover cleanup: The glass.spec fix landed in dev (PR #598).
kayg closed this issue 2026-10-26 08:46:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#596
No description provided.