Skip to content

Bump protobuf-related dependencies#315

Merged
llucax merged 2 commits intofrequenz-floss:v0.17.xfrom
llucax:protobuf6-0.17
Jun 11, 2025
Merged

Bump protobuf-related dependencies#315
llucax merged 2 commits intofrequenz-floss:v0.17.xfrom
llucax:protobuf6-0.17

Conversation

@llucax
Copy link
Copy Markdown
Contributor

@llucax llucax commented Jun 11, 2025

Also ignore warnings about protobuf gencode version, as it is guaranteed by protobuf that 2 consecutive major versions are compatible. We are aware that after that we need to update the depencencies, and we'll get an error if we forget anyways.

Copilot AI review requested due to automatic review settings June 11, 2025 07:25
@llucax llucax requested review from a team as code owners June 11, 2025 07:25
@github-actions github-actions Bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Jun 11, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR bumps the protobuf-related dependencies and adjusts version ranges to ensure compatibility, while also updating the pytest configuration to ignore specific protobuf gencode warnings.

  • Bumped dependency versions for protobuf, grpcio-tools, and grpcio.
  • Updated dependency version ranges for frequenz-api-common and googleapis-common-protos.
  • Added pytest settings to enforce verbose output and filter specific warning messages.
Comments suppressed due to low confidence (3)

pyproject.toml:40

  • Verify that the updated protobuf version range (>= 6.31.1, < 8) meets all required compatibility guarantees for your codebase, given the change from the previous upper bound.
"protobuf >= 6.31.1, < 8", # Do not widen beyond 8!

pyproject.toml:44

  • Confirm that the major version upgrade for grpcio does not introduce breaking changes in the components relying on it.
"grpcio >= 1.72.1, < 2", # Do not widen beyond 2!

pyproject.toml:153

  • [nitpick] Consider adding a brief comment to explain why ignoring this specific warning is safe, which may help future maintainers understand the rationale.
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',

@llucax llucax changed the base branch from v0.x.x to v0.17.x June 11, 2025 07:25
@llucax
Copy link
Copy Markdown
Contributor Author

llucax commented Jun 11, 2025

Same as #312 but for v0.17.

@llucax llucax added this to the v0.17.2 milestone Jun 11, 2025
@llucax llucax self-assigned this Jun 11, 2025
@llucax llucax enabled auto-merge June 11, 2025 07:27
Also ignore warnings about protobuf gencode version, as it is guaranteed
by protobuf that 2 consecutive major versions are compatible. We are
aware that after that we need to update the depencencies, and we'll get
an error if we forget anyways.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Ubuntu 20.04 is no longer supported.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax disabled auto-merge June 11, 2025 07:42
@llucax llucax enabled auto-merge June 11, 2025 07:42
@llucax llucax added this pull request to the merge queue Jun 11, 2025
Merged via the queue into frequenz-floss:v0.17.x with commit fba8152 Jun 11, 2025
12 checks passed
@llucax llucax deleted the protobuf6-0.17 branch June 11, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants