Skip to content

fix(pynumaflow): allow protobuf 7.x and fix stale grpcio pins - #391

Open
isaiah-harville wants to merge 4 commits into
numaproj:mainfrom
isaiah-harville:fix/relax-protobuf-upper-bound
Open

isaiah-harville wants to merge 4 commits into
numaproj:mainfrom
isaiah-harville:fix/relax-protobuf-upper-bound

Conversation

@isaiah-harville

@isaiah-harville isaiah-harville commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes pynumaflow's gRPC and protobuf dependency constraints so it installs alongside current protobuf 7.x projects.

  • Allow protobuf 7.x. protobuf>=6.31.1,<7.0 becomes <8.0. The checked-in 6.31.1 gencode still loads on a 7.x runtime, so nothing is regenerated. The latest grpcio-tools (1.85.1) requires protobuf>=7.35.1, so the old cap blocked it.
  • Raise the grpcio, grpcio-status and grpcio-tools floors from 1.48.1 to 1.74.0. 1.71.x pins protobuf<6, which conflicts with the gencode. 1.74.0 is the first release that accepts protobuf>=6.31.1. This addresses Dependencies pinned incorrectly #332.
  • Move grpcio-tools to the dev group. Only make proto uses it (packages/pynumaflow/Makefile); nothing under pynumaflow/ imports grpc_tools. Users no longer install the protoc toolchain or its protobuf pin. Anyone who relied on it arriving transitively must now install it themselves.

uv.lock is updated to match; locked versions are unchanged.

How it was tested

pytest tests -m "not integration": 341 passed in each of these environments:

  • The locked environment.
  • A fresh environment with protobuf==7.35.1 and no grpcio-tools.

Also checked: with grpcio-tools==1.85.1 installed (resolves to protobuf 7.36.2), import pynumaflow.mapper succeeds.

Not run: integration tests, mypy, pre-commit, make proto with the new toolchain. The dev-only types-protobuf<7 pin is unchanged.

Closes #332

🤖 Generated with Claude Code

@isaiah-harville isaiah-harville changed the title fix(pynumaflow): allow protobuf 7.x fix(pynumaflow): allow protobuf 7.x and fix stale grpcio pins Nov 17, 2026
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.06%. Comparing base (53a30c4) to head (1896f66).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #391   +/-   ##
=======================================
  Coverage   93.06%   93.06%           
=======================================
  Files          68       68           
  Lines        3692     3692           
  Branches      236      236           
=======================================
  Hits         3436     3436           
  Misses        190      190           
  Partials       66       66           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

isaiah-harville and others added 2 commits November 20, 2026 09:09
Raise the protobuf upper bound from <7.0 to <8.0. The checked-in 6.31.1
gencode imports and the unit suite passes (341 tests) on protobuf 7.35.1,
so the cap only blocks projects that already depend on protobuf 7.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: isaiah-harville <harvillerisaiah@gmail.com>
…ndency

grpcio, grpcio-status and grpcio-tools were allowed back to 1.48.1, but
1.71.x pins protobuf<6, which conflicts with the 6.31.1 gencode. 1.74.0
is the first release that accepts protobuf>=6.31.1.

grpcio-tools is only used by 'make proto', so move it to the dev group
instead of shipping its protobuf pin to every user.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: isaiah-harville <harvillerisaiah@gmail.com>
@isaiah-harville
isaiah-harville force-pushed the fix/relax-protobuf-upper-bound branch from 77baa4c to 012aa4e Compare November 20, 2026 15:09
Comment thread packages/pynumaflow/pyproject.toml Outdated
"pytest-cov>=7.1.0",
"black>=26.10.1",
"grpcio-testing>=1.48.1",
"grpcio-testing>=1.74.0",

@kohlisid kohlisid Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is a mismatch between the versions, the stubs were generated with (1.75.0) Could you please make them consistent and update lock file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

resolved!

The checked-in stubs set GRPC_GENERATED_VERSION = '1.75.0' and refuse
older grpcio at import, so the floors must be 1.75.0, not 1.74.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: isaiah-harville <harvillerisaiah@gmail.com>
@isaiah-harville
isaiah-harville force-pushed the fix/relax-protobuf-upper-bound branch from 279fc24 to 3e146e6 Compare December 3, 2026 03:31

This branch has not been deployed

No deployments
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.

Dependencies pinned incorrectly

2 participants