304 Commits

Author SHA1 Message Date
Sven Klemm
5cd2c03879 Simplify windows-build-and-test-ignored.yaml
Remove code not needed for the skip workflow of the windows test.
2023-03-06 20:02:20 +01:00
Sven Klemm
8a2f1f916a Fix windows package test
Chocolatey has all the postgres versions we need available so we
can reenable previously disabled tests. But the recent packages
seem to have different versioning schema without a suffix.
2023-03-06 20:02:20 +01:00
Sven Klemm
474b09bdfc Use pgspot 0.5.0 in CI 2023-03-03 19:00:38 +01:00
Sven Klemm
e2e7ae3045 Don't run sanitizer test on individual PRs
Sanitizer tests take a long time to run so we don't want to run them on
individual PRs but instead run them nightly and on commits to master.
2023-03-03 13:31:25 +01:00
Sven Klemm
9574dd8e74 Adjust ARM64 package test
We only package timescaledb for ubuntu kinetic on PG14 because
there are no prebuilt postgres packages available for the other
postgres versions.
2023-03-03 12:56:54 +01:00
Sven Klemm
ce85546b56 Fix ABI test
Pin the OpenSSL version we compile against to OpenSSL 1.1 in
backwards ABI test because OpenSLL 3 is not available across
all supported versions.
2023-02-19 14:35:58 +01:00
Konstantina Skovola
48d4f41d95 Run apt package tests against Ubuntu 22.10 (Kinetic Kudu) 2023-02-14 16:41:36 +02:00
Alexander Kuzmenkov
d00c1f3721 Fix some errors in processing of code coverage data
We were using mismatched compiler and gcov, which led to either
segfaults or errors like "GCOV_TAG_COUNTER_ARCS mismatch". Add some
cmake code that tries to find the gcov that matches the compiler.

This should hopefully fix some of the mysterious missing coverage
problems that we've been experiencing for a while.
2023-02-13 18:38:09 +04:00
Sven Klemm
9ec11d8af6 Bump PG version used in CI to 12.14, 13.10, 14.7 and 15.2 2023-02-12 14:23:12 +01:00
Alexander Kuzmenkov
caf79e0f5e When backporting, fetch the main branch with large depth
Apparently in some cases we're getting a shallow repo in the Github
Actions.
2023-02-08 18:48:53 +04:00
Alexander Kuzmenkov
c4d8f35307 Improve automated backports
A follow-up for the review comments in the previous PR.

1. Create one backport PR per one source PR, even with multiple commits.
1. Add a comment to the source PR if we fail to backport it for some
   reason.
2023-02-02 16:13:33 +04:00
Alexander Kuzmenkov
9133319081 Fix pylint again
Apparently a new version is out and it complains about Exception being
too general.
2023-02-02 08:57:42 +04:00
Alexander Kuzmenkov
739fd00bb9 Add a workflow for automated backporting
1. Find the latest release branch
1. For each commit in main and not in release branch (compared by
   title), find the corresponding PR.
1. If the PR fixes an issue labeled "bug", and neither the PR nor the
   issue are labeled "no-backport", cherry-pick the commits from the PR
onto the release branch, and create a PR with these changes.
2023-02-01 16:25:02 +04:00
Alexander Kuzmenkov
44cd71a602 Fix the python code style check
For an unknown reason, pip started to install an older version of
prospector which is incompatible with the current pylint. Require the
new prospector version explicitly.
2023-02-01 15:00:00 +04:00
Sven Klemm
d8f19e57a0 Bump version of setup-wsl github action
The currently used version pulls in Node.js 12 which is deprecated
on github.

https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2023-02-01 11:53:48 +01:00
Alexander Kuzmenkov
f75a51def7 Run yamllint in CI
Helps find errors in GitHub workflows.
2023-01-31 20:54:02 +04:00
Lakshmi Narayanan Sreethar
1a3e7ad7d1 Run dist_move_chunk as a solo test in PG15
When run in a parallel group, the dist_move_chunk test can get into a
deadlock with another test running a 'DROP DATABASE' command. So, mark
it as a solo test to disallow it from running in a parallel group.

Closes #4972
2023-01-31 14:26:17 +05:30
Sven Klemm
872128438f Update checkout version in changelog-check
Update checkout to not pull in Node.js 12 which is deprecated on
GitHub.

