Skip to content

Explicitly set temp location for BigQueryToDatastoreIT - #4659

Open
Abacn wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
Abacn:fix-template-release-test
Open

Abacn wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
Abacn:fix-template-release-test

Conversation

@Abacn

@Abacn Abacn commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Until an internal bug (b/591904562) fixed, we need to set explicit temp location for classic templates that accesses PipelineOptions.getTempLocation at pipeline execution time

@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.71%. Comparing base (d74f626) to head (36bbb44).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #4659       +/-   ##
=============================================
+ Coverage     41.13%   59.71%   +18.58%     
- Complexity      753     8217     +7464     
=============================================
  Files           210     1122      +912     
  Lines         15443    72762    +57319     
  Branches       1646     8855     +7209     
=============================================
+ Hits           6352    43453    +37101     
- Misses         8567    26408    +17841     
- Partials        524     2901     +2377     
Components Coverage Δ
spanner-templates 84.03% <ø> (∅)
spanner-import-export 72.73% <ø> (∅)
spanner-live-forward-migration 87.66% <ø> (∅)
spanner-live-reverse-replication 79.94% <ø> (∅)
spanner-bulk-migration 88.29% <ø> (∅)
gcs-spanner-dv 86.58% <ø> (∅)
see 934 files with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
@Abacn
Abacn marked this pull request as ready for review December 1, 2026 00:59
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a temporary workaround for an internal issue where classic templates fail to correctly resolve the temporary location during pipeline execution. By explicitly setting the tempLocation in the test configuration, the pipeline is forced to utilize the designated test project's GCS bucket rather than the staging bucket serialized into pre-staged templates.

Highlights

  • Configuration Update: Added an explicit tempLocation to the LaunchConfig in BigQueryToDatastoreIT to ensure correct GCS bucket usage during BigQueryIO export operations.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@Abacn

Abacn commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@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 updates the integration test BigQueryToDatastoreIT.java by explicitly setting the tempLocation environment parameter in the LaunchConfig builder. This ensures that BigQueryIO export reads utilize the test project's GCS bucket instead of the staging bucket serialized into pre-staged Classic Templates. There are no review comments, so I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant