fix(tests): harness results name the build relative to the repository; absolute local paths redacted from committed results
This commit is contained in:
1 parent
5b255e9857
commit
3ed8ebb79f
13 files changed
+22
-15
No files matched your search
@@ -39,7 +39,7 @@ series and the WebKit repetition through the real Home page.
|
|||||||
development machine:
|
development machine:
|
||||||
|
|
||||||
```bash
|
```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,
|
(playwright-core 1.64.0: Chromium headless shell 156, Firefox 157,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { execFileSync } from 'node:child_process'
|
import { execFileSync } from 'node:child_process'
|
||||||
import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs'
|
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 { 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.
|
* 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 '<FAUNOSTEO_DIST, outside the repository>'
|
||||||
|
}
|
||||||
|
|
||||||
function headCommit() {
|
function headCommit() {
|
||||||
try {
|
try {
|
||||||
const args = ['-C', REPO_ROOT, 'rev-parse', '--short', 'HEAD']
|
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}`)
|
throw new Error(`the build carries no sheet: run ${BUILD_COMMAND}`)
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
distDir: DIST_DIR,
|
distDir: reportedDistDir(),
|
||||||
builtAt: statSync(index).mtime.toISOString(),
|
builtAt: statSync(index).mtime.toISOString(),
|
||||||
sheetChunk: sheet,
|
sheetChunk: sheet,
|
||||||
entryChunk: assetSize(/^index-.*\.js$/),
|
entryChunk: assetSize(/^index-.*\.js$/),
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"node": "v24.21.0"
|
"node": "v24.21.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-18T23:42:35.418Z",
|
"builtAt": "2026-10-18T23:42:35.418Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"node": "v24.21.0"
|
"node": "v24.21.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-18T23:42:35.418Z",
|
"builtAt": "2026-10-18T23:42:35.418Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"memAvailableBytesAtEnd": 11119755264
|
"memAvailableBytesAtEnd": 11119755264
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-18T23:42:35.418Z",
|
"builtAt": "2026-10-18T23:42:35.418Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"node": "v24.21.0"
|
"node": "v24.21.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/tmp/claude-1000/-home-bchanot-Documents-faunosteo/3e2be376-ff6d-4b98-9726-e0a97897477f/scratchpad/ts-build/apps/app/dist",
|
"distDir": "<session scratchpad>/ts-build/apps/app/dist",
|
||||||
"builtAt": "2026-10-18T23:31:21.799Z",
|
"builtAt": "2026-10-18T23:31:21.799Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"memAvailableBytesAtEnd": 11089321984
|
"memAvailableBytesAtEnd": 11089321984
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/tmp/claude-1000/-home-bchanot-Documents-faunosteo/3e2be376-ff6d-4b98-9726-e0a97897477f/scratchpad/ts-build/apps/app/dist",
|
"distDir": "<session scratchpad>/ts-build/apps/app/dist",
|
||||||
"builtAt": "2026-10-18T23:31:21.799Z",
|
"builtAt": "2026-10-18T23:31:21.799Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"node": "v24.21.0"
|
"node": "v24.21.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-20T18:40:23.561Z",
|
"builtAt": "2026-10-20T18:40:23.561Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"node": "v24.21.0"
|
"node": "v24.21.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-20T18:40:23.561Z",
|
"builtAt": "2026-10-20T18:40:23.561Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"node": "v24.21.0"
|
"node": "v24.21.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-20T18:40:23.561Z",
|
"builtAt": "2026-10-20T18:40:23.561Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"date": "2026-10-20",
|
"date": "2026-10-20",
|
||||||
"playwright": "1.64.0",
|
"playwright": "1.64.0",
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-20T20:25:44.011Z",
|
"builtAt": "2026-10-20T20:25:44.011Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"memAvailableBytesAtEnd": 10259890176
|
"memAvailableBytesAtEnd": 10259890176
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-21T13:42:57.103Z",
|
"builtAt": "2026-10-21T13:42:57.103Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"date": "2026-10-21",
|
"date": "2026-10-21",
|
||||||
"playwright": "1.64.0",
|
"playwright": "1.64.0",
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "/home/bchanot/Documents/faunosteo/apps/app/dist",
|
"distDir": "apps/app/dist",
|
||||||
"builtAt": "2026-10-21T13:42:57.103Z",
|
"builtAt": "2026-10-21T13:42:57.103Z",
|
||||||
"sheetChunk": {
|
"sheetChunk": {
|
||||||
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
"name": "_virtual_faunosteo-sheet-vxifkiH_.js",
|
||||||
|
|||||||
Reference in new issue
Block a user