Skip to content

fix(server): use plain psycopg with OS libpq#241

Merged
abhinav-galileo merged 2 commits into
mainfrom
abhi/server-plain-psycopg
Jun 17, 2026
Merged

fix(server): use plain psycopg with OS libpq#241
abhinav-galileo merged 2 commits into
mainfrom
abhi/server-plain-psycopg

Conversation

@abhinav-galileo

@abhinav-galileo abhinav-galileo commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Change agent-control-server to depend on plain psycopg instead of psycopg[binary].
  • Expose optional binary and c extras for applications that intentionally choose those psycopg implementations.
  • Install Debian libpq5 in the published server Docker image and set PSYCOPG_IMPL=python.
  • Install libpq5 in Python CI and add a Docker smoke test that verifies psycopg can load libpq inside the image.

Why

The server package should not force bundled native psycopg libraries into downstream applications. Plain psycopg gives consumers control over the runtime implementation, while the published Docker image remains self-contained by shipping OS libpq.

Validation

  • GitHub checks passing: ci, sdk-ts-ci, ui-ci, build-and-push-server, validate, codecov/patch.
  • git diff --check
  • Parsed .github/workflows/ci.yml and .github/workflows/docker-publish.yml.
  • uv run --package agent-control-server ruff check --config pyproject.toml server/src server/tests/test_init_agent.py

@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@abhinav-galileo abhinav-galileo changed the title fix(server): declare plain psycopg dependency fix(server): use plain psycopg with OS libpq Jun 17, 2026
@abhinav-galileo abhinav-galileo merged commit 45a33a5 into main Jun 17, 2026
6 checks passed
@abhinav-galileo abhinav-galileo deleted the abhi/server-plain-psycopg branch June 17, 2026 15:36
galileo-automation pushed a commit that referenced this pull request Jun 17, 2026
## [3.1.0](ts-sdk-v3.0.0...ts-sdk-v3.1.0) (2026-06-17)

### Features

* **engine:** add evaluation runtime tuning ([#239](#239)) ([2f1e5fe](2f1e5fe))
* **server:** bound database connection pool ([#236](#236)) ([80aea8f](80aea8f))

### Bug Fixes

* **evaluators:** configure Luna scorer API URL ([#237](#237)) ([fc516f0](fc516f0))
* **server:** use plain psycopg with OS libpq ([#241](#241)) ([45a33a5](45a33a5))
@galileo-automation

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants