Skip to content

Conversation

@bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Dec 8, 2025

What does this Pull Request accomplish?

Add upper bound for mypy-protobuf version

Why should this Pull Request be merged?

mypy-protobuf 3.7.0 requires protobuf v6 at build time, which makes the generated code also require protobuf v6.

What testing has been done?

PR build

Copilot AI review requested due to automatic review settings December 8, 2025 18:46
Copy link
Contributor

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 adds an upper bound constraint on the mypy-protobuf dependency to keep it at version 3.6.x, ensuring continued compatibility with protobuf v4. The change prevents automatic upgrades to mypy-protobuf 3.7.0+, which requires protobuf v6 at build time and would force generated code to also require protobuf v6. This is critical since the repository's packages standardize on protobuf >=4.21 (v4).

Key Changes

  • Constrained mypy-protobuf to >=3.6,<3.7 with clear documentation explaining the rationale
  • Updated poetry.lock to reflect the new constraint and add Python 3.8 wheel entries for PyYAML

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
tools/grpc_generator/pyproject.toml Added upper bound <3.7 to mypy-protobuf version constraint with explanatory comment about protobuf v4 compatibility
tools/grpc_generator/poetry.lock Updated lock file with Python 3.8 PyYAML wheels and new content hash reflecting the dependency constraint change

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Test Results

  120 files  ±0    120 suites  ±0   3m 22s ⏱️ -3s
  249 tests ±0    247 ✅ ±0   2 💤 ±0  0 ❌ ±0 
2 490 runs  ±0  2 460 ✅ ±0  30 💤 ±0  0 ❌ ±0 

Results for commit 007c9f2. ± Comparison against base commit 5a74efd.

♻️ This comment has been updated with latest results.

@bkeryan bkeryan closed this Dec 8, 2025
@bkeryan bkeryan reopened this Dec 8, 2025
@bkeryan
Copy link
Collaborator Author

bkeryan commented Dec 8, 2025

This won't work because Renovate will try to update the version range in pyproject.toml.

Example: ni/measurement-plugin-python#1271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants