From edc96c377ea613701555a7d00007deaa5c9bfaee Mon Sep 17 00:00:00 2001 From: gindibay Date: Fri, 26 Aug 2022 15:23:02 +0300 Subject: [PATCH 1/9] Adds gh actions pipeline for build & test --- .github/workflows/build-package.yml | 60 +++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/build-package.yml diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml new file mode 100644 index 0000000..66ee3af --- /dev/null +++ b/.github/workflows/build-package.yml @@ -0,0 +1,60 @@ +name: Build & Test HLL + +env: + - PG_PRELOAD=hll +on: + push: + branches: + - "**" + + workflow_dispatch: + +jobs: + build_package: + name: Build + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + PGVERSION: + - 9.4 + - 9.5 + - 9.6 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Clone tools branch + run: git clone -b v0.8.18 --depth=1 https://github.com/citusdata/tools.git tools + + - name: Install package dependencies + run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev python3-testresources + + + - name: Before Install + run: | + sudo make -C tools install + setup_apt + nuke_pg + + - name: Install + run: | + install_uncrustify + install_pg + + - name: Before Script + run: | + config_and_start_cluster + echo "extra_float_digits = 0" >> "/etc/postgresql/${PGVERSION}/test/postgresql.conf" + pg_ctlcluster "${PGVERSION}" test restart + + - name: Script + run: | + pg_travis_test \ No newline at end of file From 14cfc09127f81e02188725a209490ac6962c4cb2 Mon Sep 17 00:00:00 2001 From: gindibay Date: Fri, 26 Aug 2022 15:25:44 +0300 Subject: [PATCH 2/9] Adds gh actions pipeline for build & test --- .github/workflows/build-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 66ee3af..a2bdeea 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -57,4 +57,4 @@ jobs: - name: Script run: | - pg_travis_test \ No newline at end of file + pg_travis_test From 16299916d627df505a1ebd2e178aa7f5d2d8ef28 Mon Sep 17 00:00:00 2001 From: gindibay Date: Fri, 26 Aug 2022 15:27:26 +0300 Subject: [PATCH 3/9] Fixes yml error --- .github/workflows/build-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index a2bdeea..578b6e1 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -1,7 +1,7 @@ name: Build & Test HLL env: - - PG_PRELOAD=hll + PG_PRELOAD=hll on: push: branches: From 2065e115e65561d43bfb5081f2c2f047011d55f5 Mon Sep 17 00:00:00 2001 From: gindibay Date: Fri, 26 Aug 2022 15:28:02 +0300 Subject: [PATCH 4/9] Fixes yml error --- .github/workflows/build-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 578b6e1..ab1cef3 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -1,7 +1,7 @@ name: Build & Test HLL env: - PG_PRELOAD=hll + PG_PRELOAD: hll on: push: branches: From 3f59dd5bf7b6d4290ab3143a022cd0978052b680 Mon Sep 17 00:00:00 2001 From: gindibay Date: Fri, 26 Aug 2022 15:32:09 +0300 Subject: [PATCH 5/9] Adds matrix parameter as env variable --- .github/workflows/build-package.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index ab1cef3..7d9d0f7 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -43,18 +43,26 @@ jobs: sudo make -C tools install setup_apt nuke_pg + env: + PGVERSION: {{ matrix.PGVERSION }} - name: Install run: | install_uncrustify install_pg + env: + PGVERSION: {{ matrix.PGVERSION }} - name: Before Script run: | config_and_start_cluster echo "extra_float_digits = 0" >> "/etc/postgresql/${PGVERSION}/test/postgresql.conf" pg_ctlcluster "${PGVERSION}" test restart + env: + PGVERSION: {{ matrix.PGVERSION }} - name: Script run: | pg_travis_test + env: + PGVERSION: {{ matrix.PGVERSION }} From 9f54efbf3275e86d9f665831fb2b2c7494c1af6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrkan=20=C4=B0ndibay?= Date: Fri, 26 Aug 2022 15:46:52 +0300 Subject: [PATCH 6/9] Update build-package.yml --- .github/workflows/build-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 7d9d0f7..441e08b 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -44,14 +44,14 @@ jobs: setup_apt nuke_pg env: - PGVERSION: {{ matrix.PGVERSION }} + PGVERSION: ${{ matrix.PGVERSION }} - name: Install run: | install_uncrustify install_pg env: - PGVERSION: {{ matrix.PGVERSION }} + PGVERSION: ${{ matrix.PGVERSION }} - name: Before Script run: | @@ -59,10 +59,10 @@ jobs: echo "extra_float_digits = 0" >> "/etc/postgresql/${PGVERSION}/test/postgresql.conf" pg_ctlcluster "${PGVERSION}" test restart env: - PGVERSION: {{ matrix.PGVERSION }} + PGVERSION: ${{ matrix.PGVERSION }} - name: Script run: | pg_travis_test env: - PGVERSION: {{ matrix.PGVERSION }} + PGVERSION: ${{ matrix.PGVERSION }} From 26dc10509f15dd1dc08fa3699a0b510410af9def Mon Sep 17 00:00:00 2001 From: Hanefi Onaldi Date: Fri, 26 Aug 2022 15:59:26 +0300 Subject: [PATCH 7/9] Fix broken tests for v2.17 --- sql/setup.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/setup.sql b/sql/setup.sql index 062ab55..1b85514 100644 --- a/sql/setup.sql +++ b/sql/setup.sql @@ -5,3 +5,4 @@ ALTER EXTENSION hll UPDATE TO '2.13'; ALTER EXTENSION hll UPDATE TO '2.14'; ALTER EXTENSION hll UPDATE TO '2.15'; ALTER EXTENSION hll UPDATE TO '2.16'; +ALTER EXTENSION hll UPDATE TO '2.17'; From de8bcb660f766ff209fc6ef073611cb0f5a960b2 Mon Sep 17 00:00:00 2001 From: Hanefi Onaldi Date: Fri, 26 Aug 2022 16:05:33 +0300 Subject: [PATCH 8/9] Update .github/workflows/build-package.yml --- .github/workflows/build-package.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 441e08b..0c28696 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -17,9 +17,6 @@ jobs: fail-fast: false matrix: PGVERSION: - - 9.4 - - 9.5 - - 9.6 - 10 - 11 - 12 From 96d234fb34739ccab7ed3a82b29d6ed9dea6e584 Mon Sep 17 00:00:00 2001 From: gindibay Date: Fri, 26 Aug 2022 16:49:53 +0300 Subject: [PATCH 9/9] Fixes pg15 build --- .github/workflows/build-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 0c28696..f4dc8cf 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -29,7 +29,7 @@ jobs: uses: actions/checkout@v2 - name: Clone tools branch - run: git clone -b v0.8.18 --depth=1 https://github.com/citusdata/tools.git tools + run: git clone -b add-pg15-scripts --depth=1 https://github.com/citusdata/tools.git tools - name: Install package dependencies run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev python3-testresources