Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Refactor live tests for speed

Đang mở
#213 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
performance, testing-qa

Hướng nghiên cứu

Bắt đầu với các test chậm nhất được liệt kê trong tests/test_api.py, tests/test_resolution.py và tests/test_cli.py, sử dụng báo cáo thời lượng làm đường cơ sở. Xem xét các live test này dành thời gian như thế nào và làm rõ mục tiêu tốc độ dự kiến; “done” phải có nghĩa là các test nhanh hơn mà không làm mất hành vi hiện có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

=========================================================================== 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!

Ngôn ngữ chính
Python
Star
23
Fork
29
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aboutcode-org/python-inspector

Tất cả issue của aboutcode-org/python-inspector

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.