Skip to content

CI: add smoke test for command validation - #84

Merged
tuhaihe merged 3 commits into
apache:mainfrom
tuhaihe:add-smoke-test-ci
Apr 9, 2026
Merged

CI: add smoke test for command validation#84
tuhaihe merged 3 commits into
apache:mainfrom
tuhaihe:add-smoke-test-ci

Conversation

@tuhaihe

Copy link
Copy Markdown
Member

Add smoke test to verify all cloudberry-backup commands (gpbackup, gprestore, gpbackup_helper, gpbackup_s3_plugin, gpbackman) can be built, installed to GPHOME, and executed with --version and --help flags.

This provides fast feedback on basic functionality before running more expensive integration tests.

closes: #ISSUE_Number


Change logs

Describe your change clearly, including what problem is being solved or what document is being added or updated.

Contributor's checklist

Here are some reminders before you submit your pull request:

Comment thread.github/workflows/cloudberry-backup-ci.yml

@leborchukleborchuk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compared it with the generated package contents:

apache-cloudberry-backup-incubating-2.1.0-linux-amd64/bin/gpbackman
apache-cloudberry-backup-incubating-2.1.0-linux-amd64/bin/gpbackup_helper
apache-cloudberry-backup-incubating-2.1.0-linux-amd64/bin/gpbackup_s3_plugin
apache-cloudberry-backup-incubating-2.1.0-linux-amd64/bin/gprestore
apache-cloudberry-backup-incubating-2.1.0-linux-amd64/bin/gpbackup

All binaries in a place. Also manually checked if version and help works. Everything is Ok, print --version is good for smoke test

Add smoke tests to verify all cloudberry-backup commands (gpbackup,
gprestore, gpbackup_helper, gpbackup_s3_plugin, gpbackman) can be
built and executed with --version and --help flags.
- build_and_unit_test.yml: Test from GOPATH/bin after build
- cloudberry-backup-ci.yml: Test from GPHOME/bin after install
This provides fast feedback on basic functionality before running
more expensive integration tests.
@tuhaihe
tuhaihe merged commit ff44dc6 into apache:mainApr 9, 2026
10 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@tuhaihe@woblerr@leborchuk