Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(compute): shorten paths for Bazel+MSVC #13836

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Mar 25, 2024

MSVC cannot handle paths over 254 characters. Bazel creates protobuf generated files in (relatively) deep directories that include the name of the proto library, and the path to the proto file (twice in our case).

Using a single proto library for all the protos creates shorter paths. We still have a duplicate google/cloud/compute/${service}, but at least the target name is short.

Fixes #13835


This change is Reviewable

MSVC cannot handle paths over 254 characters. Bazel creates protobuf
generated files in (relatively) deep directories that include the name
of the proto library, and the path to the proto file (twice in our
case).

Using a single proto library for all the protos creates shorter paths.
We still have a duplicate `google/cloud/compute/${service}`, but at
least the target name is short.
@product-auto-label product-auto-label bot added the api: compute Issues related to the Compute Engine API. label Mar 25, 2024
@coryan coryan added the gha:full-build Trigger a full build in GHA label Mar 25, 2024
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.04%. Comparing base (d22bca4) to head (e090ac6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13836      +/-   ##
==========================================
- Coverage   93.64%   93.04%   -0.61%     
==========================================
  Files        2258     2174      -84     
  Lines      195073   184802   -10271     
==========================================
- Hits       182681   171945   -10736     
- Misses      12392    12857     +465     

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

@coryan coryan marked this pull request as ready for review March 25, 2024 17:29
@coryan coryan requested a review from a team as a code owner March 25, 2024 17:29
Copy link
Member

@scotthart scotthart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @coryan)

@coryan coryan merged commit 40cd164 into googleapis:main Mar 25, 2024
76 checks passed
@coryan coryan deleted the fix-compute-shorten-paths-for-Bazel-and-MSVC branch March 25, 2024 18:34
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. gha:full-build Trigger a full build in GHA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generated proto file is too long for MSVC
2 participants