Skip to content

test/infra: pg-pool DATABASE_URL test, event wire-format guard, docker/render hardening - #1064

Merged
ogazboiz merged 1 commit into
LabsCrypt:mainfrom
Johnalex-hub:fix/testing-infra-issues-1055-1058
Jul 29, 2026
Merged

test/infra: pg-pool DATABASE_URL test, event wire-format guard, docker/render hardening#1064
ogazboiz merged 1 commit into
LabsCrypt:mainfrom
Johnalex-hub:fix/testing-infra-issues-1055-1058

Conversation

@Johnalex-hub

Copy link
Copy Markdown
Contributor

Summary

Closes #1055
Closes #1056
Closes #1057
Closes #1058

Test plan

  • cargo test in contracts/stream_contract — 106 passed
  • npx vitest run tests/pg-pool.test.ts — 2 passed
  • npx vitest run tests/events-wire-format.test.ts — 9 passed
  • docker compose config -q validates docker-compose.yml

- Add pg-pool.test.ts asserting createPgPoolConfig/createPgPool pick up
  an overridden DATABASE_URL, with pg.Pool mocked (no real connection).
- Add a contract-side test pinning stream_created's emitted Map field
  names against soroban-event-worker.ts's decodeMap expectations, plus
  doc comments in events.rs describing the wire format contract.
- Add events-wire-format.test.ts as the matching backend fixture,
  asserting decodeMap() exposes every field each event handler reads.
- Document the Postgres pinning/upgrade policy in docker-compose.yml
  (image was already pinned to an immutable digest).
@ogazboiz
ogazboiz merged commit 3e7ec2c into LabsCrypt:main Jul 29, 2026
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment