-
Notifications
You must be signed in to change notification settings - Fork 14
Add 'postgres-version' input parameter #15
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
Conversation
062ab3a to
d6592a6
Compare
d0ad37f to
c755f4a
Compare
1414e56 to
df742c9
Compare
31b45cc to
91d91a6
Compare
|
Hi, is this feature ready? |
654218e to
24b0119
Compare
One of the foundational principles of this action was to use GitHub runners preinstalled PostgreSQL binaries. The rationale was simple: * Make sure the action is fast and no installation is required. * Make sure it's safe and doesn't reach out to external servers. * Make sure the action is easy to audit. Unfortunately, those foundational principles aren't working well anymore due to the following reasons: * Ubuntu 24.04 is shipped with PostgreSQL 16, while other runners ship PostgreSQL 14. It's not nice when different versions are used on different runners. * macOS 13 & 14 runners are no longer shipped with preinstalled PostgreSQL, which means we have to install the server. * Many FOSS users are attracted by using the most recent PostgreSQL, and not stuck with few years old release. This patch adds a new `postgres-version` input parameter that controls what major version of PostgreSQL to install. Please note, the parameter receives only major part of the version, e.g. "14'. It's impossible to request any minor release. Co-Authored-By: Roman Podoliaka <[email protected]> Co-Authored-By: Ruslan Kiyanchuk <[email protected]> Resolves: #14
24b0119 to
b5b4c34
Compare
| postgres-version: | ||
| - "14" | ||
| - "15" |
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.
should this include "16"? or no testing on the default version?
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.
16 is tested as part of the default job. Just want to reduce the testing matrix a bit. :) It sometimes takes ages to find free windows/macos runners.
| * PostgreSQL version can be parametrized. | ||
| * Easy [to verify][2] that it DOES NOT contain malicious code. | ||
|
|
||
| By default PostgreSQL 15 is used. |
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.
I'm guessing this is a typo, and should instead be "16"
PR open:
One of the foundational principles of this action was to use GitHub
runners preinstalled PostgreSQL binaries. The rationale was simple:
Unfortunately, those foundational principles aren't working well
anymore due to the following reasons:
Ubuntu 24.04 is shipped with PostgreSQL 16, while other runners ship
PostgreSQL 14. It's not nice when different versions are used on
different runners.
macOS 13 & 14 runners are no longer shipped with preinstalled
PostgreSQL, which means we have to install the server.
Many FOSS users are attracted by using the most recent PostgreSQL,
and not stuck with few years old release.
This patch adds a new
postgres-versioninput parameter that controlswhat major version of PostgreSQL to install. Please note, the parameter
receives only major part of the version, e.g. "14'. It's impossible to
request any minor release.
Co-Authored-By: Roman Podoliaka [email protected]
Co-Authored-By: Ruslan Kiyanchuk [email protected]
Resolves: #14