ci(bigtable): use full location name for clusters in table_admin_integration_test#16036
Conversation
Summary of ChangesHello, 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 addresses a critical regression in the Highlights
Changelog
Using Gemini Code AssistThe 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
Customization To customize 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly updates the WaitForConsistencyCheck integration test to use the full location name when creating clusters, which is now required. I've included one suggestion to make the code for creating cluster configurations more concise.
| auto location_1 = Location(Project(TableTestEnvironment::project_id()), | ||
| TableTestEnvironment::zone_a()); | ||
| auto location_2 = Location(Project(TableTestEnvironment::project_id()), | ||
| TableTestEnvironment::zone_b()); | ||
| auto cluster_config_1 = bigtable::ClusterConfig(location_1.FullName(), 3, | ||
| bigtable::ClusterConfig::HDD); | ||
| auto cluster_config_2 = bigtable::ClusterConfig(location_2.FullName(), 3, | ||
| bigtable::ClusterConfig::HDD); |
There was a problem hiding this comment.
To improve conciseness and avoid repeating Project(TableTestEnvironment::project_id()), you could create a project variable and then construct the ClusterConfig objects directly without intermediate location_1 and location_2 variables.
auto const project = Project(TableTestEnvironment::project_id());
auto cluster_config_1 = bigtable::ClusterConfig(
Location(project, TableTestEnvironment::zone_a()).FullName(), 3,
bigtable::ClusterConfig::HDD);
auto cluster_config_2 = bigtable::ClusterConfig(
Location(project, TableTestEnvironment::zone_b()).FullName(), 3,
bigtable::ClusterConfig::HDD);
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16036 +/- ##
==========================================
- Coverage 92.65% 92.65% -0.01%
==========================================
Files 2339 2339
Lines 215282 215286 +4
==========================================
+ Hits 199470 199472 +2
- Misses 15812 15814 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Post table admin API changes, the WaitForConsistencyCheck test was not specifying the full location name when creating clusters.