Skip to content

fix(test): pin graph-node and init postgres with a C locale - #266

Merged
rickstaa merged 2 commits into
mainfrom
fix/pin-test-graph-node
Sep 8, 2026
Merged

rickstaa merged 2 commits into
mainfrom
fix/pin-test-graph-node

Conversation

@rickstaa

@rickstaa rickstaa commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Two fixes that make yarn test runnable again, both in docker-compose.test.yml:

  • graphprotocol/graph-node was pulled with no tag and now resolves to v0.45.0, which panics on an empty database during startup. Pinned to v0.35.1, the version docker-compose.yml already uses with the same go-ipfs and postgres images. All images in the test stack are now pinned.
  • Postgres was initialised with the image default en_US.utf8 collation, and graph-node refuses to start on anything but C. Added the same POSTGRES_INITDB_ARGS the dev compose uses.

Same class of fix as #265. Anyone with an existing data/postgres needs to remove it once so initdb reruns with the new locale.

Copilot AI lite review requested due to automatic review settings September 8, 2026 10:54

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, correct, and directly addresses test-stack image drift without introducing behavioral risk elsewhere.

Pull request overview

Pins the graph-node Docker image used by the test compose stack to prevent CI/local tests from breaking due to upstream latest drift, aligning the test stack with the already-pinned versions used elsewhere in the repo.

Changes:

  • Pin graphprotocol/graph-node to v0.35.1 in docker-compose.test.yml to avoid pulling a newer latest that fails on empty DB startup.
File summaries
File Description
docker-compose.test.yml Pins graph-node image tag to stabilize the test docker-compose stack.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@github-actions

github-actions Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

🚀 Subgraph Studio preview deployed

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

@rickstaa rickstaa changed the title fix(test): pin graph-node to v0.35.1 so the test stack stops tracking latest fix(test): pin graph-node and init postgres with a C locale Sep 8, 2026
Copilot AI review requested due to automatic review settings September 8, 2026 10:59

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 changes are minimal, consistent with docker-compose.yml, and directly address the described test stack failures without introducing additional complexity.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@rickstaa
rickstaa merged commit fac5b31 into main Sep 8, 2026
7 checks passed
@rickstaa
rickstaa deleted the fix/pin-test-graph-node branch September 8, 2026 11:13
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