Skip to content

fix(dev-image): pgvector reccomended installs flakes pupeline - #36807

Open
sfreudenthaler wants to merge 4 commits into
mainfrom
issue-36806-pgvector-no-recommends
Open

fix(dev-image): pgvector reccomended installs flakes pupeline #36807
sfreudenthaler wants to merge 4 commits into
mainfrom
issue-36806-pgvector-no-recommends

Conversation

@sfreudenthaler

Copy link
Copy Markdown
Member

Every release is currently blocked: the dev-image arm64 (QEMU) build fails on apt install postgresql-$PG_VERSION-pgvector because the recommends chain drags in networkd-dispatcher/python3-gi, whose maintainer scripts try to wire systemd-resolved inside the container and die under emulation (newly fatal after a 2026-07-29 Ubuntu noble package update; observed on release run 30495772928 / v26.07.28-01, which then skipped Release, Release-Notes, Promote-latest, and Changelog publish).

One flag: --no-install-recommends — the DB container needs pgvector, not Ubuntu's network-management stack. Also slims the image.

Closes: #36806

🤖 Generated with Claude Code

https://claude.ai/code/session_012ogYXVeZsBVUHkwzdStYPJ

The recommends chain pulls networkd-dispatcher/python3-gi whose maintainer
scripts fail under the QEMU-emulated arm64 build (dpkg error → apt 100),
failing the deployment job and blocking every release since the 2026-07-29
Ubuntu package update. A database container doesn't need the network-
management stack; skipping recommends also slims the image.

Closes: #36806

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012ogYXVeZsBVUHkwzdStYPJ
@claude

claude Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Claude finished @sfreudenthaler's task in 28s —— View job


Code Review

Change: docker/dev-env/Dockerfile:42 — add --no-install-recommends to the pgvector install.

-RUN apt install -y postgresql-$PG_VERSION-pgvector
+RUN apt install -y --no-install-recommends postgresql-$PG_VERSION-pgvector

This is correct and does exactly what the PR describes. --no-install-recommends stops apt from pulling the recommended-but-not-required chain (networkd-dispatcherpython3-gi), whose postinst wires up systemd-resolved and fails under QEMU emulation. The DB container needs the pgvector extension, not Ubuntu's network-management stack, so dropping recommends here is the right scope — and it also slims the image.

Notes (non-blocking, pre-existing — outside this diff)

  • docker/dev-env/Dockerfile:42 — this line uses apt while the rest of the file uses apt-get (apt prints "unstable CLI interface" warnings in scripts). Not introduced by this PR and not worth churning here, but worth aligning in a future cleanup.
  • The install correctly runs after apt.postgresql.org.sh (line 41) adds the PGDG repo, so postgresql-$PG_VERSION-pgvector resolves. --no-install-recommends does not affect the hard dependency on postgresql-$PG_VERSION, which stays installed. ✅

Verdict

No issues found. The one-line change is minimal, targeted, and matches the --no-install-recommends convention already used on line 36. Safe to merge.
· issue-36806-pgvector-no-recommends

…all (#36806)

Repo-wide survey: every other apt install in shipped Dockerfiles (java-base,
main image, dev-env) already uses the flag — this postgresql-client-16 line
was the only remaining outlier, same recommends-chain exposure as the
pgvector line that broke the release build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012ogYXVeZsBVUHkwzdStYPJ
@sfreudenthaler

Copy link
Copy Markdown
Member Author

Extended per a repo-wide survey: every apt install in shipped Dockerfiles already used --no-install-recommends except two — the pgvector line this PR fixes, and one stray postgresql-client-16 install in docker/pg-base/Dockerfile (clearly appended after the flagged line above it). Second commit brings that one in line; the repo is now consistent.

@sfreudenthaler

Copy link
Copy Markdown
Member Author

Scope reduced back to the dev-env pgvector fix only — the pg-base change moves to its own PR (with a client 16→18 bump, per RDS version survey) so backup-image changes get their own review.

Removed comments explaining the use of --no-install-recommends in Dockerfile.
@sfreudenthaler sfreudenthaler changed the title fix(dev-image): pgvector install must not pull networkd-dispatcher (arm64 build broken, blocks all releases) fix(dev-image): pgvector reccomended installs flakes pupeline Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

dev-image arm64 build broken: pgvector apt install pulls networkd-dispatcher whose postinst fails under QEMU — blocks all releases

1 participant