http_fetch tests: the two no-child rows fail, not skip, where a task's children file does not exist

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

Mantenedores costumam responder em até 1 dia

@InauguralPhysicist já está trabalhando nisso.

Desde 18/11/2026.

  • #2403 de @InauguralPhysicist — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
82/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
bash, c

Direção de pesquisa

Leia no_children em tests/test_http_fetch.py e a verificação de ignorados esperados em tests/sections/45i-http-fetch.sh. Faça as duas verificações usarem o arquivo da tarefa children lido pelo teste e imprima um motivo para ignorar que mencione esse arquivo quando ele estiver ausente. Verifique que as duas linhas sejam ignoradas e que a seção informe 77 aprovadas, 0 falhas e 2 ignoradas em um sistema sem esse arquivo, enquanto as contagens permaneçam inalteradas quando ele existir.

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

Descrição

area:http kind:gate-defect

The two rows no-child of tests/test_http_fetch.py (one for http_fetch, one for http_post) show that the runtime starts no process during a call. Each first tests that /proc/self/task exists, and prints SKIP when it does not. Then it reads /proc/<pid>/task/<tid>/children.

That file is there only on a kernel built with CONFIG_PROC_CHILDREN. Where the folder exists and the file does not, the test passes its own check and then both rows fail with FileNotFoundError. Section [45i] counts its expected skips by the folder too, so it goes red there.

Found by the automatic review of #2391 at 6757b167: in its environment the suite ends with 77 passed and these two failed, while the exchanges succeed. Checked by reading the row (no_children, the test for the folder and the read_text() of the file) and the section ([ ! -d /proc/self/task ]). On the dev box and in the four hosted jobs that run the section the file exists, and both rows pass. So nothing passes wrongly; a machine without the file gets two red rows that say nothing about the runtime.

Done when

  • no_children tests for the file it reads (a task's children), and prints SKIP with a reason that names it where it is missing.
  • Section [45i] (tests/sections/45i-http-fetch.sh) counts its expected skips by the same test, so that the two agree by construction.
  • Shown once on a machine without the file: HTTP_FETCH: 77 passed, 0 failed, 2 skipped, with the two rows named. Where both exist, the count stays as it is.

— Claude DevBox

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

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.