ab oracle: declare the Highlight and SelectedItem system color differences (retail reads rgb(0, 120, 212))
This commit is contained in:
1 parent
05149cb8c8
commit
06cb753d9c
2 files changed
+280
-19
No files matched your search
@@ -744,6 +744,246 @@
|
||||
"published": 84.66666412353516,
|
||||
"candidate": 72.66666412353516,
|
||||
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
|
||||
},
|
||||
{
|
||||
"id": "linux-seed0-relaunch.surface.systemColors.Highlight",
|
||||
"os": "linux",
|
||||
"seed": 0,
|
||||
"dpr": 1.0,
|
||||
"leaf": "relaunch.surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed0-relaunch.surface.systemColors.SelectedItem",
|
||||
"os": "linux",
|
||||
"seed": 0,
|
||||
"dpr": 1.0,
|
||||
"leaf": "relaunch.surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed0-surface.systemColors.Highlight",
|
||||
"os": "linux",
|
||||
"seed": 0,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed0-surface.systemColors.SelectedItem",
|
||||
"os": "linux",
|
||||
"seed": 0,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed2-surface.systemColors.Highlight",
|
||||
"os": "linux",
|
||||
"seed": 2,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed2-surface.systemColors.SelectedItem",
|
||||
"os": "linux",
|
||||
"seed": 2,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed4-surface.systemColors.Highlight",
|
||||
"os": "linux",
|
||||
"seed": 4,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed4-surface.systemColors.SelectedItem",
|
||||
"os": "linux",
|
||||
"seed": 4,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed6-surface.systemColors.Highlight",
|
||||
"os": "linux",
|
||||
"seed": 6,
|
||||
"dpr": 1.25,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed6-surface.systemColors.SelectedItem",
|
||||
"os": "linux",
|
||||
"seed": 6,
|
||||
"dpr": 1.25,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed63-surface.systemColors.Highlight",
|
||||
"os": "linux",
|
||||
"seed": 63,
|
||||
"dpr": 1.5,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "linux-seed63-surface.systemColors.SelectedItem",
|
||||
"os": "linux",
|
||||
"seed": 63,
|
||||
"dpr": 1.5,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed0-relaunch.surface.systemColors.Highlight",
|
||||
"os": "windows",
|
||||
"seed": 0,
|
||||
"dpr": 1.0,
|
||||
"leaf": "relaunch.surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed0-relaunch.surface.systemColors.SelectedItem",
|
||||
"os": "windows",
|
||||
"seed": 0,
|
||||
"dpr": 1.0,
|
||||
"leaf": "relaunch.surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed0-surface.systemColors.Highlight",
|
||||
"os": "windows",
|
||||
"seed": 0,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed0-surface.systemColors.SelectedItem",
|
||||
"os": "windows",
|
||||
"seed": 0,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed2-surface.systemColors.Highlight",
|
||||
"os": "windows",
|
||||
"seed": 2,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed2-surface.systemColors.SelectedItem",
|
||||
"os": "windows",
|
||||
"seed": 2,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed4-surface.systemColors.Highlight",
|
||||
"os": "windows",
|
||||
"seed": 4,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed4-surface.systemColors.SelectedItem",
|
||||
"os": "windows",
|
||||
"seed": 4,
|
||||
"dpr": 1.0,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed6-surface.systemColors.Highlight",
|
||||
"os": "windows",
|
||||
"seed": 6,
|
||||
"dpr": 1.25,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed6-surface.systemColors.SelectedItem",
|
||||
"os": "windows",
|
||||
"seed": 6,
|
||||
"dpr": 1.25,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed63-surface.systemColors.Highlight",
|
||||
"os": "windows",
|
||||
"seed": 63,
|
||||
"dpr": 1.5,
|
||||
"leaf": "surface.systemColors.Highlight",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
},
|
||||
{
|
||||
"id": "windows-seed63-surface.systemColors.SelectedItem",
|
||||
"os": "windows",
|
||||
"seed": 63,
|
||||
"dpr": 1.5,
|
||||
"leaf": "surface.systemColors.SelectedItem",
|
||||
"published": "rgb(0, 120, 215)",
|
||||
"candidate": "rgb(0, 120, 212)",
|
||||
"reason": "Windows 11 24H2/25H2 GetSysColor(COLOR_HIGHLIGHT) is #0078D4 (nsLookAndFeel.cpp:188); retail Firefox 159 reads rgb(0, 120, 212) on build 26100 (RetailCaptures captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01, xul.dll fec21f3e…) and on client build 26200 (captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02, run 46828919060, xul.dll 204f37aa…); core #376 declared it; only build 20348 reads 215"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
"""The page oracle's declared differences (ci/ab-oracle-expected.json), judged against the run of the engine's final candidate (run 46227711139, Linux and Windows).
|
||||
"""The page oracle's declared differences (ci/ab-oracle-expected.json), judged against the runs of the engine's final candidate (run 46227711139 and candidate run 46792115974, Linux and Windows).
|
||||
|
||||
That run's A/B was red on 24 differences per system, all of them the bar of the main window above the content: seed 6 at 1.25 (106 device px as retail Firefox 159 measures it,
|
||||
the published engine's core said 107) and seed 63 at 1.5 (the compact density that retail picks by itself under 720 CSS px, 73 CSS px instead of the normal 85). The DIFF lines
|
||||
of that run are the data below, the same on both systems. The judge allows a difference only when a row of the file matches it exactly, is red on any other, red on a row that
|
||||
does not show (stale), and never applies the rows to the A/A.
|
||||
|
||||
The A/B of run 46792115974 was red on 12 more differences per system, the same on both: the system colors Highlight and SelectedItem, rgb(0, 120, 215) on the published engine
|
||||
and rgb(0, 120, 212) on the candidate, which is what retail Firefox 159 reads on Windows 11 builds 26100 and 26200.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -52,8 +55,22 @@ DIFF seed 63 dpr 1.5 leaf surface.visualViewport.height: firefox-70 587.33331298
|
||||
DIFF seed 63 dpr 1.5 leaf surface.window.innerHeight: firefox-70 587 | candidate 599
|
||||
DIFF seed 63 dpr 1.5 leaf surface.window.mozInnerScreenY: firefox-70 84.66666412353516 | candidate 72.66666412353516
|
||||
"""
|
||||
#: The 12 DIFF lines of the A/B of both systems in candidate run 46792115974 (identical on Linux and Windows), the ones left once the rows above were declared.
|
||||
COLORS = """DIFF seed 0 dpr 1.0 leaf relaunch.surface.systemColors.Highlight: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 0 dpr 1.0 leaf relaunch.surface.systemColors.SelectedItem: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 0 dpr 1.0 leaf surface.systemColors.Highlight: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 0 dpr 1.0 leaf surface.systemColors.SelectedItem: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 2 dpr 1.0 leaf surface.systemColors.Highlight: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 2 dpr 1.0 leaf surface.systemColors.SelectedItem: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 4 dpr 1.0 leaf surface.systemColors.Highlight: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 4 dpr 1.0 leaf surface.systemColors.SelectedItem: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 6 dpr 1.25 leaf surface.systemColors.Highlight: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 6 dpr 1.25 leaf surface.systemColors.SelectedItem: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 63 dpr 1.5 leaf surface.systemColors.Highlight: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
DIFF seed 63 dpr 1.5 leaf surface.systemColors.SelectedItem: firefox-70 "rgb(0, 120, 215)" | candidate "rgb(0, 120, 212)"
|
||||
"""
|
||||
_LINE = re.compile(r"^DIFF seed (\d+) dpr ([\d.]+) leaf (\S+): firefox-70 (.*) \| candidate (.*)$")
|
||||
DIFFS = [(int(m[1]), float(m[2]), m[3], json.loads(m[4]), json.loads(m[5])) for m in map(_LINE.match, TODAY.splitlines())]
|
||||
DIFFS = [(int(m[1]), float(m[2]), m[3], json.loads(m[4]), json.loads(m[5])) for m in map(_LINE.match, (TODAY + COLORS).splitlines())]
|
||||
|
||||
|
||||
def _put(items: dict, leaf: str, value) -> None:
|
||||
@@ -69,7 +86,7 @@ def _visit(seed: int, side: int | None) -> dict:
|
||||
engine, 1 the candidate)."""
|
||||
items = {"surface": {"navigator": {"hardwareConcurrency": 8, "language": "en-US"}, "screen": {"width": 1920, "height": 1080}}, "text": {"fonts": ["Arial", "Segoe UI"]}}
|
||||
for s, dpr, leaf, published, candidate in DIFFS:
|
||||
if s == seed:
|
||||
if s == seed and not leaf.startswith(gate.RELAUNCH): # a relaunch leaf is the second launch's copy of the first one's, made below
|
||||
_put(items, leaf, (published, candidate)[side])
|
||||
if seed == ab.RELAUNCH_SEED:
|
||||
items.update(copy.deepcopy(gate.relaunch_items(items)))
|
||||
@@ -97,31 +114,35 @@ def judge(published, candidate, os_name="linux", declared=None, expected=CANDIDA
|
||||
# Today's run, as data.
|
||||
|
||||
@pytest.mark.parametrize("os_name", ["linux", "windows"])
|
||||
def test_the_old_judge_is_red_on_the_24_differences_of_the_run_and_the_new_one_is_green_with_the_rows(os_name):
|
||||
def test_the_old_judge_is_red_on_the_36_differences_of_the_runs_and_the_new_one_is_green_with_the_rows(os_name):
|
||||
without = judge(dumps(0), dumps(1))
|
||||
assert without["verdict"] == "red" and len(without["differences"]) == 24
|
||||
assert without["verdict"] == "red" and len(without["differences"]) == 36
|
||||
assert {(d["seed"], d["dpr"], d["leaf"], json.dumps(d["a"]), json.dumps(d["b"])) for d in without["differences"]} == {(s, d, leaf, json.dumps(p), json.dumps(c)) for s, d, leaf, p, c in DIFFS}
|
||||
report = judge(dumps(0), dumps(1), os_name, declared=ab.load_expected(FILE))
|
||||
assert report["verdict"] == "green", report["problems"]
|
||||
assert len(report["declared"]) == 24 and report["differences"] == [] and report["stale"] == []
|
||||
assert len(report["declared"]) == 36 and report["differences"] == [] and report["stale"] == []
|
||||
|
||||
|
||||
def test_the_file_has_a_row_per_os_seed_and_leaf_of_the_run_with_its_two_values_and_exactly_the_keys():
|
||||
document = json.loads(FILE.read_text(encoding="utf-8"))
|
||||
assert document["format"] == "ab-oracle-expected/1"
|
||||
got = document["differences"]
|
||||
assert len(got) == 48
|
||||
assert len(got) == 72
|
||||
for row in got:
|
||||
assert sorted(row) == sorted(["id", "os", "seed", "dpr", "leaf", "published", "candidate", "reason"]), "no field that says who decided, nothing else"
|
||||
for os_name in ("linux", "windows"):
|
||||
assert sorted((r["seed"], r["dpr"], r["leaf"], json.dumps(r["published"]), json.dumps(r["candidate"])) for r in got if r["os"] == os_name) == \
|
||||
sorted((s, d, leaf, json.dumps(p), json.dumps(c)) for s, d, leaf, p, c in DIFFS)
|
||||
assert len({r["id"] for r in got}) == 48
|
||||
assert len({r["id"] for r in got}) == 72
|
||||
|
||||
|
||||
def test_every_row_says_the_retail_source_the_core_function_and_the_leaf():
|
||||
for row in ab.load_expected(FILE):
|
||||
reason = row["reason"]
|
||||
if "systemColors" in row["leaf"]:
|
||||
assert "nsLookAndFeel.cpp:188" in reason and "captures/firefox-159.0/windows-server-2025/syscolors/2026-12-01" in reason, row["id"]
|
||||
assert "captures/firefox-159.0/windows-11-arm/syscolors/2026-12-02" in reason and "46828919060" in reason and "only build 20348 reads 215" in reason, row["id"]
|
||||
continue
|
||||
assert "45672953042" in reason and "45679625406" in reason and "retail window-geometry capture workflow" in reason, row["id"]
|
||||
assert "window_frame.chrome_height_device" in reason and "This leaf: " in reason, row["id"]
|
||||
assert ("106 device px" in reason) if row["seed"] == 6 else ("720 CSS px" in reason and "gUIDensity" in reason and "compact" in reason), row["id"]
|
||||
@@ -143,7 +164,7 @@ def test_a_difference_that_no_row_covers_is_red_and_the_rows_stay_applied():
|
||||
candidate = dumps(1)
|
||||
candidate[(1.0, 2)]["surface"]["navigator"]["language"] = "it-IT"
|
||||
report = judge(dumps(0), candidate, declared=ab.load_expected(FILE))
|
||||
assert report["verdict"] == "red" and len(report["declared"]) == 24
|
||||
assert report["verdict"] == "red" and len(report["declared"]) == 36
|
||||
assert [(d["seed"], d["leaf"], d["a"], d["b"]) for d in report["differences"]] == [(2, "surface.navigator.language", "en-US", "it-IT")]
|
||||
assert report["problems"] == ["seed 2 dpr 1.0 surface.navigator.language: \"en-US\" vs \"it-IT\""]
|
||||
|
||||
@@ -166,22 +187,22 @@ def test_a_row_of_another_seed_dpr_or_os_does_not_cover_the_same_leaf():
|
||||
|
||||
def test_a_row_that_does_not_show_is_red_and_says_it_is_stale_and_to_remove_it():
|
||||
candidate = dumps(1)
|
||||
candidate[(1.5, 63)] = _visit(63, 0) # the candidate reads what the published engine reads at seed 63: its 24 - 15 rows are gone from the run
|
||||
candidate[(1.5, 63)] = _visit(63, 0) # the candidate reads what the published engine reads at seed 63: its 36 - 19 rows are gone from the run
|
||||
report = judge(dumps(0), candidate, declared=ab.load_expected(FILE))
|
||||
assert report["verdict"] == "red" and len(report["stale"]) == 15 and report["differences"] == []
|
||||
assert report["verdict"] == "red" and len(report["stale"]) == 17 and report["differences"] == []
|
||||
assert any("the declared difference 'linux-seed63-state.normal.innerHeight'" in p and "does not show in this run: it is stale, remove it" in p for p in report["problems"])
|
||||
|
||||
|
||||
def test_when_the_published_engine_is_the_candidate_s_own_work_every_row_is_stale():
|
||||
report = judge(dumps(1), dumps(1), declared=ab.load_expected(FILE))
|
||||
assert report["verdict"] == "red" and len(report["stale"]) == 24 and report["declared"] == [] and report["differences"] == []
|
||||
assert report["verdict"] == "red" and len(report["stale"]) == 36 and report["declared"] == [] and report["differences"] == []
|
||||
|
||||
|
||||
def test_a_row_of_a_visit_this_run_did_not_make_is_not_judged_here():
|
||||
only = ((1.0, 0),)
|
||||
report = judge({k: v for k, v in dumps(0).items() if k in only}, {k: v for k, v in dumps(1).items() if k in only}, declared=ab.load_expected(FILE), expected=only)
|
||||
assert report["verdict"] == "green", report["problems"]
|
||||
assert report["declared"] == [] and report["stale"] == []
|
||||
assert len(report["declared"]) == 4 and report["stale"] == [], "seed 0 at 1.0 has its four color rows (two leaves, two launches) and none of the bar rows of seeds 6 and 63"
|
||||
|
||||
|
||||
# -
|
||||
@@ -204,11 +225,11 @@ def test_the_rows_are_applied_to_the_a_b_from_the_files_and_never_to_the_a_a(tmp
|
||||
for leg in ("linux-x86_64", "win-x86_64"):
|
||||
rc, out = _run(tmp_path, capsys, "--leg", leg)
|
||||
assert rc == 0 and "AB ORACLE OK: 0 differences, 0 problems" in out
|
||||
assert out.count("DECLARED ") == 24 and "DIFF seed" not in out and "24 differences declared in ci/ab-oracle-expected.json" in out
|
||||
assert out.count("DECLARED ") == 36 and "DIFF seed" not in out and "36 differences declared in ci/ab-oracle-expected.json" in out
|
||||
rc, out = _run(tmp_path, capsys, "--a-a", "--leg", "linux-x86_64")
|
||||
report = json.loads((tmp_path / "diff-a-a.json").read_text(encoding="utf-8"))
|
||||
assert rc == 2 and report["declared"] == [] and report["stale"] == [] and len(report["differences"]) == 24, "the A/A is held to equality, whatever the file says"
|
||||
assert out.count("DIFF seed") == 24 and "DECLARED" not in out
|
||||
assert rc == 2 and report["declared"] == [] and report["stale"] == [] and len(report["differences"]) == 36, "the A/A is held to equality, whatever the file says"
|
||||
assert out.count("DIFF seed") == 36 and "DECLARED" not in out
|
||||
|
||||
|
||||
def test_the_a_b_from_the_files_is_red_on_the_old_command_line_data_without_the_rows_and_names_the_stale_one_with_them(tmp_path, monkeypatch, capsys):
|
||||
@@ -218,11 +239,11 @@ def test_the_a_b_from_the_files_is_red_on_the_old_command_line_data_without_the_
|
||||
_write(tmp_path, "dump-70.json", "firefox-70", dumps(0))
|
||||
_write(tmp_path, "dump-candidate.json", "candidate", dumps(1))
|
||||
rc, out = _run(tmp_path, capsys, "--leg", "linux-x86_64")
|
||||
assert rc == 1 and out.count("DIFF seed") == 24 and "AB ORACLE FAILED: 24 differences, 24 problems" in out
|
||||
assert rc == 1 and out.count("DIFF seed") == 36 and "AB ORACLE FAILED: 36 differences, 36 problems" in out
|
||||
monkeypatch.setattr(ab, "EXPECTED_FILE", FILE)
|
||||
_write(tmp_path, "dump-candidate.json", "candidate", dumps(0))
|
||||
rc, out = _run(tmp_path, capsys, "--leg", "win-x86_64")
|
||||
assert rc == 1 and out.count("is stale, remove it") == 24 and "FAIL the declared difference 'windows-seed6-state.normal.innerHeight'" in out
|
||||
assert rc == 1 and out.count("is stale, remove it") == 36 and "FAIL the declared difference 'windows-seed6-state.normal.innerHeight'" in out
|
||||
|
||||
|
||||
# -
|
||||
@@ -269,7 +290,7 @@ def test_a_run_applies_the_rows_of_its_leg_to_the_a_b_only_and_a_published_engin
|
||||
|
||||
monkeypatch.setattr(ab, "_dump_visits", fake([dumps(0), dumps(0), dumps(1)]))
|
||||
assert ab.run_ab("win-x86_64", tmp_path / "out", "firefox-70", ("pub", None), "cand", tmp_path / "s.json", list(CANDIDATE_SET)) == 0
|
||||
assert len(json.loads((tmp_path / "out" / "diff.json").read_text(encoding="utf-8"))["declared"]) == 24
|
||||
assert len(json.loads((tmp_path / "out" / "diff.json").read_text(encoding="utf-8"))["declared"]) == 36
|
||||
assert json.loads((tmp_path / "out" / "diff-a-a.json").read_text(encoding="utf-8"))["declared"] == []
|
||||
monkeypatch.setattr(ab, "_dump_visits", fake([dumps(0), dumps(1)])) # the published engine against itself reads what the candidate reads
|
||||
assert ab.run_ab("linux-x86_64", tmp_path / "out2", "firefox-70", ("pub", None), "cand", tmp_path / "s.json", list(CANDIDATE_SET)) == 2
|
||||
|
||||
Reference in new issue
Block a user