http_fetch tests: the two no-child rows fail, not skip, where a task's children file does not exist
Maintainer antworten meist innerhalb von 1 Tag
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
- Bereich
- operating-systems, testing
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
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_childrentests for the file it reads (a task'schildren), and printsSKIPwith 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
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus InauguralSystems/EigenScript
-
`http_post`: `headers` text with something after its JSON value now means no headers, without a wordOffenarea:http kind:silent-wrong
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
InauguralSystems/EigenScript#2394 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:docs good first issue kind:docs-drift
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
InauguralSystems/EigenScript#2360 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:http kind:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
InauguralSystems/EigenScript#2356 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:stdlib kind:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
InauguralSystems/EigenScript#2355 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
InauguralSystems/EigenScript#2335 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in InauguralSystems/EigenScript
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
openziti/ziti-sdk-c#1254 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add SECURITY.mdOffenenhancement
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
-
modem: ppp: CMUX DLCI receive buffer overruns on large downlink packetsEvtl. vergeben @pedrohqr hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
zephyrproject-rtos/zephyr#126195 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
ly05010419/MacNativeGames#2271 ·
Maintainer antworten meist innerhalb von 1 Tag