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

Đang mở Phù hợp với người mới
#2,397 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@InauguralPhysicist đang làm issue này rồi.

Từ ngày 18/11/2026.

  • #2403 của @InauguralPhysicist — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, c
Lĩnh vực
operating-systems, testing

Hướng nghiên cứu

Đọc no_children trong tests/test_http_fetch.py và kiểm tra bỏ qua dự kiến trong tests/sections/45i-http-fetch.sh. Đảm bảo cả hai kiểm tra đều dùng tệp tác vụ children mà bài kiểm tra đọc, và in lý do bỏ qua có nêu tên tệp đó khi tệp bị thiếu. Xác minh rằng hai dòng được bỏ qua và phần này báo cáo 77 đạt, 0 thất bại, 2 bỏ qua trên hệ thống không có tệp đó, còn số lượng không thay đổi khi tệp tồn tại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C
Star
3
Fork
7
Merge trung bình
3 giờ 30 phút
Pull request đã merge (30 ngày)
264

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InauguralSystems/EigenScript

Tất cả issue của InauguralSystems/EigenScript

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.