test(tests): R4.3d browser proofs on the production build: app import baseline on the Rust path, CSP with and without the keyword, leak series, WebKit repetition

Same perimeter as the TS baseline (226 files, 3 engines, real Home page): 666/678 outcome
and message agreements, the 12 others the 4 declared files; W5 0 long tasks (TS 91 and
173 ms); 50 MiB file in WebKit 145/126 MiB against 324 with the worker read and 76 for the
TS. CSP: editor opens with the keyword, the engine message without, in 3 engines, the
worker's wasm-eval refusal reported by Chromium and Firefox. Leak series on the app:
Chromium ≤ 2 MiB per import after init, Firefox GC sawtooth reclaimed, WebKit grows with
same-tab navigations (control too) and levels off on one page; 20/20 WebKit workers closed.
This commit is contained in:
bchanot committed 2026-10-18 19:48:31 +02:00
1 parent 8ddf185aa6
commit 08f01ef363
17 files changed
+26759 -28

No files matched your search

+4 -4
View File
@@ -21,7 +21,7 @@ const FIXTURES = 'apps/app/tests/fixtures/'
const FR_DICT = join(REPO_ROOT, 'apps/app/src/i18n/fr.ts')
/** Plan §A.3: the only accepted outcome differences, by file slug. */
const DECLARED = {
export const DECLARED = {
'values-1m': 'OD-3 value cap: a token-dense attachment is refused',
'surrogate-content-overwritten':
'OD-4: overwritten duplicate with a lone surrogate → lone_surrogate',
@@ -54,7 +54,7 @@ const COPY_REFUSALS = [
const mb = (bytes) => (bytes === null ? '–' : (bytes / MiB).toFixed(1))
const ms = (value) => (value === null ? '–' : value.toFixed(0))
const shortFile = (file) => file.replace(FIXTURES, '')
const slugOf = (file) =>
export const slugOf = (file) =>
file
.split('/')
.pop()
@@ -67,7 +67,7 @@ function table(header, rows) {
}
/** French message text → its `home.import.*` key ({version} as a wildcard). */
async function messageKeys() {
export async function messageKeys() {
const { fr } = await import(pathToFileURL(FR_DICT).href)
const entries = Object.entries(fr).filter(([k]) =>
k.startsWith('home.import.error_'),
@@ -310,4 +310,4 @@ async function main() {
console.log(comparison(ts, rust, rows).join('\n\n'))
}
await main()
if (import.meta.url === pathToFileURL(process.argv[1]).href) await main()