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

tests fail on 1-core VM #540

Open
bmwiedemann opened this issue Sep 11, 2020 · 1 comment
Open

tests fail on 1-core VM #540

bmwiedemann opened this issue Sep 11, 2020 · 1 comment

Comments

@bmwiedemann
Copy link

While working on reproducible builds for openSUSE, I found that our python-pyftpdlib-1.5.6 package failed its tests when built in a 1-core VM.

To reproduce, one can also use

taskset 1 python3 -m pytest
 pyftpdlib/test/test_functional.py::TestTimeouts::test_idle_data_timeout2 FAILED [ 18%]
 pyftpdlib/test/test_functional_ssl.py::TestTimeouts::test_idle_data_timeout2 FAILED [ 35%]
 pyftpdlib/test/test_functional_ssl.py::TestFtpListingCmdsTLSMixin::test_nlst FAILED [ 46%]
 pyftpdlib/test/test_functional_ssl.py::TestFtpListingCmdsTLSMixin::test_stat FAILED [ 46%]
 pyftpdlib/test/test_functional_ssl.py::TestTimeoutsTLSMixin::test_idle_data_timeout2 FAILED [ 48%]

 self = <pyftpdlib.test.test_functional_ssl.TestFtpListingCmdsTLSMixin testMethod=test_stat>
 
     def tearDown(self):
         close_client(self.client)
 >       self.server.stop()
 
     def assert_free_resources():
         ts = threading.enumerate()
         assert len(ts) == 1, ts
         p = psutil.Process()
         children = p.children()
         if children:
             for p in children:
                 p.kill()
                 p.wait(1)
 >           assert not children, children
 E           AssertionError: [psutil.Process(pid=1364, status='terminated')]

====== 5 failed, 714 passed, 55 skipped, 3 deselected, 1 error in 42.03s =======
@mcepl
Copy link

mcepl commented Jan 19, 2022

We have occasionally this one in our build system (openSUSE when packaging pyftpdlib for our distribution).

This is complete build log with all details about packages used, steps taken etc.

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Jan 21, 2022
https://build.opensuse.org/request/show/947432
by user mcepl + dimstar_suse
- Switch off the test suite, it just doesn't work reliably
  (gh#giampaolo/pyftpdlib#540).
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

No branches or pull requests

2 participants