Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
ci: keep TESTING.md under its size cap; refresh structural-suites.tsv
garrytan7034f0074dfb
diff --git a/docs/TESTING.md b/docs/TESTING.mdindex 0e3321a5db..440aed3897 100644--- a/docs/TESTING.md+++ b/docs/TESTING.md@@ -1266,7 +1266,7 @@ there even though they pass on Linux and macOS.### CI vs local: intentionally divergent file sets-- **CI matrix** (`.github/workflows/test.yml`) runs `scripts/test-shard.sh` across 10 shards partitioned by weight-aware LPT bin-packing (`scripts/sharding.ts`; unweighted files get the p75 weight) and includes `*.slow.test.ts` files without a dedicated job, plus keyless-allowlisted `evals/**/*.test.ts` (`test/scripts/evals-collection.test.ts`). Shards keep planned file order (`test-shard.sh --dry-run-list <i> 10`) and print their predicted weight (`sharding.ts --sum`). Every Bun job activates the PGLite schema snapshot (built in-runner, cached across jobs; the runner's hash check is authoritative). Serial files run across four `serial-tests` workers via `bun run test:serial`; `verify` and the BrainBench memory-conformance gate (`scripts/ci-brainbench-gate.sh`, compared against `evals/brainbench/baselines/main.json`) have their own jobs, all aggregated by `test-status`. `e2e.yml` aggregates through `e2e-status`, with jsonb-parity gating Tier 2's token spend; scheduled runs also require the full-corpus lanes. Both aggregates reject failures, cancellations and unexpected skips, and successful test results are never reused. CI is the ground truth for "did everything pass."+- **CI matrix** (`.github/workflows/test.yml`) runs `scripts/test-shard.sh` across 10 shards split by weight-aware LPT bin-packing (`scripts/sharding.ts`; unweighted files get the p75 weight) and includes `*.slow.test.ts` files without a dedicated job, plus keyless-allowlisted `evals/**/*.test.ts` (`test/scripts/evals-collection.test.ts`). Shards keep planned file order (`test-shard.sh --dry-run-list <i> 10`) and print their predicted weight (`sharding.ts --sum`). Every Bun job activates the PGLite schema snapshot (built in-runner, cached across jobs; the runner's hash check is authoritative). Serial files run across four `serial-tests` workers via `bun run test:serial`; `verify` and the BrainBench memory-conformance gate (`scripts/ci-brainbench-gate.sh`, compared against `evals/brainbench/baselines/main.json`) have their own jobs, all aggregated by `test-status`. `e2e.yml` aggregates through `e2e-status`, with jsonb-parity gating Tier 2's token spend; scheduled runs also require the full-corpus lanes. Both aggregates reject failures, cancellations and unexpected skips, and successful test results are never reused. CI is the ground truth for "did everything pass."- **Local fast loop** (`scripts/run-unit-shard.sh` via the parallel wrapper) uses the same weighted partitioner as CI and EXCLUDES `*.slow.test.ts` AND `*.serial.test.ts`. Each shard runs its complete ordered selection with a fresh Bun process per file, without adding workers. Later groups still run after failures; missing summaries or file-completion evidence fail the shard. Local trades coverage for inner-loop speed; CI catches what local skips.`test/scripts/run-unit-shard.test.ts` pins what the local loop includes, anddiff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsvindex de8b934b60..d06a2467fd 100644--- a/scripts/structural-suites.tsv+++ b/scripts/structural-suites.tsv@@ -285,7 +285,7 @@ test/scripts/check-function-size.test.ts check-function-size.ts rules 11 readFiltest/scripts/chunk-visibility-ratchet.test.ts check-chunk-visibility.ts 6 readFileSynctest/scripts/ci-bounded-run.test.ts (file-level) 7 readFileSynctest/scripts/ci-executed-counts.test.ts CLI 2 readFileSync-test/scripts/ci-gates.test.ts CI execution evidence 6 readFileSync+test/scripts/ci-gates.test.ts CI execution evidence 7 readFileSynctest/scripts/ci-gates.test.ts test:full exit status 0 readFileSynctest/scripts/ci-hydrate-admin-dist.test.ts #6756 ci:local hydrates the admin/dist volume from the worktree 7 readFileSynctest/scripts/ci-local-rendering.test.ts ci-local command rendering 1 readFileSync