Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Run the tests that read all of src in the pull-request census job
garrytancf741c48efa6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 707bc2d959..ab2a489409 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -21,6 +21,7 @@ identifiers and attribution are available in the pre-removal Git revision- `test/e2e/evidence-long-page.test.ts`: with provider keys in the environment, every search called the live reranker, whose scores for identical calls differ in the last digits, so the byte comparison failed. The file now runs keyless, as CI's Selected E2E runs it.- `test/e2e/source-retire-batched-postgres.test.ts` ran into its 180 s cap. It now retires 2,017 pages (four full batches and a partial one) instead of 60,000, and a statement trigger records every committed page delete. So each test asserts the batches themselves: their sizes, the per-batch bound and one transaction each. Removing the batch `LIMIT` fails the remove and purge tests. The file takes about 57 s.- `test/config-file-plane-keys.test.ts`, `test/consent.test.ts`: the memorable enable tests hung waiting for a `[y/N]` answer when stdin was a terminal. They now pin `process.stdin.isTTY` to false while the command runs, so they test the non-interactive refusal however the runner's stdin is set up.+- `scripts/ci-census-tests.sh`: the pull-request census job now runs 15 more tests that read every file under `src/` (or a whole `src/` subtree), such as `test/cli-exit-verdict-pin.test.ts`. Before, a change that broke one of them passed its pull-request checks and failed only in the full run. `test/scripts/ci-census-tests.test.ts` pins `cli-exit-verdict-pin` in the list.## [0.60.664.0] - 2026-11-11diff --git a/scripts/ci-census-tests.sh b/scripts/ci-census-tests.shindex 64d714e5b8..585fab6961 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'+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'list() {{diff --git a/test/scripts/ci-census-tests.test.ts b/test/scripts/ci-census-tests.test.tsindex 06b26356ab..bc31bc6efd 100644--- a/test/scripts/ci-census-tests.test.ts+++ b/test/scripts/ci-census-tests.test.ts@@ -29,6 +29,7 @@ describe('ci-census-tests.sh', () => {'test/remote-privacy-sweep.test.ts','test/persistence-consumer-idle.test.ts','test/test-reads-source-smell.test.ts',+ 'test/cli-exit-verdict-pin.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