Skip to content

perf(testing): run coordinator conformance cells concurrently - #35

Merged
systemfsoftware-bot merged 5 commits into
mainfrom
perf/concurrent-coordinator-conformance
Nov 25, 2026
Merged

systemfsoftware-bot merged 5 commits into
mainfrom
perf/concurrent-coordinator-conformance

Conversation

@systemfsoftware-bot

Copy link
Copy Markdown
Contributor

The PostgreSQL coordinator certification was one sequential test that took 90.8s on CI and set the floor of the agent-testing lane. Locally it spent 84.8s of wall time on 20.4s of CPU, so it is bound by I/O and waiting.

  • durableCoordinatorConformance now takes { withStorage, concurrency }.
  • Every sweep cell builds its own runtime, failpoint control and config, and runs over storage that withStorage supplies for that cell alone. Recovery passes scan every Thread in storage, so cells cannot share a database.
  • Cells run in waves. Each wave arms every location its scenario has reached but not yet driven, and waves repeat until none is left. This keeps the old sequential sweep's behaviour, where recovery in one cell can expose a location that a later cell arms (uncertain-tool, durable-steps, approval and delegation each sweep more cells than their discovery reached).
  • The coverage checks are unchanged: every scenario fires at least one fault, every armed cell converges and verifies, and the never-fired set equals UNREACHED_LOCATIONS.
  • The certification test checks out one IntegreSQL database per cell. It runs 16 cells at once, with IntegreSQL's pool raised to 16 and four connections per cell, which stays under the server's max_connections of 200.

Local runs of test/certification-postgres.test.ts take 40–44s, down from 84.8s, and pass. CI will give the runner figure.

Each sweep cell now gets its own runtime, failpoint control and storage, so
cells run concurrently in waves until no cell reaches a new location. The
PostgreSQL certification checks out one IntegreSQL database per cell.
systemfsoftware-bot and others added 4 commits November 25, 2026 17:21
IntegreSQL recreates the oldest checked-out database, even one in use, once
its pool is full and too few are ready. Sixteen cells on a pool of sixteen
lost a database mid-cell on CI.
…back

A handed-back database briefly counts as neither ready nor recreating, so
pool headroom alone left a window for auto-clean to take a live database.
Auto-clean now waits out a lifetime longer than any test here.
@systemfsoftware-bot
systemfsoftware-bot merged commit d7bbf39 into main Nov 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant