3939TRINO_VERSION ?= 376
4040PYTHON_VERSION = ${shell python --version | grep -Eo '[0-9]\.[0-9]+'}
4141
42- PYTHON_VERSIONS := 3.10 3. 11 3.12
42+ PYTHON_VERSIONS := 3.11 3.12
4343
4444define get_env_name
4545$(subst .,,py$(1 ) )
@@ -122,7 +122,11 @@ install-python-dependencies-ci: ## Install Python CI dependencies using uv pip s
122122 # Must match the --torch-backend used to compile the CI lock, otherwise the
123123 # recorded CPU-wheel hashes (from download.pytorch.org) fail to verify.
124124 # The lock is universal, so one command serves both Linux and macOS.
125- uv pip sync --torch-backend cpu sdk/python/requirements/py$(PYTHON_VERSION ) -ci-requirements.txt
125+ # --build-constraints pins build-time deps of source builds to the lock too
126+ # (e.g. sqlglotc on Python 3.10 has no wheel and must compile the locked sqlglot).
127+ uv pip sync --torch-backend cpu \
128+ --build-constraints sdk/python/requirements/py$(PYTHON_VERSION ) -ci-requirements.txt \
129+ sdk/python/requirements/py$(PYTHON_VERSION ) -ci-requirements.txt
126130 uv pip install --no-deps -e .
127131
128132# Used in github actions/ci
@@ -169,7 +173,8 @@ benchmark-python-local: ## Run integration + benchmark tests for Python (local d
169173# #@ Tests
170174
171175test-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)
172- uv run python -m pytest -n 8 --color=yes $(if $(pattern ) ,-k "$(pattern ) ") \
176+ # --no-sync: CI installs via hashed uv pip sync first; re-sync can downgrade protobuf.
177+ uv run --no-sync python -m pytest -n 8 --color=yes $(if $(pattern ) ,-k "$(pattern ) ") \
173178 --cov=feast \
174179 --cov-report=xml \
175180 --cov-report=term-missing \
@@ -199,7 +204,7 @@ test-python-smoke: ## Quick smoke test for development
199204 -n 4 --tb=short
200205
201206test-python-integration : # # Run Python integration tests (CI)
202- uv run python -m pytest --tb=short -v -n 8 --integration --color=yes --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
207+ uv run --no-sync python -m pytest --tb=short -v -n 8 --integration --color=yes --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
203208 -k " not snowflake" \
204209 -m " not rbac_remote_integration_test and not ray_offline_stores_only" \
205210 --ignore=sdk/python/tests/integration/registration \
@@ -217,7 +222,7 @@ test-python-integration-parallel: ## Run integration tests with enhanced paralle
217222test-python-integration-local : # # Run Python integration tests (local dev mode)
218223 FEAST_IS_LOCAL_TEST=True \
219224 FEAST_LOCAL_ONLINE_CONTAINER=True \
220- uv run python -m pytest --tb=short -v -n auto --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
225+ uv run --no-sync python -m pytest --tb=short -v -n auto --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
221226 -k " not test_lambda_materialization and not test_snowflake_materialization" \
222227 -m " not rbac_remote_integration_test and not ray_offline_stores_only" \
223228 --ignore=sdk/python/tests/component/ray \
@@ -228,7 +233,7 @@ test-python-integration-local: ## Run Python integration tests (local dev mode)
228233test-python-integration-rbac-remote : # # Run Python remote RBAC integration tests
229234 FEAST_IS_LOCAL_TEST=True \
230235 FEAST_LOCAL_ONLINE_CONTAINER=True \
231- uv run python -m pytest --tb=short -v -n 8 --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
236+ uv run --no-sync python -m pytest --tb=short -v -n 8 --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
232237 -k " not test_lambda_materialization and not test_snowflake_materialization" \
233238 -m " rbac_remote_integration_test and not ray_offline_stores_only" \
234239 --log-cli-level=INFO -s \
0 commit comments