-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix postgres tests and remove eol postgresql12 #1169
Conversation
@@ -167,6 +167,7 @@ in { | |||
|
|||
systemd.services.postgresql.serviceConfig = { | |||
Restart = "always"; | |||
ReadWritePaths = [ "/nix/var/nix/gcroots/per-user/postgres" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to me, this raises the question, why exactly we are setting gcroots „manually“ and if we really need to do that. maybe @dpausp can provide some insight here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done to keep around old postgresql versions during postgres updates. At start, each postgres verrsion registers itself in the postStart phase as a gcroot. Our fc-postgresql tooling cleans these gcroots after a successful update.
933c563
to
5ebb829
Compare
5ebb829
to
d0c17f2
Compare
You forgot to remove the postgres12-related entries from important packages as well, I just added that to mitigate eval errors in a more recent nixpkgs. |
postgresql12 is EOL as of 2024-11-14.
Since postgresql sets ProtectSystem=strict, all directories must exist before the service is started. Also all directories where write access is needed must be specified. PL-133170
d0c17f2
to
4e4b37f
Compare
@@ -167,6 +167,7 @@ in { | |||
|
|||
systemd.services.postgresql.serviceConfig = { | |||
Restart = "always"; | |||
ReadWritePaths = [ "/nix/var/nix/gcroots/per-user/postgres" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done to keep around old postgresql versions during postgres updates. At start, each postgres verrsion registers itself in the postStart phase as a gcroot. Our fc-postgresql tooling cleans these gcroots after a successful update.
Since postgresql sets ProtectSystem=strict, all directories must exist before the service is started. Also all directories where write access is needed must be specified.
PL-133170
@flyingcircusio/release-managers
Release process
./changelog.sh
PR release workflow (internal)
Design notes
on
oroff
. Example: rate limiting.Security implications