Skip to content

Commit dce1337

Browse files
committed
fix: Ray offline store tests are duplicated across 3 workflows
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent d87283f commit dce1337

6 files changed

Lines changed: 12 additions & 26 deletions

File tree

‎.github/workflows/pr_ray_integration_tests.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- labeled
99

1010
jobs:
11-
integration-test-ray-offline:
11+
integration-test-ray:
1212
if:
1313
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
1414
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
@@ -27,5 +27,5 @@ jobs:
2727
pixi-version: v0.63.1
2828
environments: ray-tests
2929
cache: true
30-
- name: Run Ray offline store integration tests
31-
run: make test-python-universal-ray-offline
30+
- name: Run Ray integration tests (offline store + compute engine)
31+
run: make test-python-ray-integration

‎.secrets.baseline‎

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

‎Makefile‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ test-python-integration: ## Run Python integration tests (CI)
185185
uv run python -m pytest --tb=short -v -n 8 --integration --color=yes --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
186186
-k "(not snowflake or not test_historical_features_main)" \
187187
-m "not rbac_remote_integration_test" \
188+
--ignore=sdk/python/tests/integration/compute_engines/ray_compute \
188189
--log-cli-level=INFO -s \
189190
sdk/python/tests
190191

@@ -394,14 +395,9 @@ test-python-universal-postgres-offline: ## Run Python Postgres integration tests
394395
not test_spark" \
395396
sdk/python/tests
396397

397-
test-python-universal-ray-offline: ## Run Python Ray offline store integration tests
398+
test-python-ray-integration: ## Run all Python Ray integration tests (offline store + compute engine)
398399
pixi run -e ray-tests test
399400

400-
test-python-ray-compute-engine: ## Run Python Ray compute engine tests
401-
PYTHONPATH='.' \
402-
python -m pytest -v --integration \
403-
sdk/python/tests/integration/compute_engines/ray_compute/
404-
405401
test-python-universal-postgres-online: ## Run Python Postgres integration tests
406402
PYTHONPATH='.' \
407403
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.postgres_online_store.postgres_repo_configuration \

‎pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@ python = "~=3.10.0"
291291
feast = { path = ".", editable = true, extras = ["ray", "grpcio", "test"] }
292292

293293
[tool.pixi.feature.ray-tests.tasks]
294-
test = { cmd = "python -m pytest -n 8 --integration --ignore=sdk/python/tests/integration/offline_store/test_dqm_validation.py sdk/python/tests/integration/offline_store", env = { PYTHONPATH = ".", FULL_REPO_CONFIGS_MODULE = "sdk.python.tests.integration.feature_repos.ray_repo_configuration", FEAST_IS_LOCAL_TEST = "True" } }
294+
test-offline = { cmd = "python -m pytest -n 8 --integration --ignore=sdk/python/tests/integration/offline_store/test_dqm_validation.py sdk/python/tests/integration/offline_store", env = { PYTHONPATH = ".", FULL_REPO_CONFIGS_MODULE = "sdk.python.tests.integration.feature_repos.ray_repo_configuration", FEAST_IS_LOCAL_TEST = "True" } }
295+
test-compute = { cmd = "python -m pytest -n 8 --integration sdk/python/tests/integration/compute_engines/ray_compute", env = { PYTHONPATH = ".", FEAST_IS_LOCAL_TEST = "True" } }
296+
test = { depends-on = ["test-offline", "test-compute"] }
295297

296298
[tool.pixi.environments]
297299
duckdb-tests = ["duckdb-tests"]

‎sdk/python/tests/integration/compute_engines/ray_compute/repo_configuration.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
from tests.integration.feature_repos.integration_test_repo_config import (
77
IntegrationTestRepoConfig,
88
)
9-
from tests.integration.feature_repos.universal.online_store.redis import (
10-
RedisOnlineStoreCreator,
11-
)
129

1310

1411
def get_ray_compute_engine_test_config() -> IntegrationTestRepoConfig:
1512
"""Get test configuration for Ray compute engine."""
1613
return IntegrationTestRepoConfig(
1714
provider="local",
18-
online_store_creator=RedisOnlineStoreCreator,
15+
online_store={"type": "sqlite"},
1916
offline_store_creator=RayDataSourceCreator,
2017
batch_engine={
2118
"type": "ray.engine",

‎sdk/python/tests/integration/feature_repos/repo_configuration.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,6 @@
100100
("local", RemoteOfflineTlsStoreDataSourceCreator),
101101
]
102102

103-
try:
104-
from feast.infra.offline_stores.contrib.ray_repo_configuration import (
105-
RayDataSourceCreator,
106-
)
107-
108-
AVAILABLE_OFFLINE_STORES.append(("local", RayDataSourceCreator))
109-
except ImportError:
110-
pass
111-
112103
if os.getenv("FEAST_IS_LOCAL_TEST", "False") == "True":
113104
AVAILABLE_OFFLINE_STORES.extend(
114105
[

0 commit comments

Comments
 (0)