Skip to content

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

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

fix(dev-image): pgvector reccomended installs flakes pupeline #36807
sfreudenthaler wants to merge 5 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 17s —— View job


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


Code Review

Reviewed the single-line change to docker/dev-env/Dockerfile.

Diff:

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

The fix is correct and minimal:

  • postgresql-$PG_VERSION-pgvector is a PostgreSQL extension whose hard runtime requirements are Depends (the postgres server package), not Recommends. The --no-install-recommends flag only drops the optional recommend chain (networkd-dispatcher/python3-gi), which the DB container doesn't need — so pgvector's actual functionality is unaffected.
  • It's now consistent with line 36, which already uses --no-install-recommends for the base package install.
  • Slims the image as a side benefit.

New Issues

No issues found.

The scope is exactly right per the second comment (pg-base change deferred to its own PR). One pre-existing observation, not introduced by this PR and out of scope — line 42 uses apt rather than apt-get; apt prints "does not have a stable CLI interface, use with caution in scripts". Worth aligning with the surrounding apt-get calls someday, but not a blocker here.

· 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