Skip to content

Conversation

@svkrieger
Copy link
Contributor

@svkrieger svkrieger commented May 15, 2025

A short explanation of the proposed change:

  • Upgrade gem googleapis-common-protos to newest version including its dependencies.
  • Regenerate logcache, loggregator, diego and locket protobuf files using protoc 30.2
  • Update bump bbs protobuf GH action to use protoc 30.2
  • Update README files for logcache and loggregator on how to generate files

The format of the proto files changed to something rather unreadable. This change was already introduced to protobuf's ruby code generator back in 2023: https://protobuf.dev/news/2023-04-20/

Links to any other associated PRs

Dependebot PR #4329 can be closed afterwards as the dependency is being bumped here.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@svkrieger svkrieger force-pushed the upgrade-protobuf branch 4 times, most recently from 6668afd to 1487c93 Compare May 16, 2025 07:03
@svkrieger svkrieger marked this pull request as ready for review May 19, 2025 14:06
@philippthun philippthun merged commit c380060 into main May 20, 2025
12 checks passed
@svkrieger svkrieger deleted the upgrade-protobuf branch May 20, 2025 11:44
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request May 20, 2025
Changes in cloud_controller_ng:

- Upgrade protobuf
    PR: cloudfoundry/cloud_controller_ng#4359
    Author: Sven Krieger <37476281+svkrieger@users.noreply.github.com>

Dependency updates in cloud_controller_ng:

- build(deps-dev): bump solargraph from 0.54.4 to 0.54.5
    PR: cloudfoundry/cloud_controller_ng#4363
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
philippthun added a commit to sap-contributions/cloud_controller_ng that referenced this pull request Jun 11, 2025
The behavior of 'to_h' for Protobuf objects changed [1]; unset and
default values are now being omitted. Thus the update of Protobuf
libraries [2] led to an incompatible change as the Cloud Controller
returned "null" instead of "0" for the external and internal ports as
part of the process stats endpoint.

With this change the hash is created manually by accessing all fields in
the Protobuf object(s) directly.

[1] protocolbuffers/protobuf#15234
[2] cloudfoundry#4359
philippthun added a commit to sap-contributions/cloud_controller_ng that referenced this pull request Jun 11, 2025
The behavior of 'to_h' for Protobuf objects changed [1]; unset and
default values are now being omitted. Thus the update of Protobuf
libraries [2] led to an incompatible change as the Cloud Controller
returned "null" instead of "0" for the external and internal ports as
part of the process stats endpoint.

With this change the hash is created manually by accessing all fields in
the Protobuf object(s) directly.

[1] protocolbuffers/protobuf#15234
[2] cloudfoundry#4359
philippthun added a commit that referenced this pull request Jun 12, 2025
The behavior of 'to_h' for Protobuf objects changed [1]; unset and
default values are now being omitted. Thus the update of Protobuf
libraries [2] led to an incompatible change as the Cloud Controller
returned "null" instead of "0" for the external and internal ports as
part of the process stats endpoint.

With this change the hash is created manually by accessing all fields in
the Protobuf object(s) directly.

[1] protocolbuffers/protobuf#15234
[2] #4359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants