ci: streamline GitHub Actions test coverage and runtime

Aperta
#6,502 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Patrick-SCH03 ci sta già lavorando.

Dal 30/8/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, github-actions, python

Direzione di ricerca

Inizia confrontando i workflow nominati: unit-tests, smoke_tests.yml, check_skip_tests.yml e master_only.yml, quindi esamina sdk/python/tests/unit alla ricerca di test descritti come funzionali o simili a test di integrazione. Scegli un percorso di pulizia indipendente, esegui il workflow o i test interessati prima di modificarli e considera concluso il lavoro quando la CI ridondante o con poco segnale è stata ridotta senza perdere la copertura dichiarata o i check richiesti.

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

Descrizione

Context

The current GitHub Actions setup gives us good coverage, but it is doing more work than we probably need on every PR and master push. Recent master runs show the largest costs are in the master-only integration/build workflow, with full Python integration across 3.10/3.11/3.12 and a very slow feature-server-dev Docker build. PR CI also has some low-signal jobs that look redundant with other checks.

Observations

  • unit-tests runs the full Python unit suite across Python 3.10, 3.11, 3.12 on Ubuntu plus 3.11 and 3.12 on macOS.
  • Several files under sdk/python/tests/unit behave more like local functional/integration tests: subprocess CLI calls, feast init/apply, Spark setup, Docker/testcontainers, feature server startup, etc.
  • smoke_tests.yml installs full CI dependencies on Python 3.10/3.11/3.12 just to import feast.cli.
  • check_skip_tests.yml exists as a reusable docs/examples/community skip gate, but the main unit/linter/smoke workflows do not call it.
  • master_only.yml runs full integration plus benchmark upload across the same Python version matrix.
  • The feature-server-dev Docker build is the master workflow long pole and should get its own cache/layering/toolchain audit.

Suggested Cleanup Tracks

  1. Low-risk CI hygiene

    • Collapse or remove the redundant smoke workflow.
    • Add path/doc-only skipping for low-risk workflows.
    • Move benchmark publishing out of blocking master integration, or limit it to one Python version.
  2. Test-suite restructuring

    • Keep pure unit tests as the default fast PR gate.
    • Move or mark local functional tests separately: CLI subprocess, feature repo apply/init, Spark, Docker/testcontainers, and feature server startup.
    • Run that local functional slice on one Python/OS combination.
  3. Matrix policy

    • Keep full unit coverage on one primary Python version.
    • Use smaller compatibility smoke/subset checks for other Python versions and macOS.
    • Run full compatibility coverage nightly or on release-sensitive paths.
  4. Master integration/build improvements

    • Consider full integration on Python 3.11, with smaller compatibility coverage for 3.10/3.12.
    • Split benchmark collection into a scheduled or non-blocking job.
    • Audit feature-server-dev Docker build caching, Node version alignment, image context, and layer ordering.

This issue is intentionally broad so contributors can pick off independent pieces without needing to solve the whole CI design in one PR.

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.