pytest-dev / pytest-dev/execnet

2.1.1: `test_popen_io[gevent-sys.executable]` fails

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

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

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

Mô tả

I see this failure while testing execnet 2.1.1 on OpenIndiana:

_____________________ test_popen_io[gevent-sys.executable] _____________________

checker = Checker(python='$(BUILD_DIR)/.tox/py39/bin/python', path=PosixPath('/tmp/pytest-of-marcel/pytest-181/test_popen_io_gevent_sys_execu0'), idx=1)
execmodel = <ExecModel 'gevent'>

    def test_popen_io(checker: Checker, execmodel: ExecModel) -> None:
>       out = checker.run_check(
            inspect.getsource(gateway_base)
            + f"""
    io = init_popen_io(get_execmodel({execmodel.backend!r}))
    io.write(b"hello")
    s = io.read(1)
    assert s == b"x"
    """,
            input="x",
        )

testing/test_basics.py:188:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/test_basics.py:165: in run_check
    return subprocess.run(
/usr/lib/python3.9/subprocess.py:507: in run
    stdout, stderr = process.communicate(input, timeout=timeout)
/usr/lib/python3.9/subprocess.py:1134: in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
/usr/lib/python3.9/subprocess.py:1995: in _communicate
    ready = selector.select(timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selectors.PollSelector object at 0x7fffa7e1c9a0>, timeout = None

    def select(self, timeout=None):
        # This is shared between poll() and epoll().
        # epoll() has a different signature and handling of timeout parameter.
        if timeout is None:
            timeout = None
        elif timeout <= 0:
            timeout = 0
        else:
            # poll() has a resolution of 1 millisecond, round away from
            # zero to wait *at least* timeout seconds.
            timeout = math.ceil(timeout * 1e3)
        ready = []
        try:
>           fd_event_list = self._selector.poll(timeout)
E           Failed: Timeout >20.0s

/usr/lib/python3.9/selectors.py:416: Failed

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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.

Hướng nghiên cứu

Bắt đầu bằng cách chạy test_popen_io[gevent-sys.executable] trên OpenIndiana và kiểm tra testing/test_basics.py xung quanh test_popen_io và run_check. Truy vết đường dẫn init_popen_io được hiển thị trong lỗi để xác định lý do subprocess không hoàn tất. Được xem là hoàn thành khi test kết thúc trong thời gian chờ và các assertion I/O byte của nó đều đạt.

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

Đánh giá

Công nghệ
python
Lĩnh vực
testing
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

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.