feat(nix): add site-profile packages for rolling instance updates#2283
Draft
brainrake wants to merge 4 commits into
Draft
feat(nix): add site-profile packages for rolling instance updates#2283brainrake wants to merge 4 commits into
brainrake wants to merge 4 commits into
Conversation
PostgreSQL Extension Dependency Analysis: PR #2283
SummaryNo extensions had dependencies with MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Extension DependenciesPostgreSQL 17 Extension DependenciesOrioleDB 17 Extension Dependencies |
PostgreSQL Package Dependency Analysis: PR #2283
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 |
brainrake
force-pushed
the
martonboros/psql-1406-add-site-env-flake-outputs-under-legacypackages
branch
2 times, most recently
from
July 21, 2026 22:23
e6b09ae to
4c7ced7
Compare
brainrake
force-pushed
the
martonboros/psql-1406-add-site-env-flake-outputs-under-legacypackages
branch
from
July 21, 2026 22:27
4c7ced7 to
7d65133
Compare
This comment has been minimized.
This comment has been minimized.
…outputs-under-legacypackages
brainrake
added a commit
that referenced
this pull request
Jul 23, 2026
…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.
4 tasks
brainrake
added a commit
that referenced
this pull request
Jul 23, 2026
…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.
Rename the flake outputs and their module from site-env-* to site-profile-*, matching the /nix/var/nix/profiles/site profile they populate. Also use lib.optionals (not lib.optional) for the conditional gatekeeper path: lib.optional wrapped the singleton list into a nested list that buildEnv silently drops, so pg17/orioledb profiles would have shipped without pam_jit_pg. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Fixes PSQL-1406 · part of Nix package updates via site profile
Adds
site-profile-15(supautils only),site-profile-17andsite-profile-orioledb-17(supautils + gatekeeper'spam_jit_pg.so) asbuildEnvs over the existing derivations — the payload for the rolling/nix/var/nix/profiles/siteprofile on instances.legacyPackagesso the auto-generated CI matrix builds + caches them on both Linux arches (this also gets gatekeeper CI-built for the first time)lib.optionalsfor the conditional gatekeeper path —lib.optionalproduced a nested list thatbuildEnvsilently drops, which would have shipped pg17/orioledb withoutpam_jit_pgsite-profile-17/orioledb-17include both supautils and gatekeeper-1.0.5;site-profile-15supautils onlyConsumed by PSQL-1407 (catalog publishing) and PSQL-1409 (salt formula).
🤖 Generated with Claude Code