Commit Graph

52 Commits (04bcc0219dc3acf67f27e68decd6dffe97334779)

Author SHA1 Message Date
Jack Christensen f681632c68 Drop PG 12 support and add PG 17 to CI 2025-01-11 07:49:26 -06:00
Jack Christensen 0cbc5db39d CI tests Go 1.23 2024-08-15 18:33:43 -05:00
Jack Christensen 1b6227af11 Remove verbose flag from go test command on CI
It is more often that interesting information is buried by the verbose
output than the verbose output is useful. It can be reenabled later if
necessary.
2024-03-16 09:52:50 -05:00
Jack Christensen c1fce377ee Test Go 1.22 and drop Go 1.20 from testing on CI 2024-03-16 09:44:23 -05:00
Jack Christensen 7fd6f2a4f5 Disable parallel testing on Github Actions CI
Tests were failing with:
Error: Process completed with exit code 143.

This appears to mean that Github Actions killed the runner.

See https://github.com/jackc/pgx/actions/runs/8216337993/job/22470808811
for an example.

It appears Github Actions kills runners based on resource usage. Running
tests one at a time reduces the resource usage and avoids the problem.

Or at least that's what I presume is happening. It sure is fun debugging
issues on cloud systems where you have limited visibility... :(

fixes https://github.com/jackc/pgx/issues/1934
2024-03-16 09:41:51 -05:00
Jack Christensen 576b6c88f6 Bump actions/setup-go version
This gets rid of some deprecation warnings on Github Actions.
2024-02-03 12:50:20 -06:00
Jack Christensen 0819a17da8 Remove openssl from TLS test setup
TLS setup and tests were rather finicky. It seems that openssl 3
encrypts certificates differently than older openssl and it does it in
a way Go and/or pgx ssl handling code can't handle. It appears that
this related to the use of a deprecated client certificate encryption
system.

This caused CI to be stuck on Ubuntu 20.04 and recently caused the
contributing guide to fail to work on MacOS.

Remove openssl from the test setup and replace it with a Go program
that generates the certificates.
2024-01-27 09:04:19 -06:00
Jack Christensen 31321c2017 Add race detector to bug report template 2023-12-02 09:27:57 -06:00
Jack Christensen df5d00eb60 Remove PostgreSQL 11 from supported versions 2023-11-11 10:09:47 -06:00
Nicola Murino 1484fec57f CI: add PostgreSQL 16 2023-10-10 20:54:54 -05:00
Nicola Murino 3957163808 Update supported Go versions and add 1.21 to CI 2023-10-10 20:54:54 -05:00
Jack Christensen 4091eedf03 Check out code before setting up Go
This allows for caching the Go dependencies.
2023-07-22 17:13:30 -05:00
Jack Christensen 87d771ef9c Prettier ci.yml 2023-07-22 17:12:56 -05:00
Nicola Murino e79efdacf9 CI: run tests in verbose mode
It's helpful to have more detailed logs, such as how long it took to
run a single test
2023-06-19 17:06:21 -05:00
Nicola Murino 46d91255b0 remove timeout for test cases on Windows 2023-06-03 06:45:28 -05:00
Nicola Murino ef363b59ab skipping some config parsing tests on Windows
this should be investigated and fixed
2023-06-03 06:45:28 -05:00
Nicola Murino bad6b36c47 CI Windows: Initialize test database 2023-06-03 06:45:28 -05:00
Nicola Murino 30d63caa6a CI: run basic tests on Windows 2023-06-03 06:45:28 -05:00
Jack Christensen 190c05cc24 CI fix: Go versions are strings
Otherwise Go 1.20 was being treated as Go 1.2.
2023-02-04 07:32:13 -06:00
Jack Christensen 98543e0354 Update supported Go versions and add 1.20 to CI 2023-02-04 07:01:03 -06:00
Jack Christensen 32c29a6edd Update issue template to use pgx v5 2023-02-01 19:40:25 -06:00
Alexey Palazhchenko f839d501a7 Apply `gofmt -s`
And add CI check for that.
2023-01-24 07:55:00 -06:00
Jack Christensen fcec008a4c Update CI to test on Go 1.19 2023-01-14 09:37:11 -06:00
Jack Christensen 932f676cfd Remove PG 10 from CI and add PG 15 to CI
PG 10 is now out of support.
2022-11-12 09:20:48 -06:00
Jack Christensen d8c04249d1 Give up on that test in CI
The test works if I use upterm and run manually on the CI server...
TLS is tested in the TLS with client certificate tests anyway.
2022-10-31 22:37:05 -05:00
Jack Christensen 7fd064ab80 Disable upterm 2022-10-31 22:28:50 -05:00
Jack Christensen 0013f6c7ca Enable upterm 2022-10-31 22:20:58 -05:00
Jack Christensen 95498282bb more ci 2022-10-31 22:10:37 -05:00
Jack Christensen 6e77e0a09d Fight with CI some more 2022-10-31 22:05:35 -05:00
Jack Christensen 1f0fd66623 Go back to Ubuntu 20.04 on CI
Should fix some strange openssl / TLS issues.
2022-10-31 21:57:38 -05:00
Jack Christensen 45aeaed20a Remove unused pg-version matrix 2022-10-31 21:28:58 -05:00
Jack Christensen a2da398dff Partial CI fixes 2022-10-31 21:24:57 -05:00
Jack Christensen 0920c79b02 Test SCRAM, sslmode=verify-full and client cert auth on CI 2022-10-31 19:30:22 -05:00
Jack Christensen 268af3903c Upgrade CI to ubuntu-22.04 2022-10-31 19:10:49 -05:00
Jack Christensen 4d711aaa73 Remove v5-dev branch from CI 2022-10-31 19:10:21 -05:00
Jack Christensen 05e9234c2e Upgrade setup-go and checkout actions to v3 2022-10-29 17:29:10 -05:00
Jack Christensen 1ec3816a20 pgconn and pgproto use same environment variable for tests as pgx 2022-10-29 13:23:25 -05:00
Jack Christensen 1819959d07 Merge branch 'master' into v5-dev 2022-08-06 06:41:33 -05:00
Jack Christensen 88079de700
Update issue templates 2022-07-30 07:46:10 -05:00
Jack Christensen cb5ddcd6b6
Update issue templates 2022-07-23 10:43:26 -05:00
Jack Christensen 95265a7421 Use Go 1.18 2022-04-09 09:11:19 -05:00
Jack Christensen 7b31b56de9 Reactivate CI for other DB versions 2022-03-22 20:33:24 -05:00
Jack Christensen 1b416b36dc Finish temp removal of PG < 14 from CI 2021-12-11 14:26:04 -06:00
Jack Christensen 066908d4f8 Temporarily remove all PG versions but 14 from CI
Same issue as previous commit removing CockroachDB. numeric type only
supports infinity on PG 14 and there is no easy way in the current
test structure to skip tests based on server version.
2021-12-11 14:15:22 -06:00
Jack Christensen 5fbf907471 Temporarily remove cockroachdb from CI
pgtype has a ton of tests that don't work on CockroachDB. And because of
how the tests are structured it is difficult to skip just those tests.

pgtype may have significant changes before v5 is released so delay
updating these tests.
2021-12-11 14:09:37 -06:00
Jack Christensen 9ae7452196 Remove Go 1.16 from CI
By the time v5 is released 1.17 will be the minimum supported version.
May as well save some CI time in the mean while.
2021-12-11 14:07:52 -06:00
Jack Christensen 6b2a0d99a2 Run CI on v5-dev branch 2021-12-11 13:37:13 -06:00
Jack Christensen 0e293b966c Finish import of pgconn 2021-12-04 14:06:57 -06:00
Jack Christensen a55e88ee48 Do not run CI with verbose
Makes it very difficult to see what is actually failing.
2021-11-20 10:53:51 -06:00
Jack Christensen 09c360f8aa Update supported / tested platforms 2021-11-20 10:25:10 -06:00