feat(bigqueryanalyticshub): add multi-region support to listings and …#16156
Conversation
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @ScottSuarez, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
@shashambhavi PTAL. LGTM from my side. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 5930 Click here to see the affected service packages
Action takenFound 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🔴 Tests failed when rerunning REPLAYING mode: Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. 🟢 All tests passed! |
|
hey, I see one test failed when rerunning REPLAYING mode: |
ScottSuarez
left a comment
There was a problem hiding this comment.
The failing test looks unrelated. Looks like we have 'steps' defined on the examples which don't exist on the example schema. Could we remove them - I suspect this is due to the migration from samples back to examples.
|
@ScottSuarez I have addressed your comment, kindly let me know if anything else is required on my end. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 5950 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🔴 Tests failed when rerunning REPLAYING mode: Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. 🟢 All tests passed! |
e00a384
Description
This PR adds multi-region support to the BigQuery Analytics Hub
listingandlisting_subscriptionresources in thegoogle-betaprovider. This enhancement allows publishers to specify existing dataset replicas and allows subscribers to request replicas for their destination datasets.This work takes over and finalizes the logic from the original PR #14481.
Key Changes
replica_locationsandeffective_replicasfields togoogle_bigquery_analytics_hub_listing.replica_locationsfield togoogle_bigquery_analytics_hub_listing_subscription.min_version: 'beta'in YAML and implemented version guards ({{- if ne ... }}) in renamed.go.tmpltest files to correctly restrict the feature to the beta provider.tpgresource.CaseDiffSuppresstolocationfields to allow case-insensitive region input.CaseInsensitiveHashfunction incommon_diff_suppress.goand configuredset_hash_funcin YAML to ensure thereplica_locationsSet handles case differences (e.g., "eu" vs "EU") without triggering a diff.ProtoV5ProviderBetaFactoriesfor beta-specific acceptance tests.Testing Performed
Manual verification in a test project confirmed:
Bypass Note
BYPASS_BQUI_SCREENSHOT_BAN_PRESUBMIT=Updating existing screenshot goldens to reflect Terraform provider changes for the multi-region feature.