python / python/cpython

TEST failed: test_posix

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

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

tests type-bug
Ngôn ngữ chính
Python
Star
77.2k
Fork
35.9k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

Os fedora 41 podman run Ubuntu 24.04

root@4e3e51c58d28:~/workspace/ROCmLol/build/Python# uname -a
Linux 4e3e51c58d28 6.11.7-300.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov  8 19:23:10 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@4e3e51c58d28:~/workspace/ROCmLol/build/Python# cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
root@4e3e51c58d28:~/workspace/ROCmLol/build/Python#

Bug report

== Tests result: FAILURE ==

17 tests skipped:
    test.test_asyncio.test_windows_events
    test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace
    test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full
    test.test_gdb.test_misc test.test_gdb.test_pretty_print
    test_devpoll test_ioctl test_kqueue test_launcher test_msilib
    test_startfile test_winapi test_winconsoleio test_winreg test_wmi

6 tests skipped (resource denied):
    test_ossaudiodev test_tix test_tkinter test_ttk test_winsound
    test_zipfile64

1 test failed:
    test_posix

466 tests OK.

0:01:39 load avg: 4.15 Re-running 1 failed tests in verbose mode in subprocesses
0:01:39 load avg: 4.15 Run 1 test in parallel using 1 worker process
0:01:39 load avg: 4.15 [1/1/1] test_posix failed (3 errors)
Re-running test_posix in verbose mode (matching: test_chown, test_fchown, test_lchown)
test_chown (test.test_posix.PosixTester.test_chown) ... ERROR
test_fchown (test.test_posix.PosixTester.test_fchown) ... ERROR
test_lchown (test.test_posix.PosixTester.test_lchown) ... ERROR
test_chown (test.test_posix.TestPosixWeaklinking.test_chown) ... skipped 'test weak linking on macOS'

======================================================================
ERROR: test_chown (test.test_posix.PosixTester.test_chown)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/workspace/ROCmLol/build/Python/Lib/test/test_posix.py", line 816, in test_chown
    self._test_all_chown_common(posix.chown, os_helper.TESTFN, posix.stat)
  File "/root/workspace/ROCmLol/build/Python/Lib/test/test_posix.py", line 780, in _test_all_chown_common
    chown_func(first_param, big_value, big_value)
OSError: [Errno 22] Invalid argument: '@test_261835_tmpæ'

======================================================================
ERROR: test_fchown (test.test_posix.PosixTester.test_fchown)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/workspace/ROCmLol/build/Python/Lib/test/test_posix.py", line 828, in test_fchown
    self._test_all_chown_common(posix.fchown, fd,
  File "/root/workspace/ROCmLol/build/Python/Lib/test/test_posix.py", line 780, in _test_all_chown_common
    chown_func(first_param, big_value, big_value)
OSError: [Errno 22] Invalid argument

======================================================================
ERROR: test_lchown (test.test_posix.PosixTester.test_lchown)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/workspace/ROCmLol/build/Python/Lib/test/test_posix.py", line 839, in test_lchown
    self._test_all_chown_common(posix.lchown, os_helper.TESTFN,
  File "/root/workspace/ROCmLol/build/Python/Lib/test/test_posix.py", line 780, in _test_all_chown_common
    chown_func(first_param, big_value, big_value)
OSError: [Errno 22] Invalid argument: '@test_261835_tmpæ'

----------------------------------------------------------------------
Ran 4 tests in 0.002s

FAILED (errors=3, skipped=1)
test test_posix failed
1 test failed again:
    test_posix

== Tests result: FAILURE then FAILURE ==

17 tests skipped:
    test.test_asyncio.test_windows_events
    test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace
    test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full
    test.test_gdb.test_misc test.test_gdb.test_pretty_print
    test_devpoll test_ioctl test_kqueue test_launcher test_msilib
    test_startfile test_winapi test_winconsoleio test_winreg test_wmi

6 tests skipped (resource denied):
    test_ossaudiodev test_tix test_tkinter test_ttk test_winsound
    test_zipfile64

1 re-run test:
    test_posix

1 test failed:
    test_posix

466 tests OK.

Total duration: 1 min 39 sec
Total tests: run=42,695 skipped=1,265
Total test files: run=485/490 failed=1 skipped=17 resource_denied=6 rerun=1
Result: FAILURE then FAILURE
make: *** [Makefile:1987: test] Error 2
CPython versions tested on:

3.11, 3.12, 3.13

Operating systems tested on:

Linux

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.

Hướng nghiên cứu

Bắt đầu với test/test_posix.py, đặc biệt là _test_all_chown_common quanh dòng 780 cùng với test_chown, test_fchown và test_lchown. Tái hiện lỗi bằng cách chạy test_posix trong môi trường container Linux được báo cáo, sau đó so sánh hành vi giữa Python 3.11, 3.12 và 3.13. Được xem là hoàn tất khi các test chown được báo cáo không còn thất bại hoặc hành vi dành riêng cho nền tảng được xử lý bằng phạm vi kiểm thử phù hợp.

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

Đánh giá

Công nghệ
linux, python, ubuntu
Lĩnh vực
operating-systems, testing-qa
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
Khá rõ ràng
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.