test(tests): R4.1e browser harness and TS baselines (Chromium, Firefox, WebKit)

Playwright harness under scripts/browser: 127.0.0.1 server with the DEPLOY
CSP, export and import baselines of the TypeScript engine under a 4 GiB RSS
watchdog (not a guaranteed memory limit), O9 browser columns in
inflate.browsers.json (26 rows agree with Node in all three engines).
Results of 2026-10-18 committed; the O9 Node test no longer expects browser
columns in inflate.json.
This commit is contained in:
bchanot committed 2026-10-18 15:05:28 +02:00
1 parent 4bdfda59ba
commit 4439fd2420
23 files changed
+20903 -18

No files matched your search

@@ -0,0 +1,414 @@
{
"oracle": "O9 browser columns",
"source": "crates/core/tests/oracles/r4/inflate.json",
"harness": "scripts/browser/inflate-verdicts.mjs",
"function": "inflateFlate(bytes, limit) of packages/pdf/src/attachment/inflate.ts, run in each engine on the file bytes",
"page": "Home of the build served by serve.mjs (DEPLOY.md CSP)",
"watchdog": {
"ceilingBytes": 4294967296,
"sampleIntervalMs": 50,
"measure": "summed VmRSS (/proc/<pid>/status) of the browser process tree; content = renderer / Web Content / WPEWebProcess processes only",
"onCeiling": "SIGKILL of the tree, run recorded as stopped_by_ceiling",
"caveat": "The 4 GiB RSS watchdog is not a guaranteed memory limit: it samples every 50 ms, so a faster allocation can overshoot it before the kill; summed VmRSS counts shared pages once per process; a process outside the browser's tree is not seen."
},
"engines": {
"node": {
"version": "v24.21.0",
"zlib": "1.3.2.1-motley-8002e91"
},
"chromium": {
"version": "156.0.8078.4"
},
"firefox": {
"version": "157.0"
},
"webkit": {
"version": "27.2"
}
},
"rows": [
{
"file": "valid-noise-64kib.bin",
"case": "valid zlib stream, default cap",
"limit": 16777216,
"verdicts": {
"node": {
"length": 65536,
"sha256": "64265a3bb340bdab805c8bf11283bfd195100761700ce69064f2823dbd079819"
},
"chromium": {
"length": 65536,
"sha256": "64265a3bb340bdab805c8bf11283bfd195100761700ce69064f2823dbd079819"
},
"firefox": {
"length": 65536,
"sha256": "64265a3bb340bdab805c8bf11283bfd195100761700ce69064f2823dbd079819"
},
"webkit": {
"length": 65536,
"sha256": "64265a3bb340bdab805c8bf11283bfd195100761700ce69064f2823dbd079819"
}
}
},
{
"file": "valid-noise-64kib.bin",
"case": "output exactly at the limit",
"limit": 65536,
"verdicts": {
"node": {
"length": 65536,
"sha256": "64265a3bb340bdab805c8bf11283bfd195100761700ce69064f2823dbd079819"
},
"chromium": {
"length": 65536,
"sha256": "64265a3bb340bdab805c8bf11283bfd195100761700ce69064f2823dbd079819"
},
"firefox": {
"length": 65536,
"sha256": "64265a3bb340bdab805c8bf11283bfd195100761700ce69064f2823dbd079819"
},
"webkit": {
"length": 65536,
"sha256": "64265a3bb340bdab805c8bf11283bfd195100761700ce69064f2823dbd079819"
}
}
},
{
"file": "valid-noise-64kib.bin",
"case": "output one byte over the limit",
"limit": 65535,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "valid-json.bin",
"case": "valid zlib stream, small JSON",
"limit": 16777216,
"verdicts": {
"node": {
"length": 37,
"sha256": "ec4dd986156adf0e3c47f3d80718a2f56302b837fcea53dff3bf0f231058d396"
},
"chromium": {
"length": 37,
"sha256": "ec4dd986156adf0e3c47f3d80718a2f56302b837fcea53dff3bf0f231058d396"
},
"firefox": {
"length": 37,
"sha256": "ec4dd986156adf0e3c47f3d80718a2f56302b837fcea53dff3bf0f231058d396"
},
"webkit": {
"length": 37,
"sha256": "ec4dd986156adf0e3c47f3d80718a2f56302b837fcea53dff3bf0f231058d396"
}
}
},
{
"file": "empty-input.bin",
"case": "empty input (0 bytes)",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "empty-zlib-stream.bin",
"case": "empty zlib stream (no output)",
"limit": 16777216,
"verdicts": {
"node": {
"length": 0,
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"chromium": {
"length": 0,
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"firefox": {
"length": 0,
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"webkit": {
"length": 0,
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
}
},
{
"file": "truncated.bin",
"case": "truncated stream (first 2 KiB of a 4 KiB noise stream)",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "truncated-header-only.bin",
"case": "the 2-byte zlib header alone",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "missing-adler.bin",
"case": "complete deflate data, Adler-32 missing",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "partial-adler.bin",
"case": "complete deflate data, 2 of the 4 Adler-32 bytes",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "bad-adler.bin",
"case": "bad Adler-32 (last byte flipped)",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "trailing-bytes.bin",
"case": "trailing bytes after the stream end",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "trailing-zero-byte.bin",
"case": "one 0x00 byte after the stream end",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "two-streams.bin",
"case": "two complete zlib streams back to back",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "raw-deflate.bin",
"case": "raw deflate without zlib header",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "gzip.bin",
"case": "gzip header and trailer",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "preset-dictionary.bin",
"case": "preset dictionary flag (FDICT) set",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "bad-header-check.bin",
"case": "zlib header whose FCHECK fails",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "small-window.bin",
"case": "window size below 32 KiB (CINFO 1, windowBits 9)",
"limit": 16777216,
"verdicts": {
"node": {
"length": 37,
"sha256": "ec4dd986156adf0e3c47f3d80718a2f56302b837fcea53dff3bf0f231058d396"
},
"chromium": {
"length": 37,
"sha256": "ec4dd986156adf0e3c47f3d80718a2f56302b837fcea53dff3bf0f231058d396"
},
"firefox": {
"length": 37,
"sha256": "ec4dd986156adf0e3c47f3d80718a2f56302b837fcea53dff3bf0f231058d396"
},
"webkit": {
"length": 37,
"sha256": "ec4dd986156adf0e3c47f3d80718a2f56302b837fcea53dff3bf0f231058d396"
}
}
},
{
"file": "stored-blocks.bin",
"case": "stored blocks: two non-final ones (one empty), then a final one",
"limit": 16777216,
"verdicts": {
"node": {
"length": 8,
"sha256": "9c56cc51b374c3ba189210d5b6d4bf57790d351c96c47c02190ecf1e430635ab"
},
"chromium": {
"length": 8,
"sha256": "9c56cc51b374c3ba189210d5b6d4bf57790d351c96c47c02190ecf1e430635ab"
},
"firefox": {
"length": 8,
"sha256": "9c56cc51b374c3ba189210d5b6d4bf57790d351c96c47c02190ecf1e430635ab"
},
"webkit": {
"length": 8,
"sha256": "9c56cc51b374c3ba189210d5b6d4bf57790d351c96c47c02190ecf1e430635ab"
}
}
},
{
"file": "stored-bad-nlen.bin",
"case": "stored block whose NLEN is not the complement of LEN",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "multiple-blocks.bin",
"case": "several compressed blocks separated by full flushes",
"limit": 16777216,
"verdicts": {
"node": {
"length": 334,
"sha256": "f5d7c051797254d52e80088055482e0d69e9ca1d4a6ff1223aa7b5b16a813770"
},
"chromium": {
"length": 334,
"sha256": "f5d7c051797254d52e80088055482e0d69e9ca1d4a6ff1223aa7b5b16a813770"
},
"firefox": {
"length": 334,
"sha256": "f5d7c051797254d52e80088055482e0d69e9ca1d4a6ff1223aa7b5b16a813770"
},
"webkit": {
"length": 334,
"sha256": "f5d7c051797254d52e80088055482e0d69e9ca1d4a6ff1223aa7b5b16a813770"
}
}
},
{
"file": "corrupt-body.bin",
"case": "corrupt body (every byte after the ninth flipped)",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "not-deflate.bin",
"case": "not deflate at all (JSON text)",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
},
{
"file": "output-exactly-16mib.bin",
"case": "output of exactly 16 MiB (the default cap)",
"limit": 16777216,
"verdicts": {
"node": {
"length": 16777216,
"sha256": "080acf35a507ac9849cfcba47dc2ad83e01b75663a516279c8b9d243b719643e"
},
"chromium": {
"length": 16777216,
"sha256": "080acf35a507ac9849cfcba47dc2ad83e01b75663a516279c8b9d243b719643e"
},
"firefox": {
"length": 16777216,
"sha256": "080acf35a507ac9849cfcba47dc2ad83e01b75663a516279c8b9d243b719643e"
},
"webkit": {
"length": 16777216,
"sha256": "080acf35a507ac9849cfcba47dc2ad83e01b75663a516279c8b9d243b719643e"
}
}
},
{
"file": "bomb-16mib-plus-1.bin",
"case": "output of 16 MiB + 1 (one byte over the default cap)",
"limit": 16777216,
"verdicts": {
"node": null,
"chromium": null,
"firefox": null,
"webkit": null
}
}
],
"disagreements": []
}