Skip to content

ci(bigquery): configure us-east7 endpoint overrides in Kokoro integration tests - #13971

Open
jinseopkim0 wants to merge 1 commit into
mainfrom
feat/bq-us-east7-kokoro-overrides
Open

ci(bigquery): configure us-east7 endpoint overrides in Kokoro integration tests#13971
jinseopkim0 wants to merge 1 commit into
mainfrom
feat/bq-us-east7-kokoro-overrides

Conversation

@jinseopkim0

@jinseopkim0 jinseopkim0 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Configures BIGQUERY_ENDPOINT and BIGQUERY_STORAGE_ENDPOINT environment variables in Kokoro presubmit configs to test against us-east7 regional endpoints.

Key Changes

  • Kokoro CI: Added us-east7 endpoint overrides to BigQuery integration and GraalVM presubmit configurations.
  • Two-Client Test Setup: Introduced static global fallback clients (globalBigQuery, globalReadClient, globalWriteClient) for tests querying public datasets (bigquery-public-data) or cross-region resources, while standard clients target 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 adds region-specific environment variables for BigQuery and BigQuery Storage endpoints (BIGQUERY_ENDPOINT and BIGQUERY_STORAGE_ENDPOINT) to the Kokoro presubmit and integration configuration files. There are no review comments, and I have no feedback to provide.

@jinseopkim0
jinseopkim0 force-pushed the feat/bq-us-east7-kokoro-overrides branch 19 times, most recently from 52eb330 to 81baaa3 Compare August 3, 2026 19:18
@jinseopkim0
jinseopkim0 marked this pull request as ready for review August 3, 2026 19:25
@jinseopkim0
jinseopkim0 requested review from a team as code owners August 3, 2026 19:25
@jinseopkim0
jinseopkim0 requested a review from lqiu96 August 3, 2026 19:25

@Test
void testListDatasets() {
// This test queries public datasets, which are not supported by regional endpoints.

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.

IIUC, these tests won't run at all in the CIs? I don't think there is a way to dynamically switch between the two or have two jobs.

For the tests that touch the public dataset, would it be better to have two BQ clients?

e.g.
us-east-7 for stuff that creates new datasets/ table
normal endpoint to stuff that touches public datasets?

Maybe a long term fix to align everything would be to rewrite the public dataset tests to create local datasets so we don't need a split of endpoints?

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 catching that. I've updated the code so that we have two BQ clients as suggested.

@jinseopkim0
jinseopkim0 force-pushed the feat/bq-us-east7-kokoro-overrides branch 4 times, most recently from 80f7b86 to 9773809 Compare August 10, 2026 18:35
@jinseopkim0
jinseopkim0 force-pushed the feat/bq-us-east7-kokoro-overrides branch 2 times, most recently from f48f600 to 472ebb0 Compare August 10, 2026 20:01
… tests

Configures the 'BIGQUERY_ENDPOINT' and 'BIGQUERY_STORAGE_ENDPOINT' environment variables in the Kokoro presubmit and GraalVM test configuration files to point to the 'us-east7' regional endpoints.

Additionally, un-skips the integration tests when running against regional endpoints by instantiating separate global client instances inside the tests for the cases that query public datasets (which are only available globally).
@jinseopkim0
jinseopkim0 force-pushed the feat/bq-us-east7-kokoro-overrides branch from 472ebb0 to e8d74fd Compare August 10, 2026 20:22
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