Skip to content

chore(bigquery-jdbc): Force integration tests to use per-run datasets#13278

Merged
logachev merged 2 commits into
mainfrom
kirl/integration_test_dataset
May 27, 2026
Merged

chore(bigquery-jdbc): Force integration tests to use per-run datasets#13278
logachev merged 2 commits into
mainfrom
kirl/integration_test_dataset

Conversation

@logachev
Copy link
Copy Markdown
Contributor

Currently tests rely on existing datasets. Some of them also try to create tables without unique names (e.g. FakeTable) which results in failures if two integration tests are running concurrently.

This change eliminates dependency on JDBC_INTEGRATION_DATASET and JDBC_INTEGRATION_DATASET_2 and relies on the new unique dataset that is removed up after the run.

This will also allow us not to rely on table cleanup as the entire dataset will be removed.

@logachev logachev requested review from a team as code owners May 26, 2026 23:37
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the integration tests to use dynamically generated shared datasets instead of hardcoded dataset names, introducing automatic cleanup via JVM shutdown hooks. The reviewer identified that sharing a single dataset across multiple test classes can lead to test interference and metadata query pollution. To resolve this, the reviewer suggested introducing a getUniqueDataset() helper method in ITBase to provide isolated datasets for test classes that do not need to share resources.

@logachev logachev merged commit be285d4 into main May 27, 2026
176 checks passed
@logachev logachev deleted the kirl/integration_test_dataset branch May 27, 2026 18:13
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.

2 participants