From de872a41432522a7c2d1a9dc5f5d4f09857ae8fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabr=C3=ADzio=20de=20Royes=20Mello?= Date: Sun, 8 Oct 2023 13:58:22 -0300 Subject: [PATCH] PG16: Enable CI --- .github/ci_settings.py | 6 ++++- .github/gh_matrix_builder.py | 40 +++++++++++++++++++++++++++++ .github/workflows/abi.yaml | 14 +++++++++- .github/workflows/coverity.yaml | 4 +-- .github/workflows/memory-tests.yaml | 4 +-- .github/workflows/sqlsmith.yaml | 2 +- 6 files changed, 63 insertions(+), 7 deletions(-) diff --git a/.github/ci_settings.py b/.github/ci_settings.py index 5d0da10554e..4dfbf0c15ea 100644 --- a/.github/ci_settings.py +++ b/.github/ci_settings.py @@ -22,4 +22,8 @@ PG15_LATEST = "15.4" PG15_ABI_MIN = "15.0" -PG_LATEST = [PG13_LATEST, PG14_LATEST, PG15_LATEST] +PG16_EARLIEST = "16.0" +PG16_LATEST = "16.0" +PG16_ABI_MIN = "16.0" + +PG_LATEST = [PG13_LATEST, PG14_LATEST, PG15_LATEST, PG16_LATEST] diff --git a/.github/gh_matrix_builder.py b/.github/gh_matrix_builder.py index 8feb179c22e..110c2c1e36e 100755 --- a/.github/gh_matrix_builder.py +++ b/.github/gh_matrix_builder.py @@ -32,6 +32,8 @@ PG14_LATEST, PG15_EARLIEST, PG15_LATEST, + PG16_EARLIEST, + PG16_LATEST, PG_LATEST, ) @@ -192,17 +194,32 @@ def macos_config(overrides): build_debug_config({"pg": PG15_LATEST, "ignored_tests": ignored_tests}) ) +m["include"].append( + build_debug_config({"pg": PG16_LATEST, "ignored_tests": ignored_tests}) +) + # test timescaledb with release config on latest postgres release in MacOS m["include"].append( build_release_config( macos_config({"pg": PG15_LATEST, "ignored_tests": ignored_tests}) ) ) + +m["include"].append( + build_release_config( + macos_config({"pg": PG16_LATEST, "ignored_tests": ignored_tests}) + ) +) + # test latest postgres release without telemetry m["include"].append( build_without_telemetry({"pg": PG15_LATEST, "ignored_tests": ignored_tests}) ) +m["include"].append( + build_without_telemetry({"pg": PG16_LATEST, "ignored_tests": ignored_tests}) +) + # if this is not a pull request e.g. a scheduled run or a push # to a specific branch like prerelease_test we add additional # entries to the matrix @@ -237,6 +254,11 @@ def macos_config(overrides): m["include"].append( build_debug_config({"pg": PG15_EARLIEST, "ignored_tests": ignored_tests}) ) + + # add debug test for first supported PG16 version + m["include"].append( + build_debug_config({"pg": PG16_EARLIEST, "ignored_tests": ignored_tests}) + ) # add debug tests for timescaledb on latest postgres release in MacOS m["include"].append( @@ -245,12 +267,21 @@ def macos_config(overrides): ) ) + m["include"].append( + build_debug_config( + macos_config({"pg": PG16_LATEST, "ignored_tests": ignored_tests}) + ) + ) + # add release test for latest pg releases m["include"].append(build_release_config({"pg": PG13_LATEST})) m["include"].append(build_release_config({"pg": PG14_LATEST})) m["include"].append( build_release_config({"pg": PG15_LATEST, "ignored_tests": ignored_tests}) ) + m["include"].append( + build_release_config({"pg": PG16_LATEST, "ignored_tests": ignored_tests}) + ) # add apache only test for latest pg versions for PG_LATEST_VER in PG_LATEST: @@ -277,6 +308,15 @@ def macos_config(overrides): } ) ) + m["include"].append( + build_debug_config( + { + "pg": 16, + "snapshot": "snapshot", + "ignored_tests": ignored_tests, + } + ) + ) elif len(sys.argv) > 2: # Check if we need to check for the flaky tests. Determine which test files # have been changed in the PR. The sql files might include other files that diff --git a/.github/workflows/abi.yaml b/.github/workflows/abi.yaml index 0e3473afa13..f3311e7c1e7 100644 --- a/.github/workflows/abi.yaml +++ b/.github/workflows/abi.yaml @@ -21,9 +21,11 @@ jobs: pg13_abi_min: ${{ steps.config.outputs.pg13_abi_min }} pg14_abi_min: ${{ steps.config.outputs.pg14_abi_min }} pg15_abi_min: ${{ steps.config.outputs.pg15_abi_min }} + pg16_abi_min: ${{ steps.config.outputs.pg16_abi_min }} pg13_latest: ${{ steps.config.outputs.pg13_latest }} pg14_latest: ${{ steps.config.outputs.pg14_latest }} pg15_latest: ${{ steps.config.outputs.pg15_latest }} + pg16_latest: ${{ steps.config.outputs.pg16_latest }} steps: - name: Checkout source code @@ -40,7 +42,7 @@ jobs: fail-fast: false matrix: test: [ "13backward", "13forward", "14backward", "14forward", - "15backward", "15forward" ] + "15backward", "15forward", "16backward", "16forward" ] os: [ windows-2019 ] include: - test: 13backward @@ -70,6 +72,16 @@ jobs: builder: ${{ fromJson(needs.config.outputs.pg15_abi_min) }} tester: ${{ fromJson(needs.config.outputs.pg15_latest) }} ignores: partialize_finalize + - test: 16backward + pg: 16 + builder: ${{ fromJson(needs.config.outputs.pg16_latest) }} + tester: ${{ fromJson(needs.config.outputs.pg16_abi_min) }} + ignores: partialize_finalize + - test: 16forward + pg: 16 + builder: ${{ fromJson(needs.config.outputs.pg16_abi_min) }} + tester: ${{ fromJson(needs.config.outputs.pg16_latest) }} + ignores: partialize_finalize steps: diff --git a/.github/workflows/coverity.yaml b/.github/workflows/coverity.yaml index 265ee9e92b3..87e93975e23 100644 --- a/.github/workflows/coverity.yaml +++ b/.github/workflows/coverity.yaml @@ -15,8 +15,8 @@ jobs: fail-fast: false matrix: # run only on the 3 latest PG versions as we have rate limit on coverity - pg: [13, 14, 15] - os: [ubuntu-20.04] + pg: [13, 14, 15, 16] + os: [ubuntu-22.04] steps: - name: Install Dependencies run: | diff --git a/.github/workflows/memory-tests.yaml b/.github/workflows/memory-tests.yaml index 61460fa1e17..9e3b962640a 100644 --- a/.github/workflows/memory-tests.yaml +++ b/.github/workflows/memory-tests.yaml @@ -9,10 +9,10 @@ name: Memory tests jobs: memory_leak: name: Memory leak on insert PG${{ matrix.pg }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: matrix: - pg: [13, 14, 15] + pg: [13, 14, 15, 16] fail-fast: false steps: diff --git a/.github/workflows/sqlsmith.yaml b/.github/workflows/sqlsmith.yaml index 68177ac6f3e..d21a34b62ce 100644 --- a/.github/workflows/sqlsmith.yaml +++ b/.github/workflows/sqlsmith.yaml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: ["ubuntu-22.04"] - pg: [ "15" ] + pg: [ "15", "16" ] build_type: ["Debug"] fail-fast: false env: