Thanks to visit codestin.com
Credit goes to github.com

Skip to content

hub: add deeplethe/postgres-fixture v1 (fork-per-test DB)#168

Merged
WaylandYang merged 1 commit into
mainfrom
hub/add-postgres-fixture
May 27, 2026
Merged

hub: add deeplethe/postgres-fixture v1 (fork-per-test DB)#168
WaylandYang merged 1 commit into
mainfrom
hub/add-postgres-fixture

Conversation

@WaylandYang

Copy link
Copy Markdown
Contributor

Adds deeplethe/postgres-fixture to registry.json — the isolated-DB-per-test shape from the README's production case shapes.

Pack details

field value
description PostgreSQL 16 with initdb complete + postmaster pre-launched. Children fork ready-to-query at user=forkd, db=forkd_test, listening on guest 10.42.0.2:5432.
base image postgres:16
memory_mib 1024
compressed 38.0 MiB (1.00 GiB uncompressed, 26.9× zstd)
sha256 bba5e79aaab01830519b925a8ac9eebd0d21ecbecd9687408b18a0473324d27f
recipe path recipes/postgres-fixture
release tag hub-postgres-fixture-v1

Headline numbers

  • Per-child fork-per-test: ~10 ms (vs ~2 s for a fresh container start + initdb)
  • Every child gets an identical, isolated, ready-to-query DB; tests that mutate diverge only on the pages they touch

End-to-end verification

$ forkd pull https://github.com/deeplethe/forkd/releases/download/hub-postgres-fixture-v1/postgres-fixture.forkd-snapshot.tar.zst --tag test-pull-postgres --force
✓ downloaded 38.0 MiB
✓ sha256 verified
✓ unpacked tag 'test-pull-postgres'

Follow-up

coding-agent, e2b-codeinterpreter, nodejs, jupyter-kernel, agent-workbench remain.

PostgreSQL 16 with initdb complete and postmaster running before
snapshot. Children fork into a ready-to-query database in ~10 ms,
the isolated-DB-per-test shape from the README's production case
shapes.

Pack: 38.0 MiB compressed (1.00 GiB uncompressed, 26.9x zstd).
Memory: 1024 MiB.
Base image: postgres:16.

Release: https://github.com/deeplethe/forkd/releases/tag/hub-postgres-fixture-v1
sha256: bba5e79aaab01830519b925a8ac9eebd0d21ecbecd9687408b18a0473324d27f

Pull verified end-to-end on the dev box: 38 MiB download (~28 s),
sha256 matches, unpacks into a working snapshot tag.
@WaylandYang WaylandYang merged commit aab07e1 into main May 27, 2026
2 checks passed
@WaylandYang WaylandYang deleted the hub/add-postgres-fixture branch May 27, 2026 05:01
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