26 Commits

Author SHA1 Message Date
Sven Klemm
e9066d5531 Remove PG11 from CI
Remove all CI runs against postgres 11
2021-06-01 20:21:06 +02:00
Sven Klemm
72ed3a81c5 Explicitly install clang-9 in CI ubuntu images
GitHub removed default installation of clang-9 from the ubuntu
images but those are required to build postgres with llvm so we have
to explicitly install the required packages.

https://github.com/actions/virtual-environments/pull/3381
2021-05-20 21:26:47 +02:00
Sven Klemm
45384357bd Bump postgres versions used in CI
Change CI tests to run against pg 11.12, 12.7 and 13.3.

The latest postgres versions adjusts the event_trigger test to
output the list of currently defined event triggers making the
test output different when timescaledb is installed since we
define our own event triggers. Due to this change we have to
ignore the result of this test in our CI.

https://github.com/postgres/postgres/commit/f3c45378
2021-05-18 16:22:23 +02:00
Sven Klemm
349b298a05 Install clang-8 for PG11.0 CI test
clang-8 is no longer installed by default in the ubuntu images so
we have to explicitly install it for any actions that require it.

https://github.com/actions/virtual-environments/issues/2950
2021-04-05 17:33:09 +02:00
Sven Klemm
c5c24616f8 Switch CI to Ubuntu 20.04
Switch CI tasks currently running on Ubuntu 18.04 to 20.04 and
also switch some tasks that dont require specific version because
they run in docker containers to use ubuntu-latest instead.
All tasks switched to ubuntu-latest are expected to be ubuntu-version
agnostic because they run their actions in docker containers.
2021-03-22 12:42:58 +01:00
Sven Klemm
d6cd54b5a7 Bump postgres versions used in CI
Run tests on PG 11.11, 12.6 and 13.2
2021-02-12 22:54:32 +01:00
Sven Klemm
9c7b024705 Run regresscheck-t on PG13
This patch enables running regresscheck-t on PG13
2021-02-12 22:18:06 +01:00
Mats Kindahl
63a66524dd Change bootstrap and CMake defaults
In contrast to the default for CMake files, `Release` is used as the
default in `CMakeFiles.txt` which causes the `bootstrap` script to do a
release build with development flags, in particular `-Werror`. Since
warnings are triggered in a release build, this cause the build to
fail while a debug build works fine.

