Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Run the unit-shard timeout guard in the pull-request census job

garrytana481c170fb36
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8055b3b8d3..455ef3ae0e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,7 @@ identifiers and attribution are available in the pre-removal Git revision
- `test/e2e/codex-plugin-install-real.serial.test.ts`: the expected tool list now resolves publish gates the way `gbrain serve` does for the seeded brain over stdio. Wakeshift's `watch_job`, `list_watches` and `unwatch` (#8670) and `set_memory_writeback` (#8481) are listed only when their gate is on. Before this change the check failed every night from 2026-11-06 on; it now passes against codex 0.147.0, the version the workflow pins.
- `tests/heavy/fixtures/down-mutate-pre-v0.18.sql`: before dropping `pages.source_id`, the fixture drops every trigger that depends on that column. The first such trigger was the per-folder access stamp from #8134. The walk forward re-creates those triggers. `tests/heavy/pg_upgrade_matrix.sh` failed on the pre-v0.18 shape before this change and passes on both shapes after it.
- `scripts/bench/sync-freshness-gate.ts`: the Postgres managed serve-watch cell is now measured 3 times, and the gate uses the median of the three p50s, as the PGLite managed cell already did. The baseline and the 25% limit are unchanged. The cell's nightly p50 moves in steps of the 50 ms probe. Single runs at 656.5, 659.2 and 706.8 ms failed the 627 ms limit on 3 of 19 nightlies, and each passed when rerun on the same commit. A regression that slows every run still fails.
+- `scripts/ci-census-tests.sh`: the pull-request census job now also runs `test/scripts/run-unit-shard.test.ts` (1.5 s, no database). It reads every test file's per-test timeouts, so a bad timeout now fails the pull request instead of a later full run.
## [0.60.675.0] - 2026-11-11
diff --git a/scripts/ci-census-tests.sh b/scripts/ci-census-tests.sh
index 2cd1f32094..84c617c2aa 100755
--- a/scripts/ci-census-tests.sh
+++ b/scripts/ci-census-tests.sh
@@ -24,7 +24,7 @@ cd "$(dirname "$0")/.."
ENUMERATION='registry|inventory|catalog|coverage-ledger|operations-|behavior-change-notice|error-|exit-codes|fix-wave-5-integration|repair-explicit-only|cli-flag-validation|allowlist-drift|mcp-tool-defs|cli-flag-equals|remote-privacy-sweep|tool-catalog'
-WALKERS='test-reads-source-smell|canonical-migration-command|db-guard-coverage|env-trust-protected-keys|no-valid-until-write|page-row-deleters-guard|persistence-mode-reader-guard|query-embed-call-sites|readiness-advice-lint|refresh-barrier-state-audit|scripts/serial-files|write-refusals-coverage|scripts/ci-census-tests|chronicle-upgrade-notice-5876|cli-cold-start-registries|cli-exit-verdict-pin|cli-socket\.test|connector-kind-routing|cycle-date-consistency|doctor-default-budget-6803|generations-deprecated-fact-writers|persistence-pipeline-first|persistence-true-up-sites|pg-tls\.test|postgres-inflight-budget-6543|query-expansion-phrasing-guard|receipt-coverage\.test|remediation-command-resolution|git-env-guard|engine-surface-coverage'
+WALKERS='test-reads-source-smell|canonical-migration-command|db-guard-coverage|env-trust-protected-keys|no-valid-until-write|page-row-deleters-guard|persistence-mode-reader-guard|query-embed-call-sites|readiness-advice-lint|refresh-barrier-state-audit|scripts/serial-files|write-refusals-coverage|scripts/ci-census-tests|chronicle-upgrade-notice-5876|cli-cold-start-registries|cli-exit-verdict-pin|cli-socket\.test|connector-kind-routing|cycle-date-consistency|doctor-default-budget-6803|generations-deprecated-fact-writers|persistence-pipeline-first|persistence-true-up-sites|pg-tls\.test|postgres-inflight-budget-6543|query-expansion-phrasing-guard|receipt-coverage\.test|remediation-command-resolution|git-env-guard|engine-surface-coverage|run-unit-shard'
list() {
{
diff --git a/test/scripts/ci-census-tests.test.ts b/test/scripts/ci-census-tests.test.ts
index 3126464050..b916045943 100644
--- a/test/scripts/ci-census-tests.test.ts
+++ b/test/scripts/ci-census-tests.test.ts
@@ -31,6 +31,7 @@ describe('ci-census-tests.sh', () => {
'test/test-reads-source-smell.test.ts',
'test/cli-exit-verdict-pin.test.ts',
'test/git-env-guard.test.ts',
+ 'test/scripts/run-unit-shard.test.ts',
]) expect(files, file).toContain(file);
const structuralTag = ['test-reads-source', 'ok\\[structural\\]'].join('-');
const structural = spawnSync('git', ['grep', '-l', structuralTag, '--', 'test'], { cwd: root, encoding: 'utf8' }).stdout