A failed --test run ends in an ASSERT FAIL trace from lib/test_runner.eigs
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 83/100
Hướng nghiên cứu
Bắt đầu với lib/test_runner.eigs quanh dòng 184, nơi các tệp kiểm thử thất bại kích hoạt assertion, và kiểm tra hành vi mã thoát hiện có được đề cập trong issue #1839. Tiếp theo, tìm các kiểm thử hồi quy cho eigenscript --test và bổ sung kiểm thử cho dòng đầu ra cuối cùng cùng trạng thái thoát của lần chạy thất bại, bao gồm cả --json; hoàn thành khi các lỗi kết thúc với mã thoát 1 mà không có dấu vết của runner, còn đầu ra khi chạy thành công vẫn không đổi và kết thúc với mã thoát 0.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When any test file fails, eigenscript --test ends its run with an ASSERT FAIL error and a stack trace pointing into lib/test_runner.eigs. The exit status (1) is right; the output reads as if the runner itself crashed, and the trace is noise on every red run. It also lands after the --json document.
To reproduce (v0.48.0, release build)
mkdir -p tdir
printf 'assert of [1 == 2, "one is not two"]\n' > tdir/test_a.eigs
printf 'assert of [true, "ok"]\n' > tdir/test_b.eigs
eigenscript --test tdir; echo "rc=$?"
Actual (tail)
Files: 2 | Passed: 1 | Failed: 1
Error .../lib/test_runner.eigs:184: ASSERT FAIL: 1 test file(s) failed
184 | assert of [0, (str of failed_files) + " test file(s) failed"]
| ^
at <module> (.../lib/test_runner.eigs:184)
rc=1
Expected
The summary line is the last thing printed and the process exits 1, as pytest or cargo test do. No error header or trace from the runner's own source. (set_exit_code, from #1839, or exit of 1 would do it without a raise.)
Done when
- On the repro,
--testprints noASSERT FAILand no trace intolib/test_runner.eigs, and still exits 1. -
--test --jsonon the repro writes only the JSON document to stdout and exits 1. - An all-passing run is unchanged (same output, exit 0).
- A regression test checks the failing case's last line and exit status, and fails on v0.48.0.
Found while checking docs/llms.txt against the runtime (PR #2193).
Generated by Claude Code
- Ngôn ngữ chính
- C
- Star
- 3
- Fork
- 7
- Merge trung bình
- 8 giờ 51 phút
- Pull request đã merge (30 ngày)
- 393
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.
- Có Dockerfile hoặc tệp Docker Compose
- 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 InauguralSystems/EigenScript
-
area:gates kind:gate-defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
InauguralSystems/EigenScript#2188 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:docs kind:docs-drift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
InauguralSystems/EigenScript#1887 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
phase2: test_bitwise.eigs cites ctl.scan.* rows; the MAP's refusal controls are ctl.N8.refuse-*Đang mởarea:gates kind:docs-drift
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
InauguralSystems/EigenScript#1851 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
UB: (int) cast of a user double outside int range in dispatch / vm_index_is_int / flat_index_atĐang mởarea:runtime-vm kind:silent-wrong
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
InauguralSystems/EigenScript#1748 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:gfx bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
InauguralSystems/EigenScript#1684 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của InauguralSystems/EigenScript
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ly05010419/MacNativeGames#1420 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GPU-UNLOCK RTX 4070 (2786) Gigabyte 1458:416C: cold boot AND warm reboot unlock, Ubuntu 26.04Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
JustAResearcher/gpu-unlock-ada#124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
swoole/swoole-cli#1092 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
inflate: total_in uses plain += on c_ulong (32-bit on Windows), panics in debug for streams > 4 GiBĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
trifectatechfoundation/zlib-rs#570 · 1 bình luận ·