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 <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-22 20:37:45 -05:00
1 parent 8c95ae8bfb
commit 9a8677d5c2
4 files changed
+16 -4

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
## Environment ## Environment
- **Date**: 2026-09-23 - **Date**: 2026-09-22
- **Commit**: daf0fed - **Commit**: daf0fed
- **Node**: v22.22.2 - **Node**: v22.22.2
- **OS**: linux - **OS**: linux
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"env": { "env": {
"date": "2026-09-23", "date": "2026-09-22",
"commit": "daf0fed", "commit": "daf0fed",
"node": "v22.22.2", "node": "v22.22.2",
"os": "linux", "os": "linux",
+4 -1
View File
@@ -212,7 +212,10 @@ async function main(): Promise<void> {
const commit = execSync('git rev-parse --short HEAD').toString().trim(); const commit = execSync('git rev-parse --short HEAD').toString().trim();
const data: RenderData = { const data: RenderData = {
env: { 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, commit,
node: process.version, node: process.version,
os: os.platform(), os: os.platform(),
+10 -1
View File
@@ -1,5 +1,14 @@
{ {
"extends": "../tsconfig.json", "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": ["."] "include": ["."]
} }