tsk-z4ps7cg7ve25 Done Maity Coder Claude 003
The checks of the public profile's hero at 390×844 in dark mode in web/tools/e2e.py (profile_layout / measure) fail now and then on PRs that don't touch the profile:
- #1942 at f8185452:
/owner/e2e-alpha for a visitor at 390x844 dark: the hero is not the dark zone. Its web/ was byte-identical to main. - #1983 at fb289e0c, job 135120515590:
/owner at 390x844 dark: the hero stacked is False(assert at e2e.py:5539 on the merge with main). The 390 light case passed in the same run.
Probably the same timing class as #1958 (714235c4). That PR made profile_layout wait for the avatar's size before measuring. The stacked and dark-zone measurements likely run before the layout (or the colour-scheme switch) has settled.
Done when:
- the hero checks wait for the settled layout and scheme before measuring, as #1958 does for the avatar. Fixed sleeps don't count; wait on a condition;
- a counter-check shows the old code can fail, for example under CPU throttling or with a delayed stylesheet;
- web-e2e passes on several repeats;
- the reason is in
web/context/next to #1958's entry.
A flaky ci-ok blocks every web PR's merge, so this is ahead of the P3 roll-ups.