A failed --test run ends in an ASSERT FAIL trace from lib/test_runner.eigs
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
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
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
- Linguagem predominante
- C
- Estrelas
- 3
- Forks
- 7
- Merge médio
- 8h 51min
- PRs com merge (30d)
- 393
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de InauguralSystems/EigenScript
-
area:gates kind:gate-defect
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
InauguralSystems/EigenScript#2188 ·
Mantenedores costumam responder em até 1 dia
-
area:docs kind:docs-drift
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
InauguralSystems/EigenScript#1887 ·
Mantenedores costumam responder em até 1 dia
-
phase2: test_bitwise.eigs cites ctl.scan.* rows; the MAP's refusal controls are ctl.N8.refuse-*Abertaarea:gates kind:docs-drift
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
InauguralSystems/EigenScript#1851 ·
Mantenedores costumam responder em até 1 dia
-
UB: (int) cast of a user double outside int range in dispatch / vm_index_is_int / flat_index_atAbertaarea:runtime-vm kind:silent-wrong
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
InauguralSystems/EigenScript#1748 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area:gfx bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
InauguralSystems/EigenScript#1684 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de InauguralSystems/EigenScript
Issues semelhantes
-
Type: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
apache/nuttx-apps#3942 ·
Mantenedores costumam responder em até 1 dia
-
Add missing unit tests for IsAdmissionPolicyName and IsCertManagerResourceNameTalvez já em andamento @a1h8 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
kubernetes-sigs/security-profiles-operator#3644 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
ly05010419/MacNativeGames#1340 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia