Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta Para iniciantes
#2,197 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
83/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
c
Domínio
cli, testing

Direção de pesquisa

Comece por lib/test_runner.eigs por volta da linha 184, onde os arquivos de teste com falha acionam a asserção, e verifique o comportamento existente do código de saída mencionado em issue #1839. Em seguida, encontre os testes de regressão de eigenscript --test e adicione cobertura para a linha final da saída e o status de saída da execução com falha, incluindo --json; o trabalho estará concluído quando as falhas terminarem com código de saída 1 sem um trace do runner, enquanto a saída das execuções bem-sucedidas permanecer inalterada e terminar com código 0.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
C
Estrelas
3
Forks
7
Merge médio
8h 51min
PRs com merge (30d)
393

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de InauguralSystems/EigenScript

Todas as issues de InauguralSystems/EigenScript

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.