Repository navigation
test: boot the Postgres suites in the house microVM with IntegreSQL - #13
Open
systemfsoftware-bot wants to merge 1 commit into
Open
systemfsoftware-bot wants to merge 1 commit into
systemfsoftware-bot wants to merge 1 commit into
Conversation
The Postgres suites ran against a service container that the test process had to find through EFFECT_AGENT_TEST_POSTGRES_URL. They now follow the fleet's integration-database pattern: Postgres and the digest-pinned IntegreSQL layer boot inside a microVM on the runner's KVM device, each case checks its own database out of IntegreSQL, and the hand-back retries until the case's pooled connections drain. Nothing needs a Docker daemon, a service container, or a shared server; EFFECT_AGENT_TEST_POSTGRES_URL still points the suites at a server you run yourself. CI gains the KVM grant and the IntegreSQL layer cache the other repositories use, and the separate three-major job is gone: the node matrix now runs every suite, including the Postgres ones. Verified without any server or container: storage-postgres 106/106 and the testing package's coordinator certification 1/1, both booting the microVM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The Postgres suites now run on the house integration-database pattern instead of a service container.
@systemfsoftware/effect-microsandbox+@systemfsoftware/effect-readiness, the same fixturestimescale-drizzleuses).EFFECT_AGENT_TEST_POSTGRES_URLstill points the suites at a server you run yourself; unset, they boot the microVM.~/.cache/agent/integresql-layerscache, keyed on the fixture that pins the layer digest. The separate three-major Postgres job is removed: the node matrix now runs every suite, Postgres included.maxWorkers: 1forstorage-postgres: each worker process acquires its own sandbox, and concurrent sandbox startup contends on the microsandbox state database.Why
The restored Postgres suites need a live server. A service container is not how this fleet provisions integration databases, and it forced a separate job plus an env var just to find it.
Verification
Run with no server and no container on the machine:
pnpm --filter @systemfsoftware/agent-storage-postgres testpnpm --filter @systemfsoftware/agent-testing exec vitest run test/certification-postgres.test.tspnpm --filter <pkg> typecheck(both)pnpm exec effect-tsgo oxlint packages .github --type-aware