fix: pin the compositor so a frame depends only on the commit (#424)

User-Visible: no
Issue: #424
This commit is contained in:
Codex
2026-09-02 21:59:43 +03:00
parent cfa5c7790f
commit 09c410000a
5 changed files with 113 additions and 8 deletions
+23
View File
@@ -933,6 +933,29 @@ const MUTANT_DEFINITIONS = [
replace: " this._persistDecorStyle();\n }, 0);",
}],
},
{
id: 'capture-allows-partial-raster',
guard: 'node --test test/capture-determinism-args.test.mjs',
because: 'partial raster reuses whatever the compositor drew before, so the frame '
+ 'depends on the history of the run — one or two of ten frames drifted between '
+ 'runs while three shots inside one process matched byte for byte (#424)',
patches: [{
file: 'demo/docs/browser-args.mjs',
find: " '--disable-partial-raster',\n",
replace: '',
}],
},
{
id: 'capture-draws-before-compositor-settles',
guard: 'node --test test/capture-determinism-args.test.mjs',
because: 'without running every compositor stage first the screenshot is taken '
+ 'mid-flight, and the remaining work lands differently on every run (#424)',
patches: [{
file: 'demo/docs/browser-args.mjs',
find: " '--run-all-compositor-stages-before-draw',\n",
replace: '',
}],
},
{
id: 'danger-confirm-back-into-the-branch',
guard: 'node demo/smoke_danger_confirm_branches.mjs',