X Tutup
The Wayback Machine - https://web.archive.org/web/20220929142931/https://github.com/python/cpython/issues/97642
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

Skip tests when there's no space left on device? #97642

Open
sobolevn opened this issue Sep 29, 2022 · 0 comments
Open

Skip tests when there's no space left on device? #97642

sobolevn opened this issue Sep 29, 2022 · 0 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@sobolevn
Copy link
Member

sobolevn commented Sep 29, 2022

Right now buildbots sometimes fail with something like:

======================================================================
ERROR: test_zipfile (test.test_multiprocessing_main_handling.SpawnCmdLineTest.test_zipfile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/test/test_multiprocessing_main_handling.py", line 223, in test_zipfile
    with os_helper.temp_dir() as script_dir:
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/test/support/os_helper.py", line 467, in temp_dir
    path = tempfile.mkdtemp()
           ^^^^^^^^^^^^^^^^^^
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/tempfile.py", line 368, in mkdtemp
    _os.mkdir(file, 0o700)
OSError: [Errno 28] No space left on device: '/tmp/tmpcuj5padp'

Log: https://buildbot.python.org/all/#/builders/484/builds/2129/steps/5/logs/stdio

The problem is that it creates some problems:

We might catch OSError with error code 28 on linux and just skip tests.
How does this sound to others?

If this looks like a good idea, I will send a PR.

@sobolevn sobolevn added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant
X Tutup