Skip to content

feat(bigquery): support us-east7 endpoint overrides in integration tests - #13950

Merged
jinseopkim0 merged 1 commit into
mainfrom
use-us-east7-testing
Jul 29, 2026
Merged

feat(bigquery): support us-east7 endpoint overrides in integration tests#13950
jinseopkim0 merged 1 commit into
mainfrom
use-us-east7-testing

Conversation

@jinseopkim0

@jinseopkim0 jinseopkim0 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Exposes BIGQUERY_ENDPOINT and BIGQUERY_STORAGE_ENDPOINT environment variables to override endpoints in integration tests, making it possible to target regional canary endpoints like us-east7.

b/472499857

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

Copy link
Copy Markdown
Contributor

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 introduces support for overriding BigQuery and BigQuery Storage endpoints via environment variables (BIGQUERY_ENDPOINT and BIGQUERY_STORAGE_ENDPOINT) in integration tests. It refactors several integration tests to use new helper methods in Helper.java that configure clients and settings with these endpoint overrides. I have no feedback to provide.

@jinseopkim0
jinseopkim0 marked this pull request as ready for review July 29, 2026 20:01
@jinseopkim0
jinseopkim0 requested review from a team as code owners July 29, 2026 20:01
@jinseopkim0
jinseopkim0 requested a review from lqiu96 July 29, 2026 20:01
@jinseopkim0
jinseopkim0 enabled auto-merge (squash) July 29, 2026 20:01
.build();
return new RemoteBigQueryHelper(bigqueryOptions);
.setTransportOptions(transportOptions);
String endpoint = System.getenv("BIGQUERY_ENDPOINT");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this already set somewhere in the config?

qq, do we need to use an env var for our ITs? Would it be possible to just hardcode the regional endpoint for all ITs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the questions.

Is this already set somewhere in the config?

No, this is not set. I'm planning on setting it for the kokoro jobs for IT envs, once this PR is merged.

qq, do we need to use an env var for our ITs? Would it be possible to just hardcode the regional endpoint for all ITs?

Using env var rather than hardcoding would be preferrable, in order to have the flexibility to change it or override it easily.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

got it, sounds good

@BeforeAll
static void beforeAll() throws IOException, DescriptorValidationException, InterruptedException {
readClient = BigQueryReadClient.create();
readClient = com.google.cloud.bigquery.storage.v1.it.util.Helper.createBigQueryReadClient();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we import these

@jinseopkim0
jinseopkim0 merged commit 7f6e7e0 into main Jul 29, 2026
220 checks passed
@jinseopkim0
jinseopkim0 deleted the use-us-east7-testing branch July 29, 2026 21:10
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