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

未关闭 适合新手
#2,397 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@InauguralPhysicist 已经在做这个了。

开始于 2026年11月18日。

  • #2403 来自 @InauguralPhysicist —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
bash, c

调研方向

阅读 tests/test_http_fetch.py 中的 no_children,以及 tests/sections/45i-http-fetch.sh 中对预期跳过项的检查。让两项检查都使用测试读取的任务文件 children,并在该文件缺失时打印提及该文件的跳过原因。验证在没有该文件的系统上,两行会跳过,且该部分报告 77 项通过、0 项失败、2 项跳过;文件存在时,计数保持不变。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
C
星标
3
派生
7
平均合并
3 小时 30 分钟
30 天内合并 PR
264

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

InauguralSystems/EigenScript 的其他 Issue

查看 InauguralSystems/EigenScript 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。