Flaky test: test_stalled_download_cancel_is_bounded_and_partial_file_is_removed times out on Windows CI
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
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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của existence-master/Sentient
-
area: channels enhancement good first issue priority: P2 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
existence-master/Sentient#457 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: desktop bug good first issue priority: P2 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
existence-master/Sentient#454 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: desktop bug priority: P2 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
existence-master/Sentient#440 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: desktop bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
existence-master/Sentient#426 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: memory bug flaky
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
existence-master/Sentient#422 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của existence-master/Sentient
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
webrecorder/warcio#209 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Jeffy123-zhu/logspecter#20 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày