Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

ci(persistence-validation): five PostgreSQL-arm shards with weights mined from this PR's arm logs

garrytana20a31579a76
diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.yml
index c1bda7d1c7..fc60c599b7 100644
--- a/.github/workflows/persistence-validation.yml
+++ b/.github/workflows/persistence-validation.yml
@@ -177,17 +177,17 @@ jobs:
# unit lane). The list is test/postgres-unit-arms.txt;
# scripts/check-postgres-lane-coverage.ts fails a new DATABASE_URL-gated arm
# until it is listed there or wrapped in a test/e2e registerPostgresTests
- # file. The three shards are balanced by measured runtime
+ # file. The five shards are balanced by measured runtime
# (scripts/postgres-arm-weights.json), sized so each shard's p95 test time
# stays inside the step's 20 minutes on a runner up to 2x slower.
unit-postgres-arms:
- name: Unit-lane PostgreSQL arms ${{ matrix.shard }}/3 / Bun ${{ matrix.bun }}
+ name: Unit-lane PostgreSQL arms ${{ matrix.shard }}/5 / Bun ${{ matrix.bun }}
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
- shard: [1, 2, 3]
+ shard: [1, 2, 3, 4, 5]
bun: ['1.4.0', '1.4.3']
# Event parity: every event, pull requests and merge-queue runs
# included, runs both supported Bun versions (docs/TESTING.md#event-parity).
@@ -228,11 +228,11 @@ jobs:
receipts_init pg-arms || exit 2
# The list lives in test/postgres-unit-arms.txt (one path per line);
# shards balance by measured runtime (scripts/postgres-arm-weights.json).
- selected=$(bun scripts/postgres-unit-arms.ts shard "$SHARD" 3)
+ selected=$(bun scripts/postgres-unit-arms.ts shard "$SHARD" 5)
files=()
while IFS= read -r file; do [ -n "$file" ] && files+=("$file"); done <<< "$selected"
if [ "${#files[@]}" -eq 0 ]; then
- echo "::error::shard $SHARD/3 selected no files from test/postgres-unit-arms.txt. Why: an empty shard would pass without running any PostgreSQL arm. Fix: run 'bun scripts/postgres-unit-arms.ts shard $SHARD 3' locally and correct the list. Docs: docs/TESTING.md#postgres-arm-lanes" >&2
+ echo "::error::shard $SHARD/5 selected no files from test/postgres-unit-arms.txt. Why: an empty shard would pass without running any PostgreSQL arm. Fix: run 'bun scripts/postgres-unit-arms.ts shard $SHARD 5' locally and correct the list. Docs: docs/TESTING.md#postgres-arm-lanes" >&2
exit 1
fi
# One bun process per file: *.serial.test.ts files require their own
@@ -243,7 +243,7 @@ jobs:
failed=()
for file in "${files[@]}"; do
echo "::group::$file"
- receipt_begin primary "s$SHARD-$(basename "$file" .ts)" "$SHARD" 3 postgres "$file"
+ receipt_begin primary "s$SHARD-$(basename "$file" .ts)" "$SHARD" 5 postgres "$file"
rc=0
bun --no-env-file test --timeout=120000 ${RECEIPT_ARGS[@]+"${RECEIPT_ARGS[@]}"} "$file" || rc=$?
receipt_end "$rc"
diff --git a/scripts/postgres-arm-weights.json b/scripts/postgres-arm-weights.json
index 1a2045b3e3..ac4e8bd4fb 100644
--- a/scripts/postgres-arm-weights.json
+++ b/scripts/postgres-arm-weights.json
@@ -1,108 +1,188 @@
{
- "test/alias-source-cascade-5094.test.ts": 11388,
- "test/attribution-backfill-history.test.ts": 27113,
- "test/behavior-change-notice.test.ts": 6212,
- "test/capture-consent-admission.test.ts": 8222,
- "test/chronicle-backfill-max-usd.test.ts": 5251,
- "test/colon-slug-windows-5032.test.ts": 6912,
- "test/company-brain-policy.test.ts": 12603,
- "test/company-brain-runtime.test.ts": 22824,
- "test/cycle/synthesize-concepts-merge.test.ts": 7096,
- "test/decide/conflict-proposals-managed.test.ts": 5517,
- "test/declared-lineage-visibility.test.ts": 5553,
- "test/derived-link-reconciliation.test.ts": 5803,
- "test/doctor-frontmatter-holds.test.ts": 7718,
- "test/doctor-routing-skill-pack-source.test.ts": 5554,
- "test/embedding-completion-atomic.serial.test.ts": 5398,
- "test/engine-sql-facts-keyset.test.ts": 4613,
- "test/extract-endpoint-revision.serial.test.ts": 5426,
- "test/fence-repair-receipts.test.ts": 8063,
- "test/graduation-copy.test.ts": 66236,
- "test/graduation-digest.test.ts": 2436,
- "test/graduation-drain.test.ts": 10267,
- "test/graduation-inventory.test.ts": 4009,
- "test/graduation-rollback.test.ts": 94547,
- "test/graduation-state.test.ts": 127763,
- "test/graduation-target.test.ts": 2610,
- "test/graduation-verify.test.ts": 14279,
- "test/grandfather-managed.test.ts": 48957,
- "test/harness-skills-epoch.test.ts": 3004,
- "test/held-read-signals.test.ts": 6976,
- "test/import-frontmatter-key-order-5158.test.ts": 4264,
- "test/import-revision-concurrency.test.ts": 4197,
- "test/lane-apply-pipelining.test.ts": 3494,
- "test/link-preparation-shared-index.test.ts": 8218,
- "test/links-attendance-blocked.test.ts": 6950,
- "test/managed-cycle-pull-upstream.test.ts": 6642,
- "test/managed-lint.test.ts": 9759,
- "test/managed-maintenance-links.test.ts": 5357,
- "test/managed-sweep-corpus-windows.test.ts": 6592,
- "test/managed-sweep-refused-window-retry.test.ts": 9454,
- "test/managed-sweep-timeline.test.ts": 5259,
- "test/managed-sync-bulk.test.ts": 4840,
- "test/managed-sync-chunker-version.test.ts": 5750,
- "test/managed-sync-concurrent-write-hold.test.ts": 14224,
- "test/managed-sync-drain.test.ts": 6516,
- "test/managed-sync-foreground-priority.test.ts": 50818,
- "test/managed-sync-group-completion.test.ts": 8640,
- "test/managed-sync-group-uncommitted-head.test.ts": 16335,
- "test/managed-sync-images-5493.test.ts": 7844,
- "test/managed-sync-lanes.test.ts": 11058,
- "test/managed-sync-page-fault-holds.test.ts": 13616,
- "test/managed-sync-pinned-reads.test.ts": 21910,
- "test/managed-sync-preparation-stalled-holds.test.ts": 33150,
- "test/managed-sync-row-parity.test.ts": 7487,
- "test/managed-sync-stale-group-head.test.ts": 3274,
- "test/owner-refusal.test.ts": 4382,
- "test/pack-relation-direction-engine.test.ts": 5026,
- "test/page-embedding-install-batch.test.ts": 5021,
- "test/page-state-engine.test.ts": 2380,
- "test/persistence-commit-durability.test.ts": 4578,
- "test/persistence-deactivate.test.ts": 16183,
- "test/persistence-diagnostics.test.ts": 5526,
- "test/persistence-file-import.test.ts": 24725,
- "test/persistence-git-subdir-origin.test.ts": 8590,
- "test/persistence-graph-publication.test.ts": 4249,
- "test/persistence-history-fixture.test.ts": 25246,
- "test/persistence-image-import.serial.test.ts": 4348,
- "test/persistence-import-batch.test.ts": 18514,
- "test/persistence-managed-lifecycle.test.ts": 11758,
- "test/persistence-managed-sync.test.ts": 69169,
- "test/persistence-manifest-git-scope.test.ts": 5298,
- "test/persistence-memory-mutations.test.ts": 8707,
- "test/persistence-page-authority.test.ts": 4700,
- "test/persistence-physical-root-device.test.ts": 4899,
- "test/persistence-preactivation-claim.test.ts": 7870,
- "test/persistence-reconcile-git-dirty-6138.test.ts": 4886,
- "test/persistence-skill-bundles.serial.test.ts": 5384,
- "test/persistence-skill-crash.slow.test.ts": 41262,
- "test/persistence-sync-cursor-options.test.ts": 6948,
- "test/persistence-sync-fence-holds.test.ts": 17454,
- "test/persistence-sync-holds.test.ts": 15244,
- "test/persistence-write-stall.test.ts": 4165,
- "test/persistence-writer-fences.test.ts": 3784,
- "test/remediation-manual-only.test.ts": 8512,
- "test/repair-embedding-effects.test.ts": 6204,
- "test/repair-failed-writes-drift-w411.test.ts": 4849,
- "test/repair-fences.test.ts": 18467,
- "test/repair-frontmatter.test.ts": 13932,
- "test/scripts/test-stress-postgres.test.ts": 11736,
- "test/shared-content-freshness.test.ts": 4237,
- "test/shared-skills-catalog.test.ts": 49980,
- "test/shared-skills-retention-capacity.test.ts": 5212,
- "test/shared-skills-source-opt-out.test.ts": 4290,
- "test/shared-skills-writer-boundary.test.ts": 13997,
- "test/source-retire-missing-checkout.test.ts": 4844,
- "test/stats-health-source-scope.test.ts": 2657,
- "test/sync-drain-claims.test.ts": 12214,
- "test/sync-drain-write-capacity.test.ts": 6867,
- "test/sync-frontmatter-recovery.test.ts": 5050,
- "test/sync-frontmatter-slug-conflict.test.ts": 4750,
- "test/sync-group-member-order.test.ts": 8852,
- "test/sync-legacy-holds.test.ts": 8989,
- "test/sync-waiver-budget.test.ts": 5274,
- "test/takes-vector-lifecycle-5885.serial.test.ts": 8340,
- "test/withdrawal-overlay-concurrency.test.ts": 4486,
- "test/withdrawal-publication-file.test.ts": 4605,
- "test/writer-status-owner-backends.test.ts": 4494
+ "test/activation-unbound-rooted-6449.test.ts": 6988,
+ "test/alias-source-cascade-5094.test.ts": 16666,
+ "test/attribution-backfill-history.test.ts": 25788,
+ "test/backstop-same-page-shadow-managed-6333.test.ts": 7387,
+ "test/behavior-change-notice.test.ts": 7392,
+ "test/capture-consent-admission.test.ts": 8898,
+ "test/capture-dispatch-provenance-6524.test.ts": 7890,
+ "test/chronicle-backfill-max-usd.test.ts": 6343,
+ "test/claude-cli-output-cap.test.ts": 6616,
+ "test/colon-slug-windows-5032.test.ts": 8787,
+ "test/company-brain-policy.test.ts": 15903,
+ "test/company-brain-runtime.test.ts": 26974,
+ "test/conversation-facts-oversized-sidecar.test.ts": 5184,
+ "test/cycle/synthesize-concepts-merge.test.ts": 10502,
+ "test/decide/conflict-proposals-managed.test.ts": 6791,
+ "test/declared-lineage-visibility.test.ts": 6849,
+ "test/derived-link-reconciliation.test.ts": 6992,
+ "test/doctor-frontmatter-holds.test.ts": 10882,
+ "test/doctor-image-embedding-coverage.test.ts": 6208,
+ "test/doctor-keyword-plan-6495.test.ts": 3954,
+ "test/doctor-routing-skill-pack-source.test.ts": 5763,
+ "test/embed-stale-images-managed-6529.test.ts": 8584,
+ "test/embedding-completion-atomic.serial.test.ts": 6798,
+ "test/engine-sql-facts-keyset.test.ts": 6582,
+ "test/extract-all-stamp-intersection.serial.test.ts": 9341,
+ "test/extract-atoms-input-truncated-6503.test.ts": 12114,
+ "test/extract-endpoint-revision.serial.test.ts": 8511,
+ "test/extract-entities-managed.test.ts": 29072,
+ "test/extract-timeline-from-meetings-managed.test.ts": 21187,
+ "test/extraction-watermark-atoms.test.ts": 6351,
+ "test/fact-fence-adoption-exits.test.ts": 26963,
+ "test/fact-purge-lookup-timeout-6511.test.ts": 8682,
+ "test/fence-repair-receipts.test.ts": 11974,
+ "test/frontmatter-reserved-keys-6454.test.ts": 9760,
+ "test/get-chunks-paging.test.ts": 6453,
+ "test/graduation-copy.test.ts": 92395,
+ "test/graduation-digest.test.ts": 3935,
+ "test/graduation-drain.test.ts": 14743,
+ "test/graduation-inventory.test.ts": 6326,
+ "test/graduation-rollback.test.ts": 111365,
+ "test/graduation-state.test.ts": 186463,
+ "test/graduation-target.test.ts": 4130,
+ "test/graduation-verify-sync-freshness.test.ts": 8934,
+ "test/graduation-verify.test.ts": 25245,
+ "test/grandfather-managed.test.ts": 55407,
+ "test/harness-skills-epoch.test.ts": 4291,
+ "test/held-read-signals.test.ts": 9120,
+ "test/import-frontmatter-key-order-5158.test.ts": 7496,
+ "test/import-inline-chunk-keep.test.ts": 6570,
+ "test/import-revision-concurrency.test.ts": 3442,
+ "test/keyword-statement-timeout-knob-6495.test.ts": 13994,
+ "test/lane-apply-pipelining.test.ts": 4014,
+ "test/large-pages/chunk-visibility.test.ts": 7528,
+ "test/large-pages/managed-streamed-import.test.ts": 38870,
+ "test/large-pages/managed-sync-segmented-rename.test.ts": 16690,
+ "test/large-pages/segment-vector-reuse.test.ts": 7486,
+ "test/large-pages/segmented-body-unreachable.test.ts": 4675,
+ "test/large-pages/segmented-derived-work.test.ts": 45646,
+ "test/large-pages/segmented-embedding-paths.test.ts": 16576,
+ "test/large-pages/segmented-embedding.test.ts": 8959,
+ "test/large-pages/segmented-shrink-below-ceiling.test.ts": 67509,
+ "test/large-pages/segmented-versions.test.ts": 9239,
+ "test/link-cross-source.test.ts": 16240,
+ "test/link-preparation-shared-index.test.ts": 13507,
+ "test/links-attendance-blocked.test.ts": 9107,
+ "test/managed-cycle-pull-upstream.test.ts": 8506,
+ "test/managed-facts-withdrawal-recovery-6506.test.ts": 7124,
+ "test/managed-facts-withdrawn-skip-6506.test.ts": 11603,
+ "test/managed-lint.test.ts": 10341,
+ "test/managed-maintenance-links.test.ts": 5989,
+ "test/managed-sweep-corpus-windows.test.ts": 15047,
+ "test/managed-sweep-refused-window-retry.test.ts": 9819,
+ "test/managed-sweep-timeline.test.ts": 5607,
+ "test/managed-sync-bulk.test.ts": 5717,
+ "test/managed-sync-checkpoint-replaced.test.ts": 8941,
+ "test/managed-sync-chunker-version.test.ts": 7880,
+ "test/managed-sync-concurrent-write-hold.test.ts": 16198,
+ "test/managed-sync-drain.test.ts": 7145,
+ "test/managed-sync-foreground-priority.test.ts": 52904,
+ "test/managed-sync-group-completion.test.ts": 11296,
+ "test/managed-sync-group-uncommitted-head.test.ts": 18510,
+ "test/managed-sync-images-5493.test.ts": 14953,
+ "test/managed-sync-lanes.test.ts": 19286,
+ "test/managed-sync-orphans-incarnation-6518.test.ts": 5169,
+ "test/managed-sync-page-fault-holds.test.ts": 24587,
+ "test/managed-sync-pinned-reads.test.ts": 27838,
+ "test/managed-sync-preparation-stalled-holds.test.ts": 42860,
+ "test/managed-sync-row-parity.test.ts": 11212,
+ "test/managed-sync-stale-group-head.test.ts": 8122,
+ "test/migration-persistence-request-slug-index.test.ts": 11093,
+ "test/owner-refusal.test.ts": 6837,
+ "test/pack-relation-direction-engine.test.ts": 7782,
+ "test/page-embedding-budget.test.ts": 8388,
+ "test/page-embedding-content-validity.test.ts": 6779,
+ "test/page-embedding-install-batch.test.ts": 5116,
+ "test/page-prepare-shared-origin-6517.test.ts": 17121,
+ "test/page-purge-journal-timeout-6511.test.ts": 23239,
+ "test/page-state-engine.test.ts": 6367,
+ "test/persistence-background-pause.test.ts": 6366,
+ "test/persistence-bounded-read-session.test.ts": 8643,
+ "test/persistence-capacity-forecast.test.ts": 14088,
+ "test/persistence-capacity-notices.test.ts": 7656,
+ "test/persistence-commit-durability.test.ts": 6734,
+ "test/persistence-deactivate.test.ts": 24753,
+ "test/persistence-diagnostics.test.ts": 8770,
+ "test/persistence-edit-embedding-reuse.test.ts": 6027,
+ "test/persistence-embedding-noop-settle.test.ts": 10366,
+ "test/persistence-file-import.test.ts": 37300,
+ "test/persistence-git-subdir-origin.test.ts": 12203,
+ "test/persistence-graph-publication.test.ts": 6258,
+ "test/persistence-history-fixture.test.ts": 33255,
+ "test/persistence-image-import.serial.test.ts": 6952,
+ "test/persistence-import-batch.test.ts": 25289,
+ "test/persistence-managed-lifecycle.test.ts": 21835,
+ "test/persistence-managed-sync.test.ts": 88186,
+ "test/persistence-manifest-git-scope.test.ts": 7881,
+ "test/persistence-memory-mutations.test.ts": 13197,
+ "test/persistence-page-authority.test.ts": 7632,
+ "test/persistence-physical-root-device.test.ts": 7327,
+ "test/persistence-preactivation-claim.test.ts": 12442,
+ "test/persistence-publication-deadline.test.ts": 20426,
+ "test/persistence-receipt-true-up.test.ts": 15138,
+ "test/persistence-reconcile-git-dirty-6138.test.ts": 8445,
+ "test/persistence-skill-bundles.serial.test.ts": 8781,
+ "test/persistence-skill-crash.slow.test.ts": 43178,
+ "test/persistence-skip-cost.test.ts": 7714,
+ "test/persistence-sync-cursor-options.test.ts": 8138,
+ "test/persistence-sync-cursor-strategy-6696.test.ts": 7474,
+ "test/persistence-sync-fence-holds.test.ts": 30443,
+ "test/persistence-sync-holds.test.ts": 33680,
+ "test/persistence-write-stall.test.ts": 6148,
+ "test/persistence-writer-fences.test.ts": 6141,
+ "test/physical-root-birth-tolerance-6501.test.ts": 13215,
+ "test/purge-fact.test.ts": 9458,
+ "test/purge-global-marker.test.ts": 6639,
+ "test/recall-page-fill.test.ts": 18213,
+ "test/remediation-manual-only.test.ts": 10764,
+ "test/repair-apply-pending-6543.test.ts": 63980,
+ "test/repair-embedding-effects.test.ts": 16658,
+ "test/repair-failed-writes-conflict-6429.test.ts": 6471,
+ "test/repair-failed-writes-drift-w411.test.ts": 7790,
+ "test/repair-fences.test.ts": 22434,
+ "test/repair-frontmatter-keys-sweep-6454.test.ts": 11598,
+ "test/repair-frontmatter.test.ts": 25869,
+ "test/repair-receipt-compaction.test.ts": 8748,
+ "test/scripts/test-stress-postgres.test.ts": 11952,
+ "test/search/page-rank-cut.test.ts": 12057,
+ "test/search/rerank-gate-hybrid.test.ts": 11809,
+ "test/search/rerank-gate-telemetry.test.ts": 5756,
+ "test/shared-content-freshness.test.ts": 10820,
+ "test/shared-skills-catalog.test.ts": 69953,
+ "test/shared-skills-retention-capacity.test.ts": 6360,
+ "test/shared-skills-source-opt-out.test.ts": 7528,
+ "test/shared-skills-writer-boundary.test.ts": 31470,
+ "test/source-retire-missing-checkout.test.ts": 5452,
+ "test/source-row-diagnostics.test.ts": 4605,
+ "test/stats-health-source-scope.test.ts": 3488,
+ "test/sync-capacity-preflight.test.ts": 9493,
+ "test/sync-drain-claims.test.ts": 16210,
+ "test/sync-drain-head-blocked-6543.test.ts": 7583,
+ "test/sync-drain-inpass-stall.test.ts": 6902,
+ "test/sync-drain-write-capacity.test.ts": 11054,
+ "test/sync-frontmatter-recovery.test.ts": 9314,
+ "test/sync-frontmatter-slug-conflict.test.ts": 7546,
+ "test/sync-full-cursor-slices-6349.test.ts": 19023,
+ "test/sync-full-untracked-import-5459.test.ts": 10408,
+ "test/sync-group-member-order.test.ts": 10911,
+ "test/sync-handler-drain-6706.test.ts": 34366,
+ "test/sync-import-provenance-disk.test.ts": 12766,
+ "test/sync-legacy-holds.test.ts": 13590,
+ "test/sync-legacy-retry-actions-6696.test.ts": 8180,
+ "test/sync-origin-live-wins-6517.test.ts": 6075,
+ "test/sync-slug-root-mode-6694.test.ts": 16023,
+ "test/sync-staged-catchup.test.ts": 8213,
+ "test/sync-status-failure-detail-6513.test.ts": 5932,
+ "test/sync-waiver-budget.test.ts": 6426,
+ "test/sync-waiver-run-imports.test.ts": 16156,
+ "test/takes-vector-lifecycle-5885.serial.test.ts": 12541,
+ "test/terminal-failures-6650.test.ts": 13874,
+ "test/trust-channel-writes.test.ts": 12183,
+ "test/trust-guarded-supersession.test.ts": 12870,
+ "test/trust-owner-actions.test.ts": 8105,
+ "test/unbound-source-6536.test.ts": 7861,
+ "test/withdrawal-overlay-concurrency.test.ts": 5020,
+ "test/withdrawal-publication-file.test.ts": 5987,
+ "test/writer-status-owner-backends.test.ts": 4295
}