Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/build_and_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,28 @@ jobs:
cd ${GOPATH}/src/github.com/apache/cloudberry-backup
make build

- name: Smoke Test
run: |
set -euo pipefail
cd ${GOPATH}/src/github.com/apache/cloudberry-backup
echo "Running smoke tests..."
echo "=== Testing gpbackup ==="
${GOPATH}/bin/gpbackup --version
${GOPATH}/bin/gpbackup --help > /dev/null
echo "=== Testing gprestore ==="
${GOPATH}/bin/gprestore --version
${GOPATH}/bin/gprestore --help > /dev/null
echo "=== Testing gpbackup_helper ==="
${GOPATH}/bin/gpbackup_helper --version
${GOPATH}/bin/gpbackup_helper --help > /dev/null
echo "=== Testing gpbackup_s3_plugin ==="
${GOPATH}/bin/gpbackup_s3_plugin --version
${GOPATH}/bin/gpbackup_s3_plugin --help > /dev/null
echo "=== Testing gpbackman ==="
${GOPATH}/bin/gpbackman --version
${GOPATH}/bin/gpbackman --help > /dev/null
echo "=== All smoke tests passed ==="

- name: Unit Test
run: |
cd ${GOPATH}/src/github.com/apache/cloudberry-backup
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/cloudberry-backup-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
strategy:
fail-fast: false
matrix:
test_target: [unit, integration, end_to_end, s3_plugin_e2e, regression, scale]
test_target: [smoke, unit, integration, end_to_end, s3_plugin_e2e, regression, scale]

steps:
- name: Free Disk Space
Expand Down Expand Up @@ -316,6 +316,26 @@ jobs:

set +e
case "${TEST_TARGET}" in
smoke)
Comment thread
tuhaihe marked this conversation as resolved.
set -e
echo "Running smoke tests..."
echo "=== Testing gpbackup ==="
${GPHOME}/bin/gpbackup --version
${GPHOME}/bin/gpbackup --help > /dev/null
echo "=== Testing gprestore ==="
${GPHOME}/bin/gprestore --version
${GPHOME}/bin/gprestore --help > /dev/null
echo "=== Testing gpbackup_helper ==="
${GPHOME}/bin/gpbackup_helper --version
${GPHOME}/bin/gpbackup_helper --help > /dev/null
echo "=== Testing gpbackup_s3_plugin ==="
${GPHOME}/bin/gpbackup_s3_plugin --version
${GPHOME}/bin/gpbackup_s3_plugin --help > /dev/null
echo "=== Testing gpbackman ==="
${GPHOME}/bin/gpbackman --version
${GPHOME}/bin/gpbackman --help > /dev/null
echo "=== All smoke tests passed ===" | tee "${TEST_LOG_ROOT}/cloudberry-backup-smoke.log"
;;
unit)
make unit 2>&1 | tee "${TEST_LOG_ROOT}/cloudberry-backup-unit.log"
;;
Expand Down
Loading