Skip to content

CI: add smoke test for command validation#84

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

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

Conversation

@tuhaihe
Copy link
Copy Markdown
Member

@tuhaihe tuhaihe commented Apr 9, 2026

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:

@tuhaihe tuhaihe force-pushed the add-smoke-test-ci branch from 1a012ee to 4f92a51 Compare April 9, 2026 02:56
Copy link
Copy Markdown

@leborchuk leborchuk left a comment

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

tuhaihe added 3 commits April 9, 2026 18:50
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 force-pushed the add-smoke-test-ci branch from 10ef2e0 to 05f3901 Compare April 9, 2026 10:50
@tuhaihe tuhaihe merged commit ff44dc6 into apache:main Apr 9, 2026
10 checks passed
Sign up for free to 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