https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
2023-01-30 15:22:08 +01:00
Alexander Kuzmenkov
c89fb2550d Run sqlsmith on all commits in main
This would help to gather more statistics. We have some rare assertion
failures that happen with SQLSmith like #4185
2023-01-30 15:05:57 +04:00
Alexander Kuzmenkov
21a3f8206c Run python linter and formatter in CI
Helps find some errors and cosmetic problems.
2023-01-30 13:49:26 +04:00
Alexander Kuzmenkov
552950d221 Save SQLSmith results to the CI DB
Mostly we are interested in stacktraces and failed queries here.
2023-01-24 20:33:50 +04:00
Konstantina Skovola
effc8efe14 Add workflow to check for CHANGELOG update 2023-01-19 13:04:59 +02:00
Mats Kindahl
8f4fa8e4cc Add build matrix to Windows and Linux builds
Build matrix is missing from the ignore workflows for the Windows and
Linux builds, so this commit adds them.
2023-01-18 09:41:11 +01:00
Alexander Kuzmenkov
6aa3d6e2fc Don't run the APT package test on PRs
We run them nightly on main.
2023-01-17 14:57:17 +04:00
Jan Nidzwetzki
1d3d81491b Update issue workflow actions and used token
This patch updates the used issue workflow actions and ensures that the
'secrets.ORG_AUTOMATION_TOKEN' is used by all actions.
2023-01-17 11:47:22 +01:00
Mats Kindahl
ca9d508ede Add missing ignore files
The workflow ignore files for 32-bit Linux builds and Windows was
missing from #5156 so these are added here.
2023-01-13 14:02:27 +01:00
Mats Kindahl
f36db10826 Do not run regress workflows on benign changes
If only documentation is changed, the full regression check workflow
will still be executed, so this commit will instead skip running the
regression workflows if there are only changes to files that will not
affect the success of the workflow.
2023-01-11 22:42:32 +01:00
Lakshmi Narayanan Sreethar
06eca172bd Fix telemetry_stats test failure in PG15
The telemetry_stats testcase uses random() with seed(1) to generate the
column values on which the hypertable is partitioned. The Postgres commit
postgres/postgres@3804539e48 updates the random() implementation to use a
better algorithim causing the test to generate a different set of rows in
PG15. Due to this the test failed in PG15 as the distrubution stats of
the tuples have now changed. Fixed that by creating separate test
outputs for PG15 and other releases.

Fixes #5037
2023-01-10 21:04:49 +05:30
Lakshmi Narayanan Sreethar
7d3d260afb Skip auto assigning reviewers for draft PRs
Reviewers should be assigned only when the PR is ready for review.
2023-01-10 15:34:57 +05:30
Sven Klemm
7a6101a441 Bump pgspot version used in CI 2023-01-09 11:32:53 +01:00
Jan Nidzwetzki
1751efbaea Improve the PR workflow actions
This patch includes two changes to the PR handling workflow:

(1) It changes the trigger for the workflow to pull_request_target. So,
    PRs can now also be assigned to reviewers if the PR is opened from
    external sources.

(2) A workflow has been added that automatically assigns PRs to the
    author.
2023-01-04 11:11:01 +01:00
Alexander Kuzmenkov
2c70dc622e Run all the tests on every commit in main
If we test every commit in master, we can allow GitHub to merge the PRs
automatically without requiring a manual rebase on the current master.
These rebases are a real time sink.
2023-01-03 16:12:46 +04:00
Sven Klemm
1eacb35107 Show postgres log in apt package test 2022-12-27 10:13:35 +01:00
Sven Klemm
b92f36d765 Add 2.9.1 to update test scripts 2022-12-27 09:24:57 +01:00
Sven Klemm
ca609696d6 Fix Windows package test 2022-12-22 15:40:39 +01:00
Sven Klemm
b1314e63f2 Fix RPM package test for PG15 on centos 7
Installing PG15 on Centos 7 requires the EPEL repository to satisfy
the dependencies.
2022-12-22 13:30:06 +01:00
Sven Klemm
bd20afccbb Add test for PG15 windows package 2022-12-21 10:44:07 +01:00
Sven Klemm
1d51672336 Skip package downgrade test for PG15
Since we currently only have 1 released version that supports PG15
we cannot test downgrade with PG15.
2022-12-20 20:19:15 +01:00
Lakshmi Narayanan Sreethar
a4806827dc Enable PG15 in various CI checks
This commit enables PG15 in the following workflows:
 - Regression Linux
 - ABI test
 - Memory tests
 - Coverity
 - SQLSmith
 - Additional cron tests

