Skip to content

Commit c0487cc

Browse files
committed
fix: Prevent protobuf downgrade breaking grpc health checks
Signed-off-by: Siddhesh Khairnar <khairnarsiddhesh4057@gmail.com>
1 parent 3dfadb2 commit c0487cc

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

‎.github/workflows/unit_tests.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ jobs:
6262
export PATH="${{ github.workspace }}/.venv/bin:$PATH"
6363
6464
# Dynamically detect site-packages for uv env
65-
SITE_PACKAGES=$(uv run python -c "import site; print(site.getsitepackages()[0])")
65+
# --no-sync: env was already installed via hashed uv pip sync; a fresh
66+
# uv sync can downgrade protobuf and break grpcio-health-checking.
67+
SITE_PACKAGES=$(uv run --no-sync python -c "import site; print(site.getsitepackages()[0])")
6668
6769
# Preserve any existing PYTHONPATH and add repo + site-packages
6870
export PYTHONPATH="${{ github.workspace }}/sdk/python:${PYTHONPATH}:$SITE_PACKAGES"

‎Makefile‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ benchmark-python-local: ## Run integration + benchmark tests for Python (local d
170170
##@ Tests
171171

172172
test-python-unit: ## Run Python unit tests (use pattern=<pattern> to filter tests, e.g., pattern=milvus, pattern=test_online_retrieval.py, pattern=test_online_retrieval.py::test_get_online_features_milvus)
173-
uv run python -m pytest -n 8 --color=yes $(if $(pattern),-k "$(pattern)") \
173+
# --no-sync: CI installs via hashed uv pip sync first; re-sync can downgrade protobuf.
174+
uv run --no-sync python -m pytest -n 8 --color=yes $(if $(pattern),-k "$(pattern)") \
174175
--cov=feast \
175176
--cov-report=xml \
176177
--cov-report=term-missing \
@@ -200,7 +201,7 @@ test-python-smoke: ## Quick smoke test for development
200201
-n 4 --tb=short
201202

202203
test-python-integration: ## Run Python integration tests (CI)
203-
uv run python -m pytest --tb=short -v -n 8 --integration --color=yes --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
204+
uv run --no-sync python -m pytest --tb=short -v -n 8 --integration --color=yes --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
204205
-k "not snowflake" \
205206
-m "not rbac_remote_integration_test and not ray_offline_stores_only" \
206207
--ignore=sdk/python/tests/integration/registration \
@@ -218,7 +219,7 @@ test-python-integration-parallel: ## Run integration tests with enhanced paralle
218219
test-python-integration-local: ## Run Python integration tests (local dev mode)
219220
FEAST_IS_LOCAL_TEST=True \
220221
FEAST_LOCAL_ONLINE_CONTAINER=True \
221-
uv run python -m pytest --tb=short -v -n auto --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
222+
uv run --no-sync python -m pytest --tb=short -v -n auto --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
222223
-k "not test_lambda_materialization and not test_snowflake_materialization" \
223224
-m "not rbac_remote_integration_test and not ray_offline_stores_only" \
224225
--ignore=sdk/python/tests/component/ray \
@@ -229,7 +230,7 @@ test-python-integration-local: ## Run Python integration tests (local dev mode)
229230
test-python-integration-rbac-remote: ## Run Python remote RBAC integration tests
230231
FEAST_IS_LOCAL_TEST=True \
231232
FEAST_LOCAL_ONLINE_CONTAINER=True \
232-
uv run python -m pytest --tb=short -v -n 8 --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
233+
uv run --no-sync python -m pytest --tb=short -v -n 8 --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
233234
-k "not test_lambda_materialization and not test_snowflake_materialization" \
234235
-m "rbac_remote_integration_test and not ray_offline_stores_only" \
235236
--log-cli-level=INFO -s \

‎pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ dependencies = [
1818
"click>=7.0.0,<9.0.0",
1919
"colorama>=0.3.9,<1",
2020
"dill>=0.3.0,<0.5",
21-
"protobuf>=4.24.0",
21+
# Keep protobuf 7.x in sync with grpcio-health-checking>=1.84 (gencode 7.35+).
22+
# A lower runtime (e.g. 6.33) breaks imports of grpc_health with VersionError.
23+
"protobuf>=7.35.1,<8",
2224
"Jinja2>=2,<4",
2325
"mmh3",
2426
"numpy>=2.0.0,<3",

0 commit comments

Comments
 (0)