Skip to content

Deps: bump psycopg2-binary for newer libpq auth#10497

Draft
nmanovic wants to merge 6 commits intov3-pr2-helmfrom
v3-pr3-psycopg
Draft

Deps: bump psycopg2-binary for newer libpq auth#10497
nmanovic wants to merge 6 commits intov3-pr2-helmfrom
v3-pr3-psycopg

Conversation

@nmanovic
Copy link
Copy Markdown
Contributor

Summary

This is PR 4 in the split series.

Base PR: #10496 (v3-pr2-helm)

This PR keeps the dependency change narrow:

  • bump psycopg2-binary from 2.9.5 to 2.9.11
  • add a maintainer comment in cvat/requirements/base.in explaining why the bump is needed
  • add a changelog fragment documenting the user-visible reason for the change

Why this change is needed

On local macOS test runs, the older psycopg2-binary bundled an older libpq, which caused backend startup failures when connecting to PostgreSQL instances using SCRAM authentication:

  • SCRAM authentication requires libpq version 10 or above

The version bump fixes that class of failure.

Validation

  • rebuilt cvat/server:dev
  • confirmed the rebuilt image contains psycopg2 2.9.11
  • started a temporary PostgreSQL 15 container with --auth-host=scram-sha-256
  • verified a connection from cvat/server:dev succeeds (select 1)
  • typos: passed
  • remark: passed

Scope

Relative to v3-pr2-helm, this PR changes only:

  • cvat/requirements/base.in
  • cvat/requirements/base.txt
  • changelog.d/20260419_120500_nmanovic_psycopg2_libpq_scram.md

Notes

This PR is intentionally stacked on top of v3-pr2-helm because the split series is being reviewed incrementally and pr0 contains critical baseline test fixes for the rest of the stack.

@nmanovic nmanovic requested a review from SpecLad as a code owner April 18, 2026 21:25
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread cvat/requirements/base.in
# Keep psycopg2-binary new enough to bundle a libpq version that supports
# SCRAM auth. Older builds caused local macOS test startup failures with
# "SCRAM authentication requires libpq version 10 or above".
psycopg2-binary==2.9.11
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's just set this to psycopg2-binary~=2.9 to avoid updating it in the future.

@@ -0,0 +1,3 @@
### Fixed

- Updated `psycopg2-binary` to avoid local macOS test startup failures caused by older bundled libpq versions, including `SCRAM authentication requires libpq version 10 or above` when connecting to PostgreSQL.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You need to include a link to the PR.

@nmanovic nmanovic marked this pull request as draft April 21, 2026 12:48
@nmanovic nmanovic force-pushed the v3-pr2-helm branch 2 times, most recently from 62d6e9a to f126c90 Compare April 21, 2026 15:30
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