Co-authored-by: Bharathy Satish <bharathy@timescale.com>
2022-12-20 23:39:47 +05:30
Sven Klemm
b74f563a33 Run regression tests on pg15 windows 2022-12-20 15:12:24 +01:00
Sven Klemm
08bb21f7e6 2.9.0 Post-release adjustments
Add 2.9.0 to update test scripts and adjust downgrade scripts for
2.9.0. Additionally adjust CHANGELOG to sync with the actual release
CHANGELOG and add PG15 to CI.
2022-12-19 19:10:24 +01:00
Fabrízio de Royes Mello
854b677749 Fix broken postgres install on Windows CI
The last minor versions for PG14 (14.6) and PG15 (15.1) were unlisted by
chocolatey maintainers due to some issues.

Fixed it by hardcoding the 14.5 until the packages become available
again.
2022-12-17 12:10:27 -03:00
Jan Nidzwetzki
940626b1d4 Fix Git permission issue during CI build
The new permissions checks to fix CVE-2022-29187 in Git caused some
issues in our CI pipeline. This patch adds the checkout directory to
Git's "safe.directory" setting.
2022-12-14 16:05:22 +01:00
Jan Nidzwetzki
d92739099b Reduce test group size in sanitizer runs
When the sanitizer is active, the tests require a lot of memory. If they
are run in large parallel groups, out-of-memory situations can occur.
This patch reduces the size of parallel groups to 5 when the sanitizer
is active.
2022-12-09 08:26:47 +01:00
Alexander Kuzmenkov
a01e483bf3 More gdb output in CI
Print locals and arguments.
2022-12-09 08:05:05 +04:00
Jan Nidzwetzki
c76dfa0acb Improve Sanitizer checks
This patch contains two changes to the Sanitizer checks:

(1) All logfiles of the Sanitizer will be uploaded to the
    CI database.

(2) The Sanitizer checks are executed on every PR.
2022-12-08 10:55:17 +01:00
Jan Nidzwetzki
5fd9170b0a Correct sanitizer log directory
So far, we have treated the 'log_path' setting of the sanitizer like a
file. In fact, this value is used as a prefix for the created log file.
Since we expected the exact file name when uploading the sanitizer
output, this file was not found and we lost the messages of the
sanitizer. This PR changes the behavior. We now treat the setting as a
prefix and upload all files created in a new sanitizer output folder.
2022-12-07 21:17:44 +01:00
Bharathy
bfed42c2d3 Fix remote_txn on PG15
In remote_txn, testcases which kill remote processes on data nodes,
tend to rollback transactions and as part of the process, WARNINGS/ERROR
are reported to client. Client however reports WARNINGS/ERROR in different
order intermittently. This is an issue specific to psql utility. Placing
psql in gdb and trying to diagnise the problem does not reproduce the issue.

This patch fixes the tests by not reporting WARNINGS.

Fixes #4837
2022-12-06 12:07:49 +05:30
Sachin
29f35da905 Fix Github CI failures
Not specifying alpine version causes libssl version
to change, which in turn cause error in downgrade tests
as well as ABI tests.
This commit also fixes shellcheck failures.
Some failing windows tests are addd to ignore list.

Co-authored-by: Lakshmi Narayanan Sreethar <lakshmi@timescale.com>
Co-authored-by: Alexander Kuzmenkov <akuzmenkov@timescale.com>
Signed-off-by: Sachin <sachin@timescale.com>
2022-12-05 18:15:21 +05:30
Sven Klemm
83b13cf6f7 Use packaged postgres for sqlsmith and coverity CI
The sqlsmith and coverity workflows used the cache postgres build
but could not produce a build by themselves and therefore relied
on other workflows to produce the cached binaries. This patch
changes those workflows to use normal postgres packages instead
of custom built postgres to remove that dependency.
2022-11-25 21:37:49 +01:00