Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

A failed --test run ends in an ASSERT FAIL trace from lib/test_runner.eigs

オープン 初心者向け
#2,197 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
83/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c
領域
cli, testing

調査の方向性

lib/test_runner.eigs の184行目付近から始めます。ここでは失敗したテストファイルによってアサーションが発生します。また、issue #1839 で言及されている既存の終了コードの動作を確認します。次に、eigenscript --test の回帰テストを見つけ、失敗した実行の最終出力行と終了ステータス(--json を含む)を検証するテストを追加します。失敗時はランナーのトレースなしで終了コード1となり、成功時は出力が変わらず終了コード0となれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area:stdlib bug found-by:cold-read kind:bug

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, --test prints no ASSERT FAIL and no trace into lib/test_runner.eigs, and still exits 1.
  • --test --json on 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

主要言語
C
スター
3
フォーク
7
平均マージ
8時間 51分
マージ済み PR(30日)
393

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。