http_fetch tests: the two no-child rows fail, not skip, where a task's children file does not exist
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 82/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- bash, c
- Domaine
- operating-systems, testing
Piste de recherche
Lis no_children dans tests/test_http_fetch.py et la vérification des ignorés attendus dans tests/sections/45i-http-fetch.sh. Fais en sorte que les deux vérifications utilisent le fichier de tâche children lu par le test, et affiche une raison d’ignorance nommant ce fichier lorsqu’il est absent. Vérifie que les deux lignes sont ignorées et que la section indique 77 réussies, 0 échec et 2 ignorées sur un système dépourvu de ce fichier, tandis que les nombres restent inchangés lorsqu’il existe.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- C
- Étoiles
- 3
- Forks
- 7
- Merge moyen
- 3 h 30 min
- PR mergées (30 j)
- 264
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de InauguralSystems/EigenScript
-
`http_post`: `headers` text with something after its JSON value now means no headers, without a wordOuvertearea:http kind:silent-wrong
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
InauguralSystems/EigenScript#2394 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area:docs good first issue kind:docs-drift
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
InauguralSystems/EigenScript#2360 ·
Les mainteneurs répondent en général sous 1 jour
-
area:http kind:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
InauguralSystems/EigenScript#2356 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
area:stdlib kind:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
InauguralSystems/EigenScript#2355 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
InauguralSystems/EigenScript#2335 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de InauguralSystems/EigenScript
Issues similaires
-
Add SECURITY.mdOuverteenhancement
Difficulté 1/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
-
modem: ppp: CMUX DLCI receive buffer overruns on large downlink packetsPeut-être pris @pedrohqr l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
zephyrproject-rtos/zephyr#126195 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
ly05010419/MacNativeGames#2271 ·
Les mainteneurs répondent en général sous 1 jour
-
slice
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Life-Framework/Life-Framework#2694 ·
Les mainteneurs répondent en général sous 1 jour