Write tests for cache performance in fine-grained incremental mode

Đang mở
#5,002 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
build-system, testing-qa

Hướng nghiên cứu

Start with build.py and trace cache loading for a daemon cold start using --cache-fine-grained. Add an end-to-end test that runs normally to write cache files, then starts the daemon cold and verifies those files are successfully loaded; the test should pass reliably and guard the real-world cache-loading path.

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

Mô tả

priority-1-normal topic-fine-grained-incremental topic-tests

We don't have good tests for end-to-end cache performance. It would be good to add tests that check that cache files written in a normal run with --cache-fine-grained are then successfully loaded in a subsequent daemon cold start. The emphasis here is on end-to-end, we have tests that use cache but they don't exactly emulate what happens "in real world". An additional argument for this is that code in build.py responsible for cache loading is quite complicated, so it is better to be sure that we don't break it.

Ngôn ngữ chính
Python
Star
20.6k
Fork
3.3k
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
54

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 python/mypy

Tất cả issue của python/mypy

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.