Skip to content

[test] Make regression screenshot rasterization deterministic - #49208

Draft
Janpot wants to merge 1 commit into
mui:masterfrom
Janpot:test/deterministic-regression-raster
Draft

Janpot wants to merge 1 commit into
mui:masterfrom
Janpot:test/deterministic-regression-raster

Conversation

@Janpot

@Janpot Janpot commented Sep 24, 2026

Copy link
Copy Markdown
Member

Screenshots of text sometimes render with slightly different anti-aliasing between CI runs. The regression browser runs headful with CPU raster, and Skia picks SIMD code paths based on the host CPU, so a run on a different CircleCI host can change a few glyph edges. Master build 52568 (#44450, a docs-only change) auto-approved 5 such diffs, and every PR based on it then showed them as changed (for example #49204 and #49207).

This PR adds Chromium flags that keep rasterization independent of the host: --disable-skia-runtime-opts (the same flag Chromium's web tests use for this), plus --disable-lcd-text, --disable-font-subpixel-positioning, --force-color-profile=srgb and --disable-gpu.

Expect a one-time Argos diff across many screenshots that needs approval.

@code-infra-dashboard

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-49208--material-ui.netlify.app/
QR code for https://deploy-preview-49208--material-ui.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

This branch has not been deployed

No deployments
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