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

chore: manually regen cloudbuild do to breaking changes #4476

Merged
merged 4 commits into from Jul 21, 2021
Merged

chore: manually regen cloudbuild do to breaking changes #4476

merged 4 commits into from Jul 21, 2021

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Jul 21, 2021

I had to manually manipulate the old code directory so that it
could compile. In the future this makes me question if v2 directories
make sense for generated code were we must always match the proto
spec for code to actually work.

I also include a few changes to the generator the helped me regen
and debug what was wrong.
Changes:

feat(cloudbuild/apiv1): Implementation of Build Failure Info: - Added message FailureInfo field
PiperOrigin-RevId: 385847244
Source-Link: googleapis/googleapis@f84d1e2

feat(cloudbuild/apiv1): add a WorkerPools API
BREAKING CHANGE: Proto had a prior definitions of WorkerPool resources which were never supported. This change replaces those resources with definitions that are currently supported.

Committer: @mwiczer
PiperOrigin-RevId: 385610622
Source-Link: googleapis/googleapis@7a1fb83

I had to manually manipulate the old code directory so that it
could compile. In the future this makes me question if v2 directories
make sense for generated code were we must always match the proto
spec for code to actually work.

I also include a few changes to the generator the helped me regen
and debug what was wrong.
Changes:

feat(cloudbuild/apiv1): Implementation of Build Failure Info: - Added message FailureInfo field
  PiperOrigin-RevId: 385847244
  Source-Link: googleapis/googleapis@f84d1e2

feat(cloudbuild/apiv1): add a WorkerPools API
  BREAKING CHANGE: Proto had a prior definitions of WorkerPool resources which were never supported. This change replaces those resources with definitions that are currently supported.

  Committer: @mwiczer
  PiperOrigin-RevId: 385610622
  Source-Link: googleapis/googleapis@7a1fb83
@codyoss codyoss requested a review from a team as a code owner July 21, 2021 16:57
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 21, 2021
@codyoss codyoss requested a review from noahdietz July 21, 2021 16:57
@codyoss
Copy link
Member Author

codyoss commented Jul 21, 2021

@broady I am starting to doubt that v2 directories make sense for generated proto sources for reasons like this.

@noahdietz
Copy link
Contributor

It's a bummer because we made the v2 directory after adding operation_info annotations to the RPCs I think which was a breaking change. Now the original client is the same as the v2 one, right?

@codyoss
Copy link
Member Author

codyoss commented Jul 21, 2021

@noahdietz It is not the same as it is missing a handful of RPCs as of right now, but it could be. But yeah I think the v2 pattern for generated clients might not make sense after seeing all of the trouble it causes.

@codyoss
Copy link
Member Author

codyoss commented Jul 21, 2021

The kokoro failures are due to the breaking changes in this API which are expected as they fix the code to return the proper types that the API exposes. Force pushing.

@codyoss codyoss merged commit 19ea3f8 into googleapis:master Jul 21, 2021
@codyoss codyoss deleted the cloudbuild-breaking branch July 21, 2021 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants