ci: install AMI postgres profile via nix-env --set#2309
Draft
brainrake wants to merge 2 commits into
Draft
Conversation
PostgreSQL Extension Dependency Analysis: PR #2309
SummaryNo extensions had dependencies with MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Extension DependenciesPostgreSQL 17 Extension DependenciesOrioleDB 17 Extension Dependencies |
brainrake
force-pushed
the
worktree-postgres-env-nix-set
branch
from
July 23, 2026 02:11
0f24caf to
6b01469
Compare
…file install Bundle psql/bin, pg_prove, supabase-groonga, and postgresql_src/_debug into a single postgres-*-profile derivation per major version, so the AMI build resolves and installs it with one nix-env --set instead of looping nix profile install over five separate flake attrs. Gatekeeper is not included here: it lives in the site-env-* profiles from #2283 instead, since it needs to roll out independently of a full AMI rebuild.
brainrake
force-pushed
the
worktree-postgres-env-nix-set
branch
from
July 23, 2026 02:16
5d6c4b9 to
1f57f4c
Compare
PostgreSQL Package Dependency Analysis: PR #2309
SummaryNo packages had MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Dependency ChangesExtracting PostgreSQL 15 dependencies...
Runtime Closure Size
Raw Dependency ClosurePostgreSQL 17 Dependency ChangesExtracting PostgreSQL 17 dependencies...
Runtime Closure Size
Raw Dependency Closure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #2283 (site-profiles).
Summary
postgres-{15,17,orioledb-17}-profilepackages (nix/packages/default.nix) that bundle everything the AMI build installs for the postgres user:psql_<v>/bin,pg_prove,supabase-groonga,postgresql_<v>_src,postgresql_<v>_debug(Linux only).ansible/tasks/stage2-setup-postgres.yml: replace the 5-itemnix profile installloop withnix build --print-out-paths(registered) followed bynix-env --set.Switching to
nix-env --setavoids mixingnix profile install's manifest format withnix-env's on the same default profile path.Test plan
nix eval .#packages.aarch64-darwin.postgres-{15,17,orioledb-17}-profile.name— all three packages evaluatenix build .#postgres-{15,17,orioledb-17}-profile— all three build successfully; verifiedbin/psql,bin/pg_provepresent in the output, gatekeeper absentnix-env --profile <scratch> --set <resolved store path>— profile correctly set to a single new generation,psql --versionworks from it