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

Offen Anfängerfreundlich
#2,397 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@InauguralPhysicist arbeitet bereits daran.

Seit 18.11.2026.

  • #2403 von @InauguralPhysicist — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
82/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
bash, c

Rechercherichtung

Lies no_children in tests/test_http_fetch.py und die Prüfung für erwartete Überspringungen in tests/sections/45i-http-fetch.sh. Lass beide Prüfungen die Aufgaben-Datei children verwenden, die der Test liest, und gib einen Grund für das Überspringen aus, der diese Datei nennt, wenn sie fehlt. Überprüfe auf einem System ohne diese Datei, dass die beiden Zeilen übersprungen werden und der Abschnitt 77 bestanden, 0 fehlgeschlagen und 2 übersprungen meldet, während die Zähler unverändert bleiben, wenn sie vorhanden ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
C
Sterne
3
Forks
7
Ø Merge
3 Std. 30 Min.
Gemergte PRs (30 T.)
264

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus InauguralSystems/EigenScript

Alle Issues in InauguralSystems/EigenScript

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.