@@ -610,27 +610,24 @@ jobs:
610610
611611 ln -sfn "${BASELINE_INSTALL_DIR}" "${CBDB_INSTALL_DIR}"
612612 su - gpadmin -c "
613+ # 1. Set up environment using baseline to allow cluster creation
613614 if [ -f ${CBDB_INSTALL_DIR}/cloudberry-env.sh ]; then
614615 source ${CBDB_INSTALL_DIR}/cloudberry-env.sh
615616 else
616617 source ${CBDB_INSTALL_DIR}/greenplum_path.sh
617618 fi
619+
620+ # 2. Create the cluster
618621 cd ${GITHUB_WORKSPACE}/gpAux/gpdemo
619- make cluster
620- source gpdemo-env.sh
621- gpstate -s
622- "
623-
624- # Now run the test script
625- # The script will:
626- # 1. Start baseline (-b)
627- # 2. Dump
628- # 3. Swap to current (-c)
629- # 4. Dump & Verify
630-
631- su - gpadmin -c "
632- cd ${GITHUB_WORKSPACE}/gpAux/gpdemo
622+ if ! make cluster; then
623+ echo '::error::Failed to create gpdemo cluster'
624+ exit 1
625+ fi
626+
627+ # 3. Load cluster-specific environment (port, data dir)
633628 source gpdemo-env.sh
629+
630+ # 4. Run the actual binary swap test script
634631 cd ${SRC_DIR}/src/test/binary_swap
635632 ./test_binary_swap.sh -b ${BASELINE_INSTALL_DIR} -c ${CURRENT_INSTALL_DIR}
636633 " 2>&1 | tee -a "${LOGS_DIR}/details/test_binary_swap.log" || TEST_RESULT=$?
@@ -640,6 +637,29 @@ jobs:
640637 echo "test_passed=false" >> "$GITHUB_OUTPUT"
641638 exit 1
642639 fi
640+
641+ - name : Check and Display Regression Diffs
642+ if : always()
643+ run : |
644+ echo "Checking for regression diffs in ${SRC_DIR}/src/test/binary_swap"
645+ if [ -d "${SRC_DIR}/src/test/binary_swap" ]; then
646+ find "${SRC_DIR}/src/test/binary_swap" -name "*.diff" | while read diff_file; do
647+ echo "======================================================================"
648+ echo "Diff in ${diff_file}:"
649+ echo "----------------------------------------------------------------------"
650+ cat "${diff_file}"
651+ echo "======================================================================"
652+ done
653+
654+ # Also check for regression.diffs
655+ if [ -f "${SRC_DIR}/src/test/binary_swap/regression.diffs" ]; then
656+ echo "======================================================================"
657+ echo "Content of regression.diffs:"
658+ echo "----------------------------------------------------------------------"
659+ cat "${SRC_DIR}/src/test/binary_swap/regression.diffs"
660+ echo "======================================================================"
661+ fi
662+ fi
643663 echo "test_passed=true" >> "$GITHUB_OUTPUT"
644664
645665 - name : Generate Report
0 commit comments