Reproducibility: jpype1's org.jpype.jar differs between two builds, so no JPype wheel can be published
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
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- build-system, ci-cd, release
Hướng nghiên cứu
Start in scripts/gap_wheels.py at run_build(), build_env() and verify(), then JPype's setup.py and setupext/ in the sdist to see how org.jpype.jar is packed. First, build the jpype1 pair twice in your fork with gap-wheel-build.yml, unpack both wheels, and compare the jars with unzip -lv and javap -v, posting the findings here. Done means the differing bytes are written down and a maintainer has agreed how the JDK is handled, before any pipeline code changes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A wheel is published only if two separate builds of it are byte-identical. In the batch of 2026-11-20 (run 44831141560), jpype1 failed that on all three Windows targets, always in the same file:
| jpype1 | 1.7.1 | 3.14 win-arm64 | the two builds differ, in `jpype1-1.7.1.dist-info/RECORD`, `org.jpype.jar` |
| jpype1 | 1.7.1 | 3.14t win-arm64 | the two builds differ, in `jpype1-1.7.1.dist-info/RECORD`, `org.jpype.jar` |
| jpype1 | 1.7.1 | 3.15 win-amd64 | the two builds differ, in `jpype1-1.7.1.dist-info/RECORD`, `org.jpype.jar` |
The native extension matches. The file that differs is a Java archive that JPype's build makes by compiling its Java sources with javac and packing them. A .jar is a zip, and zips made at build time usually differ in the entries' modification times, sometimes in their order, and in the manifest (Created-By, a build date). SOURCE_DATE_EPOCH is set for the build, and Java's jar tool only honours a fixed date when it's passed --date (JDK 19 and later).
There is a second question behind the first. The JDK that compiles the jar comes from the runner image. It isn't in the build-tool lock and isn't recorded in the tool provenance the two builds are compared on. Even if the jar were byte-identical, the pipeline wouldn't know which javac made the class files it publishes.
Where
scripts/gap_wheels.py:run_build(),build_env(),build_tool_provenance()and_tool_version()(what is recorded about the toolchain),verify()anddiffering().- JPype's
setup.pyandsetupext/(in the sdist) for how the jar is made.
What to do
- First step: find what differs. Build the pair twice in your fork (
gap-wheel-build.yml), unpack both wheels, and compare the two jars:unzip -lvon each (times, order, sizes, CRCs), then the manifests, then the.classfiles if their CRCs differ (javap -vshows the class file version and constant pool). Post the result in this issue: timestamps only, or content too. - Then say which of these it is:
- Only zip metadata differs. Look for a way to fix it from the pipeline without touching the package: an environment variable the JDK's tools read (
JAVA_TOOL_OPTIONScan't set--date; check what JPype's build passes and whether it readsSOURCE_DATE_EPOCH). If the package's build has to change, that's an upstream issue: open it there with your findings, link it here. - The class files differ. Then
javac's output isn't stable on the runner, and that needs its own look.
- Only zip metadata differs. Look for a way to fix it from the pipeline without touching the package: an environment variable the JDK's tools read (
- Whatever the cause, propose how the JDK is handled: recorded in the tool provenance (so two builds with different JDKs are refused), or pinned (a JDK archive by sha256, as python-build-standalone is for the install test), or "packages that need a JDK aren't built" in the plan, with the reason shown. Post this as a short proposal here before code: it changes what the pipeline trusts.
- Don't normalise the jar after the build (re-zipping it with fixed times in our code). That would make the two builds match by construction, and would publish a file no build produced.
Done when:
- The differing bytes are identified and written down in this issue.
- The JDK question has an agreed answer from a maintainer.
- If a pipeline change follows: tests in
tests/test_gap_wheels.pycover it (a JDK version in the provenance is compared; a pair that needs one and has none recorded is refused), and the PR links two fork builds of jpype1 for one target with their sha256s. 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
- Đọ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 wheelgap/wheels
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug help wanted
Độ khó 4/5 3-5 ngày 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
Tất cả issue của wheelgap/wheels
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ActivityWatch/docs#223 ·
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier captureCó thể đã có người làm @jianyx1 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
volcengine/OpenViking#8354 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
comp/tools P2 tool/skills type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NousResearch/hermes-agent#159541 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
multilabel_margin_loss returns an unwritten scalar for an empty CPU batch with reduction='sum'Đang mởbot-triaged module: correctness (silent) module: cpu module: empty tensor module: loss triage review
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
request-theme
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
LizardByte/ThemerrDB#10167 · 1 bình luận ·