-
Notifications
You must be signed in to change notification settings - Fork 150
Start testing against Go 1.25 #1014
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,12 +27,20 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| # Run the 4 latest Postgres versions against the latest Go version: | ||
| go-version: | ||
| - "1.24" | ||
| postgres-version: [14, 15, 16, 17] | ||
| include: | ||
| # Also run previous Go version against the latest Postgres version: | ||
| # Run the 4 latest Postgres versions against the latest Go version: | ||
| - go-version: "1.25" | ||
| postgres-version: 17 | ||
| - go-version: "1.25" | ||
| postgres-version: 16 | ||
| - go-version: "1.25" | ||
| postgres-version: 15 | ||
| - go-version: "1.25" | ||
| postgres-version: 14 | ||
|
|
||
| # Also run a couple previous Go versions against the latest Postgres version: | ||
| - go-version: "1.24" | ||
| postgres-version: 17 | ||
| - go-version: "1.23" | ||
| postgres-version: 17 | ||
|
Comment on lines
+41
to
45
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thoughts on removing the v1.23 from here? I don't think it adds much tbh.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm kindaa thinking that we should lave that in for the time being. It's still the version of Go in all the We could bump all the Thoughts? |
||
| fail-fast: false | ||
|
|
||
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 ended up flattening this matrix out because I don't think it was working as intended before, or if it was, it was only doing so accidentally.
GitHub Actions matrixes operation quite unintuitively. I read those docs three times and still don't 100% understand it, but if I added only 1.24/17, it would buit it on all of Postgres 17/16/15/14, which is obviously not what was intended. Found it easier just to unroll the matrix like this which isn't too many more LOCs anwyay.
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 think the intention was to test the latest Go version against all recent supported Postgres versions, and then separately test each recent Go version against the latest Postgres. This was on the assumption that cross PG-Go version incompatibilities are super unlikely, whereas it's more likely that some dependency doesn't work as well in a particular Go version or against a certain PG 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.
Oh yeah, I totally understood that part of it. What I meant is just that the matrix functionality is kind of weirder than you'd expect. If you wanna play with it a bit, I'm sure there must be another way to get it working as intended, but my brain was too strained to figure it out.