Skip to content

Commit

Permalink
test: Add single-node test configurations to CI pipeline
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
edespino authored and my-ship-it committed Nov 29, 2024
1 parent 43a0c43 commit 6df030c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ github:
- RPM Install Test Apache Cloudberry
- ic-good-opt-off
- ic-expandshrink
- ic-singlenode_regress
- ic-singlenode_isolation
- ic-singlenode_isolation2
- Generate Apache Cloudberry Build Report

# Pull request review requirements
Expand Down
27 changes: 22 additions & 5 deletions .github/workflows/build-cloudberry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -625,18 +625,35 @@ jobs:
strategy:
fail-fast: false # Continue with other tests if one fails
matrix:
test: [ic-good-opt-off, ic-expandshrink]
test:
- ic-good-opt-off
- ic-expandshrink
- ic-singlenode_regress
- ic-singlenode_isolation
- ic-singlenode_isolation2
include:
- test: ic-good-opt-off
make_target: installcheck-good
make_directory: --directory=src/test/regress
num_primary_mirror_pairs: 3
pg_settings:
optimizer: "off"
- test: ic-expandshrink
make_target: installcheck-expandshrink
make_directory: --directory=src/test/isolation2
pg_settings:
optimizer: "off"
num_primary_mirror_pairs: 3
- test: ic-singlenode_regress
make_target: installcheck-singlenode
make_directory: --directory=src/test/singlenode_regress
num_primary_mirror_pairs: 0
- test: ic-singlenode_isolation
make_target: installcheck-singlenode
make_directory: --directory=src/test/isolation
num_primary_mirror_pairs: 0
- test: ic-singlenode_isolation2
make_target: installcheck-singlenode
make_directory: --directory=src/test/singlenode_isolation2
num_primary_mirror_pairs: 0

container:
image: apache/incubator-cloudberry:cbdb-build-rocky9-latest
Expand Down Expand Up @@ -874,8 +891,8 @@ jobs:
set -eo pipefail
{
chmod +x ${SRC_DIR}/../cloudberry-devops-release/build_automation/cloudberry/scripts/create-cloudberry-demo-cluster.sh
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
chmod +x "${SRC_DIR}"/../cloudberry-devops-release/build_automation/cloudberry/scripts/create-cloudberry-demo-cluster.sh
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
echo "::error::Demo cluster creation failed"
exit 1
fi
Expand Down

0 comments on commit 6df030c

Please sign in to comment.