diff --git a/scripts/browser/README.md b/scripts/browser/README.md index 96566e65..6251b125 100644 --- a/scripts/browser/README.md +++ b/scripts/browser/README.md @@ -39,7 +39,7 @@ series and the WebKit repetition through the real Home page. development machine: ```bash - export PLAYWRIGHT_NODE_MODULES=/home/bchanot/.local/lib/node_modules/gsd-pi/node_modules + export PLAYWRIGHT_NODE_MODULES=$HOME/.local/lib/node_modules/gsd-pi/node_modules ``` (playwright-core 1.64.0: Chromium headless shell 156, Firefox 157, diff --git a/scripts/browser/lib/app-build.mjs b/scripts/browser/lib/app-build.mjs index 6dcd14df..9a34a27f 100644 --- a/scripts/browser/lib/app-build.mjs +++ b/scripts/browser/lib/app-build.mjs @@ -1,8 +1,8 @@ import { execFileSync } from 'node:child_process' import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs' -import { join } from 'node:path' +import { join, sep } from 'node:path' import { sha256 } from './inputs.mjs' -import { DIST_DIR, REPO_ROOT } from './paths.mjs' +import { DIST_DIR, REPO_ROOT, relativeToRepo } from './paths.mjs' /** * The harness measures a production build that embeds the reference sheet. @@ -29,6 +29,13 @@ function assetSize(pattern) { } } +// Results are committed: name the build by its place in the repository, +// never by the machine's absolute path (it carries the user's home). +function reportedDistDir() { + if (DIST_DIR.startsWith(REPO_ROOT + sep)) return relativeToRepo(DIST_DIR) + return '' +} + function headCommit() { try { const args = ['-C', REPO_ROOT, 'rev-parse', '--short', 'HEAD'] @@ -48,7 +55,7 @@ export function checkBuild() { throw new Error(`the build carries no sheet: run ${BUILD_COMMAND}`) } return { - distDir: DIST_DIR, + distDir: reportedDistDir(), builtAt: statSync(index).mtime.toISOString(), sheetChunk: sheet, entryChunk: assetSize(/^index-.*\.js$/), diff --git a/scripts/browser/results/2026-10-19-r4-export-series-chromium-12.json b/scripts/browser/results/2026-10-19-r4-export-series-chromium-12.json index 61121c77..e9029582 100644 --- a/scripts/browser/results/2026-10-19-r4-export-series-chromium-12.json +++ b/scripts/browser/results/2026-10-19-r4-export-series-chromium-12.json @@ -20,7 +20,7 @@ "node": "v24.21.0" }, "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-18T23:42:35.418Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-19-r4-export-series.json b/scripts/browser/results/2026-10-19-r4-export-series.json index 2a14c05d..a0e720ee 100644 --- a/scripts/browser/results/2026-10-19-r4-export-series.json +++ b/scripts/browser/results/2026-10-19-r4-export-series.json @@ -20,7 +20,7 @@ "node": "v24.21.0" }, "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-18T23:42:35.418Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-19-r4-export.json b/scripts/browser/results/2026-10-19-r4-export.json index eaae0550..3dd71656 100644 --- a/scripts/browser/results/2026-10-19-r4-export.json +++ b/scripts/browser/results/2026-10-19-r4-export.json @@ -19,7 +19,7 @@ "memAvailableBytesAtEnd": 11119755264 }, "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-18T23:42:35.418Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-19-ts-export-series-chromium.json b/scripts/browser/results/2026-10-19-ts-export-series-chromium.json index 89e08a46..5dc63856 100644 --- a/scripts/browser/results/2026-10-19-ts-export-series-chromium.json +++ b/scripts/browser/results/2026-10-19-ts-export-series-chromium.json @@ -20,7 +20,7 @@ "node": "v24.21.0" }, "build": { - "distDir": "/tmp/claude-1000/-home-bchanot-Documents-faunosteo/3e2be376-ff6d-4b98-9726-e0a97897477f/scratchpad/ts-build/apps/app/dist", + "distDir": "/ts-build/apps/app/dist", "builtAt": "2026-10-18T23:31:21.799Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-19-ts-export.json b/scripts/browser/results/2026-10-19-ts-export.json index 6a167e18..73f7741c 100644 --- a/scripts/browser/results/2026-10-19-ts-export.json +++ b/scripts/browser/results/2026-10-19-ts-export.json @@ -19,7 +19,7 @@ "memAvailableBytesAtEnd": 11089321984 }, "build": { - "distDir": "/tmp/claude-1000/-home-bchanot-Documents-faunosteo/3e2be376-ff6d-4b98-9726-e0a97897477f/scratchpad/ts-build/apps/app/dist", + "distDir": "/ts-build/apps/app/dist", "builtAt": "2026-10-18T23:31:21.799Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-20-r4-memory-bench-chromium-L16-export.json b/scripts/browser/results/2026-10-20-r4-memory-bench-chromium-L16-export.json index 38467206..87c4115d 100644 --- a/scripts/browser/results/2026-10-20-r4-memory-bench-chromium-L16-export.json +++ b/scripts/browser/results/2026-10-20-r4-memory-bench-chromium-L16-export.json @@ -19,7 +19,7 @@ "node": "v24.21.0" }, "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-20T18:40:23.561Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-20-r4-memory-bench-chromium-L16-raster.json b/scripts/browser/results/2026-10-20-r4-memory-bench-chromium-L16-raster.json index f77b8f86..74546f5d 100644 --- a/scripts/browser/results/2026-10-20-r4-memory-bench-chromium-L16-raster.json +++ b/scripts/browser/results/2026-10-20-r4-memory-bench-chromium-L16-raster.json @@ -19,7 +19,7 @@ "node": "v24.21.0" }, "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-20T18:40:23.561Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-20-r4-memory-bench.json b/scripts/browser/results/2026-10-20-r4-memory-bench.json index 8179572e..2f3b5235 100644 --- a/scripts/browser/results/2026-10-20-r4-memory-bench.json +++ b/scripts/browser/results/2026-10-20-r4-memory-bench.json @@ -19,7 +19,7 @@ "node": "v24.21.0" }, "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-20T18:40:23.561Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-20-r4-offline-import.json b/scripts/browser/results/2026-10-20-r4-offline-import.json index a505c821..b4bea8f1 100644 --- a/scripts/browser/results/2026-10-20-r4-offline-import.json +++ b/scripts/browser/results/2026-10-20-r4-offline-import.json @@ -2,7 +2,7 @@ "date": "2026-10-20", "playwright": "1.64.0", "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-20T20:25:44.011Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-21-r4-csp.json b/scripts/browser/results/2026-10-21-r4-csp.json index 92356d94..738d18d9 100644 --- a/scripts/browser/results/2026-10-21-r4-csp.json +++ b/scripts/browser/results/2026-10-21-r4-csp.json @@ -19,7 +19,7 @@ "memAvailableBytesAtEnd": 10259890176 }, "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-21T13:42:57.103Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js", diff --git a/scripts/browser/results/2026-10-21-r4-offline-import.json b/scripts/browser/results/2026-10-21-r4-offline-import.json index 584a9fca..921f9ef2 100644 --- a/scripts/browser/results/2026-10-21-r4-offline-import.json +++ b/scripts/browser/results/2026-10-21-r4-offline-import.json @@ -2,7 +2,7 @@ "date": "2026-10-21", "playwright": "1.64.0", "build": { - "distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist", + "distDir": "apps/app/dist", "builtAt": "2026-10-21T13:42:57.103Z", "sheetChunk": { "name": "_virtual_faunosteo-sheet-vxifkiH_.js",