Skip to content

Conversation

@robertmu
Copy link
Contributor

Refactor the unit test framework to properly support running tests against different database types (GPDB and CBDB) and versions.

  • Introduce TEST_DB_TYPE and rename TEST_GPDB_VERSION to TEST_DB_VERSION in the Makefile for clearer test configuration.

  • Update test utilities to use these new environment variables to set up the correct database context for each test run.

  • Dynamically generate test data in restore/wrappers_test.go to prevent version compatibility panics when running the full test suite.

This makes our testing more robust and easier to maintain.

Fixes #57

@tuhaihe tuhaihe self-requested a review October 14, 2025 03:16
Refactor the unit test framework to properly support running tests
against different database types (GPDB and CBDB) and versions.

- Introduce `TEST_DB_TYPE` and rename `TEST_GPDB_VERSION` to
  `TEST_DB_VERSION` in the Makefile for clearer test configuration.

- Update test utilities to use these new environment variables to
  set up the correct database context for each test run.

- Dynamically generate test data in `restore/wrappers_test.go` to
  prevent version compatibility panics when running the full
  test suite.

This makes our testing more robust and easier to maintain.

Fixes apache#57
@tuhaihe tuhaihe merged commit 4a23f30 into apache:main Oct 15, 2025
1 check 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.

Makefile: can remove line68-71?

2 participants