This is an automated email from the ASF dual-hosted git repository.

x4m pushed a commit to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/REL_2_STABLE by this push:
     new 04c009d9bc8 REL_2_STABLE: Fix binary swap test failure on PG version 
bump (#1634)
04c009d9bc8 is described below

commit 04c009d9bc8432388b4662be6af90161108c220a
Author: Dianjin Wang <[email protected]>
AuthorDate: Mon Mar 23 17:35:04 2026 +0800

    REL_2_STABLE: Fix binary swap test failure on PG version bump (#1634)
---
 .github/workflows/binary-swap-check.yml      | 23 ++++++++++++++++++++---
 configure                                    |  2 +-
 configure.ac                                 |  2 +-
 src/test/binary_swap/expected/diff_dumps.out |  2 +-
 src/test/binary_swap/sql/diff_dumps.sql      |  2 +-
 5 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/binary-swap-check.yml 
b/.github/workflows/binary-swap-check.yml
index c2447278b30..3d3f5847eb7 100644
--- a/.github/workflows/binary-swap-check.yml
+++ b/.github/workflows/binary-swap-check.yml
@@ -565,6 +565,11 @@ jobs:
           echo "$CATALOG_VERSION"
           echo "BASELINE_CATALOG_VERSION=$CATALOG_VERSION" >> "$GITHUB_ENV"
 
+          echo "Baseline PostgreSQL Kernel Version:"
+          PG_VERSION=$("${BASELINE_INSTALL_DIR}/bin/pg_config" --version 
2>/dev/null || echo "N/A")
+          echo "$PG_VERSION"
+          echo "BASELINE_PG_VERSION=$PG_VERSION" >> "$GITHUB_ENV"
+
           ls -la "${BASELINE_INSTALL_DIR}"
 
       - name: Install Current RPM
@@ -611,6 +616,11 @@ jobs:
           echo "$CATALOG_VERSION"
           echo "CURRENT_CATALOG_VERSION=$CATALOG_VERSION" >> "$GITHUB_ENV"
 
+          echo "Current PostgreSQL Kernel Version:"
+          PG_VERSION=$("${CURRENT_INSTALL_DIR}/bin/pg_config" --version 
2>/dev/null || echo "N/A")
+          echo "$PG_VERSION"
+          echo "CURRENT_PG_VERSION=$PG_VERSION" >> "$GITHUB_ENV"
+
           ls -la "${CURRENT_INSTALL_DIR}"
 
       - name: Setup pg_regress
@@ -712,15 +722,18 @@ jobs:
             echo "No regression diffs found - test passed"
           fi
 
-      - name: Final Catalog Version Summary
+      - name: Final Version Summary
         if: always()
         run: |
           echo "=== Catalog Version Comparison ==="
           echo "Baseline Catalog Version: ${BASELINE_CATALOG_VERSION:-N/A}"
           echo "Current Catalog Version:  ${CURRENT_CATALOG_VERSION:-N/A}"
-          echo ""
           echo "Catalog Status: $([[ "$BASELINE_CATALOG_VERSION" == 
"$CURRENT_CATALOG_VERSION" ]] && echo "✅ IDENTICAL" || echo "🔍 DIFFERENT")"
-          echo "=== Comparison completed ==="
+          echo ""
+          echo "=== PostgreSQL Kernel Version Comparison ==="
+          echo "Baseline PG Version: ${BASELINE_PG_VERSION:-N/A}"
+          echo "Current PG Version:  ${CURRENT_PG_VERSION:-N/A}"
+          echo "PG Kernel Status: $([[ "$BASELINE_PG_VERSION" == 
"$CURRENT_PG_VERSION" ]] && echo "✅ IDENTICAL" || echo "🔍 DIFFERENT")"
 
       - name: Generate Report
         if: always()
@@ -749,6 +762,10 @@ jobs:
           **Baseline Catalog Version**: ${BASELINE_CATALOG_VERSION}
           **Current Catalog Version**: ${CURRENT_CATALOG_VERSION}
 
+          ## PostgreSQL Kernel Version
+          **Baseline PG Version**: ${BASELINE_PG_VERSION}
+          **Current PG Version**: ${CURRENT_PG_VERSION}
+
           ${MESSAGE}
           
           EOF
diff --git a/configure b/configure
index b61f7eda7b6..92ea7d0b9c0 100755
--- a/configure
+++ b/configure
@@ -2920,7 +2920,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS 
$LDFLAGS conftest.$ac_ext $
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
-PG_PACKAGE_VERSION=14.4
+PG_PACKAGE_VERSION=14.5
 
 
 
diff --git a/configure.ac b/configure.ac
index d2ec14cf926..c716e31f080 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@ dnl The PACKAGE_VERSION from upstream PostgreSQL is 
maintained in the
 dnl PG_PACKAGE_VERSION variable, when merging make sure to update this
 dnl variable with the merge conflict from the AC_INIT() statement.
 AC_INIT([Apache Cloudberry], [2.1.0-incubating], [[email protected]], 
[], [https://cloudberry.apache.org/])
-[PG_PACKAGE_VERSION=14.4]
+[PG_PACKAGE_VERSION=14.5]
 AC_SUBST(PG_PACKAGE_VERSION)
 
 dnl m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf 
version 2.69 is required.
diff --git a/src/test/binary_swap/expected/diff_dumps.out 
b/src/test/binary_swap/expected/diff_dumps.out
index 80c56283bb0..12bef96903e 100644
--- a/src/test/binary_swap/expected/diff_dumps.out
+++ b/src/test/binary_swap/expected/diff_dumps.out
@@ -1 +1 @@
-\! diff dump_other.sql dump_current.sql
+\! diff -I '^-- Dumped from database version' dump_other.sql dump_current.sql
diff --git a/src/test/binary_swap/sql/diff_dumps.sql 
b/src/test/binary_swap/sql/diff_dumps.sql
index 80c56283bb0..12bef96903e 100644
--- a/src/test/binary_swap/sql/diff_dumps.sql
+++ b/src/test/binary_swap/sql/diff_dumps.sql
@@ -1 +1 @@
-\! diff dump_other.sql dump_current.sql
+\! diff -I '^-- Dumped from database version' dump_other.sql dump_current.sql


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to