Skip to content

feat(compute): update discovery doc to 20260807 and generate new services - #16356

Open
colinmoy wants to merge 2 commits into
googleapis:mainfrom
colinmoy:update_compute_discovery_circa_20260807
Open

feat(compute): update discovery doc to 20260807 and generate new services#16356
colinmoy wants to merge 2 commits into
googleapis:mainfrom
colinmoy:update_compute_discovery_circa_20260807

Conversation

@colinmoy

Copy link
Copy Markdown
Contributor

No description provided.

@colinmoy
colinmoy requested review from a team as code owners August 18, 2026 20:48
@product-auto-label product-auto-label Bot added the api: compute Issues related to the Compute Engine API. label Aug 18, 2026

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

Copy link
Copy Markdown

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 several updates to the Google Cloud C++ SDK, including the addition of new services (advice, cross_site_networks, global_vm_extension_policies) and the expansion of existing ones (addresses, autoscalers, backend_buckets, backend_services, disks, firewalls, forwarding_rules, global_addresses, global_operations, global_public_delegated_prefixes, health_checks). The changes include updating generated code, adding new client and connection classes, and updating proto exports. The review comment regarding the hardcoded path in the update_discovery_doc.sh script is valid and provides an actionable improvement for script robustness.

Comment thread generator/discovery/update_discovery_doc.sh Outdated
@colinmoy
colinmoy force-pushed the update_compute_discovery_circa_20260807 branch 7 times, most recently from 610534e to 6b9c4da Compare August 18, 2026 23:33
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.24%. Comparing base (a20125d) to head (6b9c4da).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16356   +/-   ##
=======================================
  Coverage   92.24%   92.24%           
=======================================
  Files        2227     2227           
  Lines      209614   209626   +12     
=======================================
+ Hits       193351   193373   +22     
+ Misses      16263    16253   -10     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

done

io::log_yellow "Adding new directories to ${COMPUTE_SERVICE_DIRS_BZL_RELATIVE_PATH}"
rm -rf ./cmake-build-debug

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.

We should probably move away from a fixed directory, let's try something like:

CMAKE_BUILD_DIR=$(mktemp -d)

cmake -DGOOGLE_CLOUD_CPP_ENABLE=compute -S . -B ${CMAKE_BUILD_DIR}

Any created directories will get cleaned up periodically.

a\ "${service_dir}"
}
EOT
sed -i -f - "${PROJECT_ROOT}/${COMPUTE_SERVICE_DIRS_BZL_RELATIVE_PATH}" <<EOT

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.

I'm surprised we need to update this manually. Our CMakeLists.txt files are intended to generate the necessary .bzl files for bazel builds. If this is not happening, we should look into the cmake files and address is there.

rm -rf ./cmake-build-debug
cmake -DGOOGLE_CLOUD_CPP_ENABLE=compute -S . -B ./cmake-build-debug
python3 -c '
with open("google/cloud/compute/service_dirs.bzl", "r") as f:

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.

Let's not inject python into this bash script.

Per my previous comment, this cmake configure step should generate both the necessary cmake and .bzl files.

// log, and cannot affect the output of the index.html file.
static auto const kSkippedStatus = std::unordered_set<std::string>{
"STATUS_UNKNOWN", "QUEUED", "WORKING",
"STATUS_UNKNOWN",

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.

Given the formatting changes here and in other non-compute directories, you may need to run checkers-pr one more time.

/// another.
/// *Note*: Moving VMs or disks by using this method might
/// cause unexpected behavior. For more information, see the [known
///
/// issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).

@scotthart scotthart Aug 19, 2026

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.

This markdown link is what's likely causing the docs build to fail. We should look at detecting these relative links

/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behaviior

and expanding them to proper URLs

https://cloud.google.com/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behaviior

@colinmoy
colinmoy force-pushed the update_compute_discovery_circa_20260807 branch 2 times, most recently from eea2344 to 079ebd4 Compare August 19, 2026 22:48
@colinmoy
colinmoy force-pushed the update_compute_discovery_circa_20260807 branch from 079ebd4 to 8787f6c Compare August 19, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: compute Issues related to the Compute Engine API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants