gates: the precheck self-test's count is pinned twice (registry row and suite section 99zb0); adding a case moves one and reds four hosted jobs

Aberta
#2,471 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
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
bash, c, shell
Domínio
testing, tooling

Direção de pesquisa

Read tools/selftests.txt and section [99zb0] in tests/run_all_tests.sh, then inspect how tools/precheck.sh --selftest reports its results and how the self-test driver reads registry entries. Reproduce the mismatch by adding a case and moving only the registry count; also verify a failing case makes the section fail. Check all ten suite lines mentioning self-tests and document any literal counts that remain with their reason.

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

Descrição

area:gates kind:gate-defect needs-triage

tools/precheck.sh --selftest prints precheck-selftest: N/N passed, 0 failed, and that line is pinned by its literal count in two places: the registry row in tools/selftests.txt and the suite's section [99zb0] in tests/run_all_tests.sh (grep -q '^precheck-selftest: 11/11 passed, 0 failed$').

A change that adds a case to the self-test has to move both. The registry row is found by anyone who edits the tool (the registry names the tool's file); the suite's literal is not. On 2026-11-21 a change that added the eleventh case (#2458, in #2464) moved the registry pin and left the suite at 10/10: four hosted jobs went red on that one line, and the local acceptance had run the registry row and not the section. The day before, another count was missed the same way.

The second pin adds no check the first does not make: both run the same command and compare the same line.

Done when

  • Section [99zb0] does not hold a second literal of the count: it takes its expected line from the registry row of tools/precheck.sh (one reader, as the selftest driver reads it), or it asks only what the registry does not (exit code 0, 0 failed, and the count on the line equal to the number of PASS: lines the run printed).
  • Shown red first: with one case added to the self-test and only the registry row moved, the section passes; with a case made to fail, it fails.
  • git grep for the other self-test summaries the suite pins by a literal count (the suite has ten lines that mention a selftest): each is either derived the same way or listed here with the reason it stays.

— Claude DevBox

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

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.