From 4c29a5a2426022a276b84ca4c49c2c732a0fc4ad Mon Sep 17 00:00:00 2001 From: eaydingol Date: Fri, 14 Nov 2025 11:45:42 +0300 Subject: [PATCH] Add a new job to run breaking change detection --- .github/workflows/build_and_test.yml | 35 +++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2a4f2df86..fe8830655 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -32,7 +32,7 @@ jobs: style_checker_image_name: "ghcr.io/citusdata/stylechecker" style_checker_tools_version: "0.8.18" sql_snapshot_pg_version: "17.6" - image_suffix: "-v4df94a0" + image_suffix: "-vacd3502" pg15_version: '{ "major": "15", "full": "15.14" }' pg16_version: '{ "major": "16", "full": "16.10" }' pg17_version: '{ "major": "17", "full": "17.6" }' @@ -404,6 +404,39 @@ jobs: with: flags: ${{ env.PG_MAJOR }}_citus_upgrade codecov_token: ${{ secrets.CODECOV_TOKEN }} + test-citus-minor-upgrade: + name: PG17 - check-citus-minor-upgrade + runs-on: ubuntu-latest + container: + image: "${{ needs.params.outputs.citusupgrade_image_name }}:${{ fromJson(needs.params.outputs.pg17_version).full }}${{ needs.params.outputs.image_suffix }}" + options: --user root + needs: + - params + - build + env: + citus_version: 13.2 + steps: + - uses: actions/checkout@v4 + - uses: "./.github/actions/setup_extension" + with: + skip_installation: true + - name: Install and test citus minor version upgrade + run: |- + gosu circleci \ + make -C src/test/regress \ + check-citus-minor-upgrade \ + bindir=/usr/lib/postgresql/${PG_MAJOR}/bin \ + citus-pre-tar=/install-pg${PG_MAJOR}-citus${citus_version}.tar \ + citus-post-tar=${GITHUB_WORKSPACE}/install-$PG_MAJOR.tar; + - uses: "./.github/actions/save_logs_and_results" + if: always() + with: + folder: ${{ env.PG_MAJOR }}_citus_minor_upgrade + - uses: "./.github/actions/upload_coverage" + if: always() + with: + flags: ${{ env.PG_MAJOR }}_citus_minor_upgrade + codecov_token: ${{ secrets.CODECOV_TOKEN }} upload-coverage: # secret below is not available for forks so disabling upload action for them if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' }}