Flaky test: test_stalled_download_cancel_is_bounded_and_partial_file_is_removed times out on Windows CI
维护者通常 1 天内回复
评估
调研方向
阅读 tests/browser/test_profiles.py::test_stalled_download_cancel_is_bounded_and_partial_file_is_removed 以及外层的 asyncio.wait_for 超时设置。将这个保护超时延长到几秒,同时保持已打补丁的内层超时不变。完成标准是:测试仍然检查取消操作有时间上限且部分文件会被删除,并且在负载较高的 Windows runner 上不会超时。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 710
- 派生
- 125
- 平均合并
- 8 小时 24 分钟
- 30 天内合并 PR
- 183
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
existence-master/Sentient 的其他 Issue
-
Flaky test: test_interrupt_stops_audio_but_text_completes fails under load可能已有人在做 @ShryukGrandhi 今天认领。 未关闭area: voice bug flaky priority: P2 size: S
难度 2/5 1-3 小时 新手友好度 72/100
existence-master/Sentient#490 ·
维护者通常 1 天内回复
-
Telegram/Discord: tapping "Local only" in the /model list should ask too, and "/model Local only no" should cancel可能已有人在做 @bernalalexis-try 于 3 天前认领。 未关闭area: channels enhancement good first issue priority: P2 size: S
难度 2/5 1-3 小时 新手友好度 78/100
existence-master/Sentient#457 · 4 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Settings label reads "Claude code max concurrent" (generated from the config key)可能已有人在做 @sharmis-tp 于 1 天前认领。 未关闭area: desktop bug good first issue priority: P2 size: S
难度 2/5 1-3 小时 新手友好度 82/100
existence-master/Sentient#454 · 2 条评论 ·
维护者通常 1 天内回复
-
A test or demo data folder offers the real Documents folder as its default backup location可能已有人在做 @bercedev 于 1 天前认领。 未关闭area: desktop bug priority: P2 size: S
难度 2/5 1-3 小时 新手友好度 82/100
existence-master/Sentient#440 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
area: desktop bug
难度 2/5 1-3 小时 新手友好度 78/100
existence-master/Sentient#426 ·
维护者通常 1 天内回复
查看 existence-master/Sentient 的全部 Issue
相似的 Issue
-
style: article/section 📝 system: cloud.rc ☁️ system: security 🔐
难度 2/5 1-3 小时 新手友好度 65/100
uabrc/uabrc.github.io#1262 ·
-
documentation
难度 2/5 1-3 小时 新手友好度 70/100
NCAR/miles-credit#526 ·
-
documentation
难度 1/5 1-3 小时 新手友好度 76/100
conda/conda-lock#957 ·
维护者通常 1 天内回复
-
Type: Bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
aws-samples/sample-per-model-bedrock#464 ·
维护者通常 1 天内回复