Measure CPU time instead of wallclock time
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- testing-qa
调研方向
首先跟踪 pytest-timeout 基于 threading.Timer 的超时路径,并确定在哪里测量经过的时间。将进程暂停期间的计时行为与请求的 CPU 时间或实际运行时间进行比较,然后验证被暂停的 CI 工作不会立即过期,而真正的测试执行仍然会超时。
由索引模型根据 Issue 内容生成。
描述
Currently pytest-timeout uses threading.Timer to measure time. This measures wallclock time, so if the process is paused for 10 minutes and is unpaused later, timeout will immediately expire even if the process did not have a chance to actually do any work. This happens in GitHub Actions CI, which sometimes unschedules processes for a long time as I have observed for Rust testsuite running under nextest: reported time of some tests which normally take less than one second was randomly several minutes. It is ok if CI suspends the workflow, but pytest-timeout should detect this and measure actual time the test was running rather than wallclock time.
- 主要语言
- Python
- 星标
- 260
- 派生
- 70
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pytest-dev/pytest-timeout 的其他 Issue
-
PR #200 introduced breaking change - `timeout` value in config is incompatible with older versions可能已有人在做 @Sanjays2402 于 48 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
pytest-dev/pytest-timeout#203 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
pytest-dev/pytest-timeout#190 · 9 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
pytest-dev/pytest-timeout#189 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
pytest-dev/pytest-timeout#181 · 4 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 35/100
pytest-dev/pytest-timeout#178 · 1 条评论 ·
查看 pytest-dev/pytest-timeout 的全部 Issue
相似的 Issue
-
area: agents area: docs good first issue
难度 2/5 1-3 小时 新手友好度 88/100
openapi/gknowledge#23 ·
-
get() for StrEnum可能已有人在做 @FeJo5952 今天认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 72/100
collective/icalendar#1921 · 1 条评论 ·
维护者通常 1 天内回复
-
Improvement Python Spans
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-python#7994 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
alphagov/notifications-api#5004 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
equinor/radix-flux#3922 ·
维护者通常 1 天内回复