Refactor live tests for speed
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 重构
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
调研方向
从 tests/test_api.py、tests/test_resolution.py 和 tests/test_cli.py 中列出的最慢测试开始,以 duration report 作为基准。检查这些 live tests 如何耗费时间,并明确预期的速度目标;done 应意味着测试速度更快,同时不丢失其现有行为。
由索引模型根据 Issue 内容生成。
描述
=========================================================================== slowest 20 durations ============================================================================
31.38s call tests/test_api.py::test_api_with_requirement_file
22.70s call tests/test_resolution.py::test_without_supported_wheels
16.58s call tests/test_cli.py::test_pdt_output_with_frozen_requirements
13.41s call tests/test_cli.py::test_pdt_output_with_pinned_requirements
12.69s call tests/test_resolution.py::test_get_resolved_dependencies_with_flask_and_python_36
8.87s call tests/test_cli.py::test_cli_with_azure_devops_with_python_313
8.73s call tests/test_cli.py::test_cli_with_single_index_url_except_pypi_simple
8.09s call tests/test_resolution.py::test_get_resolved_dependencies_with_flask_and_python_310
7.98s call tests/test_resolution.py::test_get_resolved_dependencies_with_flask_and_python_310_windows
7.56s call tests/test_cli.py::test_cli_with_azure_devops_with_python_310
7.29s call tests/test_cli.py::test_cli_with_azure_devops_with_python_38
6.34s call tests/test_cli.py::test_cli_with_pinned_requirements_file
3.54s call tests/test_cli.py::test_cli_with_requirements_and_ignore_errors
2.83s call tests/test_cli.py::test_cli_with_environment_marker_and_complex_ranges
2.83s call tests/test_api.py::test_api_with_prefer_source
2.74s call tests/test_api.py::test_api_with_specifier_pdt
2.73s call tests/test_api.py::test_api_with_specifier
2.64s call tests/test_api.py::test_api_with_python_311
2.62s call tests/test_api.py::test_api_with_recursive_requirement_file
2.28s call tests/test_resolution.py::test_get_resolved_dependencies_with_tilde_requirement_using_json_api
... we can do better!
- 主要语言
- Python
- 星标
- 23
- 派生
- 29
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aboutcode-org/python-inspector 的其他 Issue
-
难度 3/5 半天 新手友好度 62/100
aboutcode-org/python-inspector#268 · 1 条评论 ·
-
Add support for pylock.toml可能已有人在做 @Anurag-S1ngh 于 6 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
aboutcode-org/python-inspector#259 · 1 条评论 ·
-
InconsistentCandidate: Pre-Release not allow可能已有人在做 @Anurag-S1ngh 于 6 天前认领。 未关闭bug design nice-to-have
难度 4/5 3-5 天 新手友好度 35/100
aboutcode-org/python-inspector#257 · 1 条评论 ·
-
Feature request: Mask repository credentials in --verbose output可能已有人在做 @Rajeshwari2857 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 58/100
aboutcode-org/python-inspector#254 · 4 条评论 · 4 个 reaction ·
-
Python Inspector version 0.15.0 contains the wrong version string可能已有人在做 @Anurag-S1ngh 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
aboutcode-org/python-inspector#253 · 2 条评论 ·
查看 aboutcode-org/python-inspector 的全部 Issue
相似的 Issue
-
Bug: POWERTOOLS_IDEMPOTENCY_DISABLED set to an empty or non-boolean value crashes every invocation可能已有人在做 @lechakrawarthy 今天认领。 未关闭bug good first issue help wanted idempotency
难度 2/5 1-3 小时 新手友好度 85/100
aws-powertools/powertools-lambda-python#8728 · 2 条评论 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
emeraldleaf/okl#320 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 80/100
mnemosyne-oss/mnemosyne#1309 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
huggingface/diffusers#15163 ·
维护者通常 1 天内回复
-
integration: ring
难度 2/5 1-3 小时 新手友好度 85/100
home-assistant/core#189787 · 1 条评论 ·
维护者通常 1 天内回复