Skip to content

Commit 47180d9

Browse files
**Summary:**
Functions depending on function-sdk-python 0.6.0 are giving a segmentation fault. When (re)running the tests for this module, the following is shown: ``` runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.0 is exactly one major version older than the runtime version 6.30.2 at crossplane/function/proto/v1beta1/run_function.proto. Please update the gencode to avoid compatibility violations in the next runtime release. ``` Apparently when renovatebot opened a PR with a bump up on `protobuf` version, the major version change violated the constraint with `grpcio-tools`, which has the following dependency: ``` Collecting protobuf<6.0dev,>=5.26.1 (from grpcio-tools==1.71.0) ``` This makes incompatible to have different versions of protobuf for the `build` venv and the `generate` one. Signed-off-by: Jesús Fernández <[email protected]>
1 parent 9f55079 commit 47180d9

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

crossplane/function/proto/v1/run_function_pb2.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crossplane/function/proto/v1/run_function_pb2_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from crossplane.function.proto.v1 import run_function_pb2 as crossplane_dot_function_dot_proto_dot_v1_dot_run__function__pb2
77

8-
GRPC_GENERATED_VERSION = '1.67.0'
8+
GRPC_GENERATED_VERSION = '1.71.0'
99
GRPC_VERSION = grpc.__version__
1010
_version_not_supported = False
1111

crossplane/function/proto/v1beta1/run_function_pb2.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crossplane/function/proto/v1beta1/run_function_pb2_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from crossplane.function.proto.v1beta1 import run_function_pb2 as crossplane_dot_function_dot_proto_dot_v1beta1_dot_run__function__pb2
77

8-
GRPC_GENERATED_VERSION = '1.67.0'
8+
GRPC_GENERATED_VERSION = '1.71.0'
99
GRPC_VERSION = grpc.__version__
1010
_version_not_supported = False
1111

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers = [
2020
dependencies = [
2121
"grpcio==1.71.0",
2222
"grpcio-reflection==1.*",
23-
"protobuf==6.30.2",
23+
"protobuf==5.29.3", # Must be compatible with grpcio-tools.
2424
"pydantic==2.*",
2525
"structlog==25.*",
2626
]
@@ -45,7 +45,10 @@ dependencies = ["ipython==9.0.2"]
4545
type = "virtual"
4646
detached = true
4747
path = ".venv-generate"
48-
dependencies = ["grpcio-tools==1.71.0"]
48+
dependencies = [
49+
"grpcio-tools==1.71.0",
50+
"protobuf==5.29.3",
51+
]
4952

5053
[tool.hatch.envs.generate.scripts]
5154
protoc = "python -m grpc_tools.protoc --proto_path=. --python_out=. --pyi_out=. --grpc_python_out=. crossplane/function/proto/v1beta1/run_function.proto crossplane/function/proto/v1/run_function.proto"

0 commit comments

Comments
 (0)