Set up CI: lint and tests on Linux, macOS and Windows
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
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 2
- Merge medio
- 8 h 57 min
- PR fusionados (30 d)
- 36
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lanl/litkit
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Improve retrieval quality: measure, then rerank, adapt queries and upgrade embedders in one rebuildAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 24/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 22/100
lanl/litkit#47 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de lanl/litkit
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día