@@ -340,9 +340,67 @@ jobs:
340340 {"test":"ic-cbdb-parallel",
341341 "make_configs":["src/test/regress:installcheck-cbdb-parallel"]
342342 },
343- {"test":"ic-behave",
343+ {"test":"ic-behave-state ",
344344 "make_configs":["gpMgmt/:behave"],
345345 "test_kind":"behave",
346+ "behave_features":[
347+ "test/behave/mgmt_utils/analyzedb.feature",
348+ "test/behave/mgmt_utils/gp_bash_functions.feature",
349+ "test/behave/mgmt_utils/gpcheckcat.feature",
350+ "test/behave/mgmt_utils/gpcheckperf.feature",
351+ "test/behave/mgmt_utils/gpconfig.feature",
352+ "test/behave/mgmt_utils/minirepro.feature",
353+ "test/behave/mgmt_utils/gpstart.feature",
354+ "test/behave/mgmt_utils/gpstate.feature",
355+ "test/behave/mgmt_utils/gpstop.feature"
356+ ],
357+ "enable_core_check":false
358+ },
359+ {"test":"ic-behave-init",
360+ "make_configs":["gpMgmt/:behave"],
361+ "test_kind":"behave",
362+ "behave_features":[
363+ "test/behave/mgmt_utils/gpactivatestandby.feature",
364+ "test/behave/mgmt_utils/gpinitsystem.feature",
365+ "test/behave/mgmt_utils/gpinitstandby.feature"
366+ ],
367+ "enable_core_check":false
368+ },
369+ {"test":"ic-behave-mirror",
370+ "make_configs":["gpMgmt/:behave"],
371+ "test_kind":"behave",
372+ "behave_features":[
373+ "test/behave/mgmt_utils/gpaddmirrors.feature",
374+ "test/behave/mgmt_utils/gpmovemirrors.feature",
375+ "test/behave/mgmt_utils/gprecoverseg.feature",
376+ "test/behave/mgmt_utils/gpreload.feature",
377+ "test/behave/mgmt_utils/replication_slots.feature"
378+ ],
379+ "enable_core_check":false
380+ },
381+ {"test":"ic-behave-expand",
382+ "make_configs":["gpMgmt/:behave"],
383+ "test_kind":"behave",
384+ "behave_features":[
385+ "test/behave/mgmt_utils/gpexpand.feature"
386+ ],
387+ "enable_core_check":false
388+ },
389+ {"test":"ic-behave-package",
390+ "make_configs":["gpMgmt/:behave"],
391+ "test_kind":"behave",
392+ "behave_features":[
393+ "test/behave/mgmt_utils/gppkg.feature"
394+ ],
395+ "enable_core_check":false
396+ },
397+ {"test":"ic-behave-ssh",
398+ "make_configs":["gpMgmt/:behave"],
399+ "test_kind":"behave",
400+ "behave_features":[
401+ "test/behave/mgmt_utils/gpssh.feature",
402+ "test/behave/mgmt_utils/gpssh_exkeys.feature"
403+ ],
346404 "enable_core_check":false
347405 }
348406 ]
@@ -1459,14 +1517,20 @@ jobs:
14591517 if [ "${{ matrix.test_kind }}" == "behave" ]; then
14601518 echo "=== Executing Behave test ==="
14611519 config_log="build-logs/details/make-${{ matrix.test }}-config$i.log"
1520+ behave_targets="${{ join(matrix.behave_features, ' ') }}"
14621521
14631522 echo "Installing OS dependencies for Behave..."
14641523 dnf install -y libffi-devel || echo "Warning: failed to install libffi-devel"
14651524
14661525 echo "Installing Python dependencies for Behave..."
14671526 su - gpadmin -c "pip3 install --user -r ${SRC_DIR}/gpMgmt/requirements-dev.txt || pip install --user -r ${SRC_DIR}/gpMgmt/requirements-dev.txt"
1527+
1528+ echo "Behave feature group:"
1529+ for feature in $behave_targets; do
1530+ echo "- $feature"
1531+ done
14681532
1469- if ! time su - gpadmin -c "cd ${SRC_DIR}/gpMgmt && source /usr/local/cloudberry-db/cloudberry-env.sh && source ${SRC_DIR}/gpAux/gpdemo/gpdemo-env.sh && PYTHONPATH=${SRC_DIR}/gpMgmt:\$PYTHONPATH behave test/behave/mgmt_utils/ " \
1533+ if ! time su - gpadmin -c "cd ${SRC_DIR}/gpMgmt && source /usr/local/cloudberry-db/cloudberry-env.sh && source ${SRC_DIR}/gpAux/gpdemo/gpdemo-env.sh && PYTHONPATH=${SRC_DIR}/gpMgmt:\$PYTHONPATH behave $behave_targets " \
14701534 2>&1 | tee -a "$config_log"; then
14711535 echo "::warning::Test execution failed for Behave"
14721536 overall_status=1
0 commit comments