Set up CI: lint and tests on Linux, macOS and Windows
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
- 48/100
Direzione di ricerca
Start by reading .github/workflows and pyproject.toml, then inspect the existing setup and platform blockers in #16 and #17. Check how uv resolves the supported platforms and how the test suite is run with uv run pytest. Done means pull requests run changed-file lint, uv lock --check, and the default tests on Linux, macOS, and Windows, with failing required jobs blocking merges; workflow changes need maintainer review.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up to #17: run the test suite automatically on every push and pull request, on Linux, macOS and Windows.
What it should run
- Lint, on changed files only for now:
ruff check --no-fixandblack --check. The tree has about 1,100 existing ruff errors and 47 files black would reformat, so linting the whole tree would fail. Clearing that backlog is a separate job, worth doing in one formatting-only PR. uv lock --check, souv.lockstays in sync withpyproject.toml.- The default test suite (
uv run pytest): no GPU, network or models. - Optionally, on a schedule or on demand: a
slowjob that downloads the two embedding models into a cache and runs a real-model build.
Matrix
Python 3.12 on ubuntu-latest (x86_64), macos-latest (arm64) and windows-latest (x86_64).
Blockers
- The lock file only covers two platforms.
[tool.uv] environmentsinpyproject.tomlresolves only for Linux aarch64 and macOS arm64, souv syncfails on x86_64 Linux and on Windows, which is what GitHub's standard runners are. Within those two platforms, torch is locked for macOS only: the cluster container installs a custom CUDA build of torch 2.5.1 from a local wheel, outside the lock file. The fix is to widenenvironmentsto the platforms we support and lock a regular torch for each (PyPI has torch 2.6.0 and faiss-cpu 1.8.0 wheels for all of them). The container keeps installing its CUDA wheel over that. A side effect: the cluster's torch 2.5.1 is still affected by CVE-2025-32434 (the macOS fix raised torch to 2.6 only on macOS), and locking 2.6 everywhere would make the container the only exception. - litkit can't be imported on Windows (see #17). The Windows job only becomes meaningful once that check is relaxed to what
cli.pyalready enforces. - macOS OpenMP (#16): the macOS job either needs the #16 fix or
KMP_DUPLICATE_LIB_OK=TRUEset in the workflow.
Policy
- Enable branch protection on
mainto require the lint and test jobs to pass, once they are reliable. - Changing
.github/workflowsneeds a maintainer's review.
Done when
Every pull request runs lint, uv lock --check and the test suite on all three platforms, and a red job blocks the merge.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 2
- Merge medio
- 8h 57m
- PR unite (30g)
- 36
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lanl/litkit
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Improve retrieval quality: measure, then rerank, adapt queries and upgrade embedders in one rebuildAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 24/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 22/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
docs(contributing): the two things that silently block a PRForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaavailable documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 95/100
Nixitov/Riptide-Native#944 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
JTHCode/secretguard#24 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 ·
I maintainer di solito rispondono entro 1 giorno