Incompatible with pytest-timeout plugin
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Bắt đầu bằng cách chạy bản tái hiện pytester được cung cấp với pytest-rerunfailures và pytest-timeout, sau đó kiểm tra cách plugin xử lý các pytest hook liên quan đến việc chạy lại. Hoàn thành khi timeout được áp dụng lại trong lần chạy lại và bản tái hiện báo cáo một lần chạy lại và một test thất bại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
pytest-rerunfailures is not compatible with the pytest-timeout plugin.
Probably b/c the same pytest hooks are used. The first time, the timeout is observed, but when the test case re-runs, there's no timeout.
pytest-timeoutis more widely used and likely would be easier for the fix to be in this plugin if possible..
Here's a test that fails:
import pytest
pytest_plugins = 'pytester'
def test_pytest_timeout_compatibility_fails(testdir):
"""
Verifies the `pytest-rerunfailures` plugin is compatible with `pytest-timeout`
plugin when the test case is not done in the allotted time.
"""
testdir.makepyfile(
"""
import time
import pytest
@pytest.mark.flaky
@pytest.mark.timeout(timeout=1)
def test_times_out():
time.sleep(2)
assert True
"""
)
result = testdir.runpytest()
outcome = result.parseoutcomes()
assert outcome.get('rerun') == 1
assert outcome.get('failed') == 1
When the test case re-runs, it ignores the timeout and passes.
Note: doesn't matter which decorator comes first (flaky or timeout), the behavior is the same.
- Ngôn ngữ chính
- Python
- Star
- 481
- Fork
- 110
- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pytest-dev/pytest-rerunfailures
-
Zero rerun delay can abort with OverflowError for a large finite backoff factorCó thể đã có người làm @AryanRG đã nhận 16 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Non-finite rerun delay settings abort pytest with INTERNALERRORCó thể đã có người làm @Arham-Begani đã nhận 14 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
fail-on-flaky returns success after a rerun with xdistCó thể đã có người làm @harbinresearcher đã nhận 17 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
pytest-dev/pytest-rerunfailures#326 · 7 bình luận ·
-
Add ability to raise runtime warnings on rerunsCó thể đã có người làm @LouisDeconinck đã nhận 45 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
pytest-dev/pytest-rerunfailures#318 · 2 bình luận ·
Tất cả issue của pytest-dev/pytest-rerunfailures
Issue tương tự
-
URLValidator ignores an explicit empty scheme allowlistCó thể đã có người làm @IlyaKhalafi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
tortoise/tortoise-orm#2393 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
frappe/frappe_docker#2046 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Weekly link check failedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
complete_box_iou_loss / complete_box_iou: NaN gradients for zero-height boxes, NaN for point boxesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
AXI SMU SPEC
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
tenstorrent/tt-oca-harness#3556 ·
Maintainer thường phản hồi trong vòng 1 ngày