Set up CI: lint and tests on Linux, macOS and Windows
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 2
- Merge trung bình
- 8 giờ 57 phút
- Pull request đã merge (30 ngày)
- 36
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lanl/litkit
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve retrieval quality: measure, then rerank, adapt queries and upgrade embedders in one rebuildĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 24/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 22/100
lanl/litkit#47 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
docs(contributing): the two things that silently block a PRCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởavailable documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 95/100
Nixitov/Riptide-Native#944 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
JTHCode/secretguard#24 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: middleware documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainer thường phản hồi trong vòng 1 ngày