Skip to content

fix(test): pin postgres to 16 so the compose stack survives image drift - #265

Merged
rickstaa merged 1 commit into
mainfrom
fix/pin-test-postgres
Sep 8, 2026
Merged

rickstaa merged 1 commit into
mainfrom
fix/pin-test-postgres

Conversation

@rickstaa

@rickstaa rickstaa commented Sep 8, 2026

Copy link
Copy Markdown
Member

The test compose file used the floating postgres tag, which now resolves to 18. That image refuses to start on a data directory written by an older major, so yarn test aborts before the tests run and the test container fails with ENOTFOUND geth. Pins the image to postgres:16, matching docker-compose.yml and docker-compose.arbitrum.yml.

Anyone with a stale data/postgres from a different major still needs to remove it once.

Copilot AI lite review requested due to automatic review settings September 8, 2026 10:45
@rickstaa
rickstaa merged commit e500f04 into main Sep 8, 2026
7 checks passed
@rickstaa
rickstaa deleted the fix/pin-test-postgres branch September 8, 2026 10:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is minimal and aligns the test compose stack with the already-pinned Postgres major used elsewhere, reducing CI/local test flakiness from image drift.

Pull request overview

Pins the Postgres Docker image used by the test docker-compose stack to a fixed major version to prevent yarn test from failing due to upstream postgres tag drift (e.g., postgres now resolving to 18 and refusing to start on older data dirs).

Changes:

  • Update docker-compose.test.yml to use postgres:16 instead of the floating postgres tag.
File summaries
File Description
docker-compose.test.yml Pin Postgres image to v16 for stable test environment startup.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docker-compose.test.yml
- ./data/ipfs:/data/ipfs
postgres:
image: postgres
image: postgres:16
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🚀 Subgraph Studio preview deployed

Item Details
Version label pr-265-c8f0fda-34217089405
Query endpoint https://api.studio.thegraph.com/query/31909/livepeer-ci/pr-265-c8f0fda-34217089405
curl -H 'Content-Type: application/json' \
  -d '{"query":"{ protocol(id: \"0\") { inflation } }"}' \
  https://api.studio.thegraph.com/query/31909/livepeer-ci/pr-265-c8f0fda-34217089405

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.

2 participants