Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Flaky test: test_stalled_download_cancel_is_bounded_and_partial_file_is_removed times out on Windows CI

Đang mở Phù hợp với người mới
#421 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
88/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ệ
python
Lĩnh vực
testing

Hướng nghiên cứu

Đọc tests/browser/test_profiles.py::test_stalled_download_cancel_is_bounded_and_partial_file_is_removed và thời hạn chờ bên ngoài của asyncio.wait_for. Tăng giới hạn này lên vài giây, đồng thời giữ nguyên các thời hạn chờ bên trong đã được vá. Hoàn tất khi bài kiểm thử vẫn xác nhận việc hủy có giới hạn thời gian và tệp một phần được xóa, mà không hết thời gian chờ trên runner Windows đang chịu tải cao.

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

Mô tả

area: browser bug flaky

tests/browser/test_profiles.py::test_stalled_download_cancel_is_bounded_and_partial_file_is_removed failed once on Windows CI with TimeoutError and passed on a re-run of the same commit.

Where: PR for fix/304-paused-run-resume, run 39003130590 attempt 1, Engine tests (windows-latest): 1 failed, 2457 passed in 19:47.

What failed: the outer asyncio.wait_for(svc._save_download(StalledDownload()), timeout=0.5) expired before _save_download raised the expected BrowserError("Browser cancellation failed: timed out after 0.01 seconds").

Likely cause: the test patches DOWNLOAD_MAX_DURATION_S and DOWNLOAD_CANCEL_TIMEOUT_S to 0.01 s, then allows only 0.5 s of wall clock for the save, the cancel attempt and removing the partial file. On a loaded Windows runner (-n auto) event-loop scheduling plus file I/O can take longer than half a second. The same family of download tests has timed out before on Windows (tests/browser/test_live_browser.py::test_download_is_saved_and_reported, runs 38597971996 and 38572264730).

Possible fix: raise the outer guard to a few seconds (it only exists to stop a hang; the inner 0.01 s limits are what the test checks).

Until fixed it is marked @pytest.mark.flaky(reruns=2), and CI's rerun summary lists it whenever it needs a rerun.

Ngôn ngữ chính
Python
Star
702
Fork
113
Merge trung bình
5 giờ 8 phút
Pull request đã merge (30 ngày)
171

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

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 existence-master/Sentient

Tất cả issue của existence-master/Sentient

Issue tương tự

Thêm issue về Python

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.