Widen grpcio / grpcio-status to ~=MAJOR.MINOR (connect-governed) - #24
Merged
Conversation
…20] *Why* grpcio and grpcio-status are pulled and version-governed by databricks-connect (which we install from the dev group). Pinning them to the runtime's single patch line makes two envs unresolvable locally: - #19 (DBR 14.3): grpcio-status~=1.48.1 (>=1.48.1,<1.49) does not intersect databricks-connect 14.3's grpcio-status>=1.56,<2 -> uv sync has no solution. - #20 (DBR 13.3): grpcio~=1.48.1 pins to 1.48.x, which has no macOS-arm64 wheel -> uv builds from source and fails on Apple Silicon. This is the same class as databricks-sdk, which req() already widens (issue #16). *What* - envgen.py: generalize req()'s databricks-sdk MAJOR.MINOR widening into a CONNECT_GOVERNED = {databricks-sdk, grpcio, grpcio-status} set. Widening keeps the runtime version as the floor while letting databricks-connect's metadata and wheel availability pick the exact version in-range. Docstring + module docstring updated. - test_envgen.py: ReqTest covers grpcio/grpcio-status widening. - Regenerated: grpcio / grpcio-status pins across all envs go from ~=X.Y.Z to ~=X.Y (e.g. grpcio~=1.67.0 -> grpcio~=1.67); #19 -> grpcio-status~=1.48, #20 -> grpcio~=1.48. *Verification* - python -m unittest test_envgen: 15 passing. - All grpcio/grpcio-status pins are now ~=MAJOR.MINOR; no other package lines changed (132 grpc lines swapped, symmetric); all 33 pyproject.toml valid TOML. Co-authored-by: Isaac <no-reply@databricks.com>
rugpanov
marked this pull request as ready for review
August 24, 2026 09:11
rclarey
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19. Closes #20.
Why
grpcioandgrpcio-statusare pulled and version-governed bydatabricks-connect(installed from the dev group). Pinning them to the runtime's single patch line makes two envs unresolvable locally:grpcio-status~=1.48.1(>=1.48.1,<1.49) doesn't intersectdatabricks-connect14.3'sgrpcio-status>=1.56,<2→uv synchas no solution.grpcio~=1.48.1pins to1.48.x, which has no macOS-arm64 wheel →uvbuilds from source and fails on Apple Silicon.This is the same class as
databricks-sdk, whichreq()already widens to~=MAJOR.MINOR(issue #16).What
envgen.py— generalizereq()'sdatabricks-sdkwidening intoCONNECT_GOVERNED = {databricks-sdk, grpcio, grpcio-status}. Widening keeps the runtime version as the floor while lettingdatabricks-connect's metadata and wheel availability pick the exact version in-range. Docstring + module docstring updated.test_envgen.py—ReqTestcoversgrpcio/grpcio-statuswidening.grpcio/grpcio-statuspins across all envs go from~=X.Y.Zto~=X.Y(e.g.grpcio~=1.67.0→grpcio~=1.67); dbr/14.3.x: grpcio-status pin conflicts with databricks-connect (no resolution) #19 →grpcio-status~=1.48, dbr/13.3.x: grpcio 1.48.x has no macOS-arm64 wheel (source build fails locally) #20 →grpcio~=1.48.Verification
python -m unittest test_envgen— 15 passing.grpcio/grpcio-statuspins are now~=MAJOR.MINOR; no other package lines changed (132 grpc lines swapped, symmetric); all 33pyproject.tomlvalid TOML.This pull request and its description were written by Isaac.