Build-test fixtures that no longer test what they claim
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, node.js, ocaml
- Lĩnh vực
- testing
Hướng nghiên cứu
Đọc tests/build_tests/rescript_tools_binary_path/input.js và cấu hình fixture của nó, sau đó kiểm tra các tệp rescript.json của weird_deps và weird_devdeps. Thêm một package.json fixture cho rescript_tools_binary_path và đặt sources của các fixture còn lại thành danh sách rỗng. Công việc hoàn tất khi các fixture kiểm tra hành vi import package như dự định và không còn liệt kê các thư mục mã nguồn đã bị xóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found by adversarial experiments on semantic analysts.
Each item below is a build-test fixture whose setup no longer matches its purpose.
-
rescript_tools_binary_pathpasses with the import it guards against.input.jsruns the compiledsrc/Main.mjsandsrc/Main.cjsinside the repository.- The fixture has no
package.json, so Node resolves#specifiers in those files against the repository rootpackage.json, which defines#cli/*. - The bug fixed by #8694 (
@module("#cli/bins")emitted into user code) therefore does not reproduce here. The commit message of 45446347c says the test uses its own package.json, but none is checked in. - Reproduction at 8d51b9ce7 in
tests/build_tests/rescript_tools_binary_path, withnode_modules/rescriptlinked to the repo root asinput.jsdoes. The two files contain the JS that bsc emits for the pre-#8694 external:printf 'import * as Bins from "#cli/bins";\nconsole.log(Bins.rescript_tools_exe);\n' > src/Old.mjs printf 'let Bins = require("#cli/bins");\nconsole.log(Bins.rescript_tools_exe);\n' > src/Old.cjs node src/Old.mjs; node src/Old.cjs # both print …/bin/rescript-tools.exe echo '{"name":"user-project","private":true}' > package.json node src/Old.mjs # ERR_PACKAGE_IMPORT_NOT_DEFINED node src/Old.cjs # Error: Cannot find module '#cli/bins' - With that
package.jsonin place, the currentMain.mjsandMain.cjs(importingrescript/tools) still print the binary path. - Fix: check in a fixture
package.json.
-
weird_depsandweird_devdepslist deleted source folders.weird_deps/rescript.jsonandweird_devdeps/rescript.jsonlistsrcandtest, which 4a94e486d (#8709) deleted.- The tests pass because the unresolved-dependency error is reported first.
"sources": []would state the intended setup.
- Ngôn ngữ chính
- OCaml
- Star
- 7.5k
- Fork
- 484
- Merge trung bình
- 18 giờ 19 phút
- Pull request đã merge (30 ngày)
- 116
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- 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 rescript-lang/rescript
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
rescript-lang/rescript#8833 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
rewatch watch on Linux stops watching a source folder when an overlapping recursive source folder is removed from rescript.jsonCó thể đã có người làm @cknitt đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
rescript-lang/rescript#8825 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Formatter drops comments in dict patterns, variant spread patterns and dict literal spreadsCó thể đã có người làm @cknitt đã nhận 1 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
rescript-lang/rescript#8820 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
JSX preserve mode spreads an `@unboxed` props record (`{..."x"}` instead of `"x"`)Có thể đã có người làm @cknitt đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 25/100
rescript-lang/rescript#8813 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Compiler crash (matching.ml assertion) on dict and optional-field record patterns mixing a value and `?None` on one keyCó thể đã có người làm @cknitt đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rescript-lang/rescript#8810 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rescript-lang/rescript
Issue tương tự
-
todo type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
RocketChat/Rocket.Chat#42730 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
replay: a run cancelled during environment setup is logged as an ERROR (Instrument drops the cancellation)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
career-ops-hq/career-ops#5183 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 80/100
gems-uff/noworkflow#233 ·
-
lane:repo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
SPARDiffData/differential-data-collection#42 ·
Maintainer thường phản hồi trong vòng 1 ngày