From 9a8677d5c28146253420e6bd992e33c5c647a5b4 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Tue, 22 Sep 2026 20:37:45 -0500 Subject: [PATCH] fix(bench): date the run in project time, and let the harness typecheck again Two things the release run surfaced, neither of them visible from CI. `npm run typecheck:bench` has been failing since serveDeno and serveBun became async: the bench servers gained a top-level await, which `module: commonjs` rejects outright, and bench/tsconfig.json inherited commonjs from the root config it extends. The servers are ES modules run by tsx, Deno and Bun and never by the CommonJS build, so the config was describing the wrong thing even before the await arrived. CI runs `typecheck`, not `typecheck:bench`, which is why a break in the harness waited for someone to run it by hand. The date came from the runner's clock through toISOString, which is UTC. The table was measured on the evening of the 22nd over ssh against a box keeping UTC and dated itself the 23rd, a day ahead of the commit and of the changelog entry it sits beside. It now reads project time. tsx transpiles with this tsconfig too, so the module change was verified by running the smoke pass again on that box: all six frameworks, the secure run and all three runtimes still boot, and the regenerated header reads 2026-09-22. Signed-off-by: Diego Resendez --- BENCHMARKS.md | 2 +- bench/results.json | 2 +- bench/run.ts | 5 ++++- bench/tsconfig.json | 11 ++++++++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/BENCHMARKS.md b/BENCHMARKS.md index 65d14b4..115e00c 100644 --- a/BENCHMARKS.md +++ b/BENCHMARKS.md @@ -4,7 +4,7 @@ ## Environment -- **Date**: 2026-09-23 +- **Date**: 2026-09-22 - **Commit**: daf0fed - **Node**: v22.22.2 - **OS**: linux diff --git a/bench/results.json b/bench/results.json index 87368b8..cba5976 100644 --- a/bench/results.json +++ b/bench/results.json @@ -1,6 +1,6 @@ { "env": { - "date": "2026-09-23", + "date": "2026-09-22", "commit": "daf0fed", "node": "v22.22.2", "os": "linux", diff --git a/bench/run.ts b/bench/run.ts index d913849..9255d8d 100644 --- a/bench/run.ts +++ b/bench/run.ts @@ -212,7 +212,10 @@ async function main(): Promise { const commit = execSync('git rev-parse --short HEAD').toString().trim(); const data: RenderData = { env: { - date: new Date().toISOString().slice(0, 10), + // Project time, not the runner's. A benchmark is often driven over ssh against a box that + // keeps UTC, and a run made on the evening of the 22nd then dates itself the 23rd — which + // reads as a day of drift against the commit and the changelog entry beside it. + date: new Date().toLocaleDateString('en-CA', { timeZone: 'America/Chicago' }), commit, node: process.version, os: os.platform(), diff --git a/bench/tsconfig.json b/bench/tsconfig.json index 09614f5..ce8d75c 100644 --- a/bench/tsconfig.json +++ b/bench/tsconfig.json @@ -1,5 +1,14 @@ { "extends": "../tsconfig.json", - "compilerOptions": { "experimentalDecorators": true, "emitDecoratorMetadata": true, "noEmit": true }, + "compilerOptions": { + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "noEmit": true, + // The bench servers are ES modules, run by tsx, Deno and Bun rather than by the CommonJS build + // the root config describes. `serveDeno`/`serveBun` became async in 26.9.0-beta.2, so two of + // them now open with a top-level `await`, which `module: commonjs` rejects outright. + "module": "es2022", + "moduleResolution": "bundler" + }, "include": ["."] }