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

Aperta
#6,054 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github-actions, python

Direzione di ricerca

Inizia leggendo i target di test del Makefile e i file elencati sotto .github/workflows/, confrontando ogni comando attuale con la corrispondenza del workflow. Verifica che i nuovi target invochino i percorsi di test e la configurazione del backend specificati, quindi esegui i target make interessati. Il lavoro è completato quando tutti i workflow elencati utilizzano i target previsti e la struttura delle directory è riflessa in modo coerente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)
Lingua principale
Python
Stelle
7.4k
Fork
1.5k
Merge medio
2g 6h
PR unite (30g)
107

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di feast-dev/feast

Tutte le issue di feast-dev/feast

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.