Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: drop the doctor golden day scrub; wave 13 PR4 #6452 fixes the fixture clock on master

garrytancdaeb34a1e11
diff --git a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
index 6d10112b63..b61e302876 100644
--- a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
@@ -2421,7 +2421,7 @@
"by_day": [
{
"count": 1,
- "day": "<volatile>"
+ "day": "2026-10-10"
}
],
"normalized_7d": 1,
@@ -5455,7 +5455,7 @@
"by_day": [
{
"count": 1,
- "day": "<volatile>"
+ "day": "2026-10-10"
}
],
"normalized_7d": 1,
diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
index 9804ee9325..b609cab564 100644
--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
@@ -2412,7 +2412,7 @@
"by_day": [
{
"count": 1,
- "day": "<volatile>"
+ "day": "2026-10-10"
}
],
"normalized_7d": 1,
@@ -5435,7 +5435,7 @@
"by_day": [
{
"count": 1,
- "day": "<volatile>"
+ "day": "2026-10-10"
}
],
"normalized_7d": 1,
diff --git a/test/helpers/doctor-json-golden.ts b/test/helpers/doctor-json-golden.ts
index 738b7b9a76..af71b375df 100644
--- a/test/helpers/doctor-json-golden.ts
+++ b/test/helpers/doctor-json-golden.ts
@@ -137,9 +137,7 @@ export function patchConfig(h: DoctorHome, patch: (cfg: Record<string, unknown>)
}
const UUID = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
-// `day` is a bare YYYY-MM-DD the fixture derives from its own created_at (lost_caller_writes trend);
-// ISO timestamps are scrubbed by text, a bare date is not, so a golden captured today would fail tomorrow.
-const VOLATILE_KEYS = /(^|_)(ms|pid|elapsed|duration|uptime)$|_ms$|^elapsed|^day$/i;
+const VOLATILE_KEYS = /(^|_)(ms|pid|elapsed|duration|uptime)$|_ms$|^elapsed/i;
export function normalizeDoctorText(text: string, roots: Record<string, string>, extra: Array<[RegExp | string, string]> = []): string {
let out = scrubPaths(text, roots);