Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-46126: Disable 'descriptions' when running tests internally. #30194

Merged
merged 1 commit into from
Jan 22, 2022

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Dec 19, 2021

https://bugs.python.org/issue46126

Automerge-Triggered-By: GH:jaraco

@jaraco
Copy link
Member Author

jaraco commented Dec 24, 2021

Hey Victor. Github thinks you might be a good reviewer, so I've requested your review. Please take a look, or re-assign to someone else (Łukasz maybe), or suggest another avenue. Thanks.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Displaying test method docstrings caused me many practical issues when analyzing buildbot results. For example, it's harder to apply a regular expression to convert a test output to a list of test method which have been executed. I need to do that to re-run the same test methods, usually to bisect a reference leak.

@pablogsal: do you want to also have a look into this regrtest output change?

Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for the PR @jaraco !

@miss-islington miss-islington merged commit a941e59 into main Jan 22, 2022
@miss-islington miss-islington deleted the bpo-46126/bad-error-message branch January 22, 2022 18:49
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL7 LTO 3.x has failed when building commit a941e59.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/507/builds/1408) and take a look at the build logs.
  4. Check if the failure is related to this commit (a941e59) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/507/builds/1408

Failed tests:

  • test_shutil
  • test_zipfile

Failed subtests:

  • test_append_to_concatenated_zip_file - test.test_zipfile.StoredTestsWithSourceFile
  • test_regular_copy - test.test_shutil.TestZeroCopySendfile
  • test_small_chunks - test.test_shutil.TestZeroCopySendfile
  • test_big_chunk - test.test_shutil.TestZeroCopySendfile
  • test_non_regular_file_src - test.test_shutil.TestZeroCopySendfile
  • test_file2file_not_supported - test.test_shutil.TestZeroCopySendfile
  • setUpClass - test.test_shutil.TestZeroCopySendfile
  • test_cant_get_size - test.test_shutil.TestZeroCopySendfile

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

416 tests OK.

10 slowest tests:

  • test_peg_generator: 5 min 32 sec
  • test_mailbox: 4 min 15 sec
  • test_concurrent_futures: 2 min 41 sec
  • test_gdb: 2 min 10 sec
  • test_multiprocessing_spawn: 1 min 46 sec
  • test_sqlite3: 1 min 44 sec
  • test_dbm: 1 min 42 sec
  • test_shelve: 1 min 40 sec
  • test_multiprocessing_forkserver: 1 min 14 sec
  • test_multiprocessing_fork: 1 min 5 sec

2 tests failed:
test_shutil test_zipfile

14 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_smtpnet
test_ssl test_startfile test_tix test_tk test_ttk_guionly
test_winconsoleio test_winreg test_winsound test_zipfile64

2 re-run tests:
test_shutil test_zipfile

Total duration: 7 min 43 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2369, in get_files
    yield (src, dst)
    ^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2384, in test_regular_copy
    self.zerocopy_fun(src, dst)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2450, in zerocopy_fun
    return shutil._fastcopy_sendfile(fsrc, fdst)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 158, in _fastcopy_sendfile
    raise err from None
    ^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 144, in _fastcopy_sendfile
    sent = os.sendfile(outfd, infd, offset, blocksize)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 28] No space left on device: '@test_30061_tmpæ' -> '@test_30061_tmpæ2'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2369, in get_files
    yield (src, dst)
    ^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2520, in test_big_chunk
    shutil._fastcopy_sendfile(src, dst)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 158, in _fastcopy_sendfile
    raise err from None
    ^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 144, in _fastcopy_sendfile
    sent = os.sendfile(outfd, infd, offset, blocksize)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 28] No space left on device: '@test_30061_tmpæ' -> '@test_30061_tmpæ2'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_zipfile.py", line 533, in test_append_to_concatenated_zip_file
    f.write(data)
    ^^^^^^^^^^^^^
OSError: [Errno 28] No space left on device


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2457, in test_non_regular_file_src
    shutil.copyfileobj(src, dst)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 200, in copyfileobj
    fdst_write(buf)
    ^^^^^^^^^^^^^^^
OSError: [Errno 28] No space left on device


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2369, in get_files
    yield (src, dst)
    ^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2494, in test_cant_get_size
    shutil._fastcopy_sendfile(src, dst)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 158, in _fastcopy_sendfile
    raise err from None
    ^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 144, in _fastcopy_sendfile
    sent = os.sendfile(outfd, infd, offset, blocksize)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 28] No space left on device: '@test_30061_tmpæ' -> '@test_30061_tmpæ2'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2558, in test_file2file_not_supported
    shutil.copyfile(TESTFN, TESTFN2)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 279, in copyfile
    copyfileobj(fsrc, fdst)
    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 200, in copyfileobj
    fdst_write(buf)
    ^^^^^^^^^^^^^^^
OSError: [Errno 28] No space left on device


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2369, in get_files
    yield (src, dst)
    ^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2507, in test_small_chunks
    shutil._fastcopy_sendfile(src, dst)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 158, in _fastcopy_sendfile
    raise err from None
    ^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/shutil.py", line 144, in _fastcopy_sendfile
    sent = os.sendfile(outfd, infd, offset, blocksize)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 28] No space left on device: '@test_30061_tmpæ' -> '@test_30061_tmpæ2'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '/psm_931504f9'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '/psm_6108b6c6'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 2353, in setUpClass
    write_test_file(TESTFN, cls.FILESIZE)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_shutil.py", line 98, in write_test_file
    f.write(chunk)
    ^^^^^^^^^^^^^^
OSError: [Errno 28] No space left on device


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '/psm_9cb40663'

@jaraco
Copy link
Member Author

jaraco commented Jan 22, 2022

Test failures are "no space left on device". Seems to be a buildbot issue and not related to the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants