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 於 5 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 35/100
aboutcode-org/python-inspector#259 · 1 則留言 ·
-
InconsistentCandidate: Pre-Release not allow可能已有人在做 @Anurag-S1ngh 於 5 天前認領。 未關閉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 於 6 天前認領。 未關閉
難度 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 於 5 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 45/100
aboutcode-org/python-inspector#253 · 1 則留言 ·
查看 aboutcode-org/python-inspector 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 86/100
-
Validate finite output clamping limits in StepPredictor.prepare_clamping_params to prevent silent NaN/Inf propagation可能已有人在做 @muskan-creates352 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
mllam/neural-lam#848 ·
維護者通常 2 天內回覆
-
infra
難度 1/5 1 小時以內 新手友好度 88/100
fab-geocommuns/RNB-coeur#1166 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
deepspeedai/DeepSpeed#8951 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
aws/context-ontology-accelerator#343 ·
維護者通常 1 天內回覆