Skip to content

Commit 6df030c

Browse files
edespinomy-ship-it
authored andcommitted
test: Add single-node test configurations to CI pipeline
* Add three new test configurations for single-node testing: - ic-singlenode_regress - ic-singlenode_isolation - ic-singlenode_isolation2 * Update build workflow to support tests with configurable number of primary-mirror pairs * Add new test configurations to required checks in .asf.yaml * Fix path quoting in demo cluster creation script
1 parent 43a0c43 commit 6df030c

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

.asf.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ github:
8888
- RPM Install Test Apache Cloudberry
8989
- ic-good-opt-off
9090
- ic-expandshrink
91+
- ic-singlenode_regress
92+
- ic-singlenode_isolation
93+
- ic-singlenode_isolation2
9194
- Generate Apache Cloudberry Build Report
9295

9396
# Pull request review requirements

.github/workflows/build-cloudberry.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -625,18 +625,35 @@ jobs:
625625
strategy:
626626
fail-fast: false # Continue with other tests if one fails
627627
matrix:
628-
test: [ic-good-opt-off, ic-expandshrink]
628+
test:
629+
- ic-good-opt-off
630+
- ic-expandshrink
631+
- ic-singlenode_regress
632+
- ic-singlenode_isolation
633+
- ic-singlenode_isolation2
629634
include:
630635
- test: ic-good-opt-off
631636
make_target: installcheck-good
632637
make_directory: --directory=src/test/regress
638+
num_primary_mirror_pairs: 3
633639
pg_settings:
634640
optimizer: "off"
635641
- test: ic-expandshrink
636642
make_target: installcheck-expandshrink
637643
make_directory: --directory=src/test/isolation2
638-
pg_settings:
639-
optimizer: "off"
644+
num_primary_mirror_pairs: 3
645+
- test: ic-singlenode_regress
646+
make_target: installcheck-singlenode
647+
make_directory: --directory=src/test/singlenode_regress
648+
num_primary_mirror_pairs: 0
649+
- test: ic-singlenode_isolation
650+
make_target: installcheck-singlenode
651+
make_directory: --directory=src/test/isolation
652+
num_primary_mirror_pairs: 0
653+
- test: ic-singlenode_isolation2
654+
make_target: installcheck-singlenode
655+
make_directory: --directory=src/test/singlenode_isolation2
656+
num_primary_mirror_pairs: 0
640657

641658
container:
642659
image: apache/incubator-cloudberry:cbdb-build-rocky9-latest
@@ -874,8 +891,8 @@ jobs:
874891
set -eo pipefail
875892
876893
{
877-
chmod +x ${SRC_DIR}/../cloudberry-devops-release/build_automation/cloudberry/scripts/create-cloudberry-demo-cluster.sh
878-
if ! time su - gpadmin -c "cd ${SRC_DIR} && SRC_DIR=${SRC_DIR} ${SRC_DIR}/../cloudberry-devops-release/build_automation/cloudberry/scripts/create-cloudberry-demo-cluster.sh"; then
894+
chmod +x "${SRC_DIR}"/../cloudberry-devops-release/build_automation/cloudberry/scripts/create-cloudberry-demo-cluster.sh
895+
if ! time su - gpadmin -c "cd ${SRC_DIR} && NUM_PRIMARY_MIRROR_PAIRS='${{ matrix.num_primary_mirror_pairs }}' SRC_DIR=${SRC_DIR} ${SRC_DIR}/../cloudberry-devops-release/build_automation/cloudberry/scripts/create-cloudberry-demo-cluster.sh"; then
879896
echo "::error::Demo cluster creation failed"
880897
exit 1
881898
fi

0 commit comments

Comments
 (0)