This commit fixes this by removing the `-Werror` flag (by setting
`WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build
and also disable the warnings that (currently) trigger the warnings in
the release build.

The commit also changes some of the GitHub workflows to run without
`WARNINGS_AS_ERRORS` since it should always work without this option
regardless of build type (on release build this should be disabled, on
debug builds this should be enabled).  But it is set to `ON` for the
full release and debug builds to ensure that we do not generate any
warnings, which will capture new surfacing warnings.

Fixes #2770
2021-02-09 15:00:13 +01:00
Sven Klemm
fa42b973f1 Fix typo in CI config
When adding the bugfix for clustered hypertables a typo was
introduced making the PG12.0 test run with PG11 settings.
2021-02-08 10:06:23 +01:00
Sven Klemm
d823987fe9 Fix changing column type of clustered hypertables
When changing the column type of a column that is part of an index
that is being clustered on with either postgres CLUSTER or reorder
the alter type operation would fail with a segfault because it
couldn't lookup the index.
2021-02-06 14:51:04 +01:00
Sven Klemm
3afdf7cc72 Add pg13 to CI build matrix
Since the actual tests have not been adjusted for PG13 yet this
only checks compiling against PG13. A subsequent PR will enable
tests for PG13.
2021-01-15 13:07:52 +01:00
Michael J. Freedman
2c4584c71a Update copyright year to 2021 2021-01-13 17:01:32 -05:00
Mats Kindahl
c6d64e3e8d Fix compile issues in prerelease tests
There are some flags that cannot be used in preprelease tests, which
this commit fixes. It uses the flag `-DWARNINGS_AS_ERRORS=OFF` to not
turn warnings into errors for release builds. In addition, explicit
checks for compiler flags are added instead of using a function, which
for some reason causes problems.

Note that the prerelease tests run on a regular schedule as well.
2020-12-16 11:53:51 +01:00
Ruslan Fomkin
47da8790bc Test latest PG 11.10 and 12.5 2020-11-18 15:26:57 +01:00
gayyappan
b341506cb2 Enable continuous_aggs_policy test
Disable NOTICE messages for time based tables in
continuous_aggs_policy test. The refresh sometimes
does not have anything to update as the intervals
are computed based off now(). This causes intermittent
failures due to NOTICEs that the cagg is up to date.

Remove continuous_aggs_policy from ignores list in CI
scripts.
2020-10-01 16:47:10 -04:00
Ruslan Fomkin
cdb4c8fa4f Ignore flaky test for now
continuous_aggs_policy is flaky and prevents to proceed with current
PRs. This commit ignores it until it is fixed.
2020-10-01 12:40:19 +02:00
Ruslan Fomkin
01fc0de040 Fix failing isolation test on PG11.0
Early version of PG11 produces slightly different output for isolation
tests. Thus the affected tests are ignored.
continuous_aggs_concurrent_refresh is one of them and this commit adds
it to the ignored test list.
2020-09-15 15:30:07 +02:00
Sven Klemm
1c92a29ba3 Fix macos ci builds
Since GitHub updated the macos image used for CI it updated llvm
to a version that is buggy on macos. So this patch disables building
postgres with llvm support on macos. It also fixes the cache suffix
code for macos because it changed with the latest runner version,
and uses the image version now as cache suffix.

https://bugs.llvm.org/show_bug.cgi?id=47226
2020-08-24 17:02:16 +02:00
Sven Klemm
91f64b8177 Run regression tests on PG 11.9 and 12.4
This patch changes all regression tests that were running on 11.8
and 12.3 to 11.9 and 12.4.
2020-08-15 00:38:21 +02:00
Sven Klemm
417908f19b Fix macos build
A recent change changed the macos build to run in release mode
which also changed postgres to be built without assertions.
Since we inherit the assertion setting from postgres this leads
to assertions being disabled for our code as well.
With assertions disabled clang errors on detecting null pointer
dereferences so this patch turns assertions for macos back on.
Since the postgres build is cached this took not effect immediately
and remained unnoticed in the CI run against the PR introducing the
change.
2020-08-01 17:24:24 +02:00
Ruslan Fomkin
f62fd957b7 Test both debug and release on MacOS in CI
Switches MacOS test in PR to run release, so the build time is
reduced. Adds the test in Debug to scheduled job.
2020-07-31 23:08:53 +02:00
Sven Klemm
5bb4bfdf50 Ignore results of flaky tests 2020-07-08 19:16:37 +02:00
Sven Klemm
c96216e631 Improve github action stacktrace handling
Check for coredumps and only execute the stracktrace if there are
actually coredumps. This patch also changes the log handling to
always collect logs and upload them cause they might have useful
information even when all steps succeed. Additionally a list
of all failed tests is shown before the regression diff.
This patch also disables fail-fast so a single failed job does
not cancel other jobs still in progress.
2020-06-29 17:50:53 +02:00
Sven Klemm
0d2cc046c2 Ignore continuous_aggs_insert and continuous_aggs_multi on PG11.0
The log output in the isolation tests when running on PG 11.0 seems
to be suppressed and not be recorded leading to a diff in the test
output.
2020-06-24 21:20:17 +02:00
Sven Klemm
b810dd3780 Add MacOS regression tests 2020-06-19 00:05:37 +02:00
Sven Klemm
0bff7dcac3 Run linux regression tests as GitHub action
Since we want to run additional test configurations when triggered
by a push to prerelease_test or by cron but github actions don't
allow a dynamic matrix via yaml configuration we generate the matrix
with a python script. While we could always have the full matrix
and have if checks on every step that would make the actual checks
harder to browse because the workflow will have lots of entries and
only by navigating into the individual jobs would t sit be visible
if a job was actually run.
Additionally we set fail-fast to true for pull requests and false
for other event types.
2020-06-15 00:56:33 +02:00