Gap wheels page: list the verified wheels that weren't published, and why (held.json)

Đang mở
#40 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python
Lĩnh vực
ci-cd, tooling, web-dev

Hướng nghiên cứu

Start in scripts/gap_wheels.py, at cmd_stage() where the lines table is built, and at select() for the publish-time reasons. Then read scripts/build_gap_index.py (human_page() and build()) and the publish job in .github/workflows/gap-wheels.yml. The issue asks first for a written proposal on the publish-job change, which a maintainer must approve before code. Done means the held.json shape and the merge are tested in tests/test_gap_wheels.py, and the page section is tested in tests/test_gap_index.py.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement help wanted

The page at https://wheelgap.github.io/wheels/ lists what was published. It says nothing about what was built and held back, though every batch holds some. The 2026-11-20 batch (run 44831141560) verified 33 pairs and staged 29. Its summary also had, among others:

| fastparquet | 2026.9.0 | 3.15 linux-x86_64 | the two builds differ, in `fastparquet-2026.9.0.dist-info/RECORD`, `fastparquet/speedups.cpython-315-x86_64-linux-gnu.so` |
| jpype1 | 1.7.1 | 3.15 win-amd64 | the two builds differ, in `jpype1-1.7.1.dist-info/RECORD`, `org.jpype.jar` |

plus four "PyPI names no OSI-approved licence for it", five "a build made no wheel" and two "pip couldn't install it without compiling". Those lines live in a workflow run summary that GitHub deletes after 90 days, and that nobody looking for their package will find.

Showing them does three things. A user who wants fastparquet on 3.15 sees it was tried and why it isn't there. A package maintainer sees the one thing to fix (state a licence, make the build reproducible). And "we held back N wheels this week, for these reasons" is the most convincing evidence that the checks are real.

(Moved from wheelgap/tracker#128, rewritten for this repo.)

Where

  • scripts/gap_wheels.py: cmd_merge() writes the verify verdict per pair, cmd_stage() builds the lines table with each pair's reason (or staged), and select() adds the publish-time reasons.
  • .github/workflows/gap-wheels.yml: the publish job commits data/gap-wheels.json.
  • scripts/build_gap_index.py: human_page() builds the page, build() writes data/status.json.

What to do

  • First step: cmd_stage() also writes held.json next to staged.json: {"schema": 1, "batch": ..., "date": ..., "held": [{"name", "version", "target", "stage": "verify"|"stage", "reason"}]}. It's the trusted job's own output, like staged.json. Give each reason a short fixed code as well as the text (builds-differ, no-licence, no-wheel-built, needs-compiler, missing-library, no-recipe, ...), set where the reason is decided, never parsed back out of the sentence. A reason can quote file names from a wheel: keep them in a separate detail field and validate them (the code already limits member names with MEMBER).
  • The publish job merges it into data/gap-wheels-held.json in the repo: the latest result per (name, version, target), dropped when that pair is later published or its release leaves PyPI, capped (say 300 entries, newest first). It's committed in the same commit as data/gap-wheels.json. This step changes what the publish job writes, so describe it in the PR before the code and wait for a maintainer's answer.
  • build_gap_index.py adds a "Built but not published" section to the page, grouped by reason code, each with one plain sentence on what it means and what would fix it, and copies the file to data/held.json on the site.
  • Everything shown is escaped with html.escape, as the rest of the page is.
  • Later: link each held pair to the tracker's package page, and add held wheels to the Atom feed.

Done when:

  • Tests in tests/test_gap_wheels.py cover held.json's shape for each reason code and that a staged pair isn't in it.
  • Tests for the merge: a newer result replaces an older one, a published pair is dropped, the cap holds.
  • Tests in tests/test_gap_index.py cover the page section (grouping, escaping of a reason detail like <b>.so), a missing file (no section, no crash) and a malformed one.
  • tests/test_data.py validates the committed data/gap-wheels-held.json once it exists.
  • The README's "How a wheel gets here" says where held wheels are listed.
  • uvx --python 3.14 [email protected] passes, offline.
Ngôn ngữ chính
Python
Star
0
Fork
1
Merge trung bình
5 giờ 59 phút
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wheelgap/wheels

Tất cả issue của wheelgap/wheels

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.