[Test restructure 6] Update Makefile and CI workflows for new directory layout

Abierto
#6,054 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
github-actions, python

Línea de trabajo

Comienza leyendo los objetivos de prueba del Makefile y los archivos enumerados en .github/workflows/, comparando cada comando actual con la correspondencia del workflow. Verifica que los nuevos objetivos invoquen las rutas de prueba y la configuración del backend especificadas, y luego ejecuta los objetivos de make afectados. La tarea estará terminada cuando todos los workflows enumerados utilicen los objetivos previstos y la estructura de directorios se refleje de forma coherente.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

What

  • Update Makefile test targets to use path-based pytest invocations.
  • Update all .github/workflows/ files that run tests to use the new Makefile targets.

New targets

Tier 1: Unit

test-python-unit:
pytest sdk/python/tests/unit -n 8

Tier 2: Universal (parameterized by backend via env var)

test-python-universal-duckdb:
FULL_REPO_CONFIGS_MODULE=sdk.python.tests.universal.feature_repos.duckdb_repo_configuration
pytest sdk/python/tests/universal -n 8

test-python-universal-ray:
FULL_REPO_CONFIGS_MODULE=sdk.python.tests.universal.feature_repos.ray_repo_configuration
pytest sdk/python/tests/universal

Tier 3: Component

test-python-component-ray:
pytest sdk/python/tests/component/ray

test-python-component-spark:
pytest sdk/python/tests/component/spark

Tier 4: Integration

test-python-integration-rest-api:
pytest sdk/python/tests/integration/rest_api

test-python-integration-dbt:
pytest sdk/python/tests/integration/dbt

test-python-integration-auth:
pytest sdk/python/tests/integration/auth

Composite

test-python-ray:
$(MAKE) test-python-component-ray
$(MAKE) test-python-universal-ray

Workflow mapping

Workflow file Current target New target
unit_tests.yml make test-python-unit make test-python-unit (now path-scoped to tests/unit)
pr_ray_integration_tests.yml make test-python-ray-integration make test-python-ray (component/ray + universal/ray)
pr_duckdb_integration_tests.yml make test-python-universal-duckdb-offline make test-python-universal-duckdb
pr_registration_integration_tests.yml make test-python-registration make test-python-universal-registration or scoped target
pr_local_integration_tests.yml make test-python-integration-local make test-python-universal-local (universal with local config)
pr_integration_tests.yml make test-python-integration make test-python-universal-cloud + make test-python-integration
pr_remote_rbac_integration_tests.yml make test-python-integration-rbac-remote make test-python-integration-auth
registry-rest-api-tests.yml direct pytest command make test-python-integration-rest-api
dbt-integration-tests.yml make test-python-integration-dbt make test-python-integration-dbt (unchanged)
Lenguaje dominante
Python
Estrellas
7.4k
Forks
1.5k
Merge medio
2 d 6 h
PR fusionados (30 d)
107

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de feast-dev/feast

Todos los issues de feast-dev/feast

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.