giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.38k forks source link

[CentOS Stream 10] test_misc.TestCommonModule.test_debug often fails on ppc64le, s390x, or aarch64 #2374

Open hroncok opened 7 months ago

hroncok commented 7 months ago

Summary

Description

Hello, similarly to https://github.com/giampaolo/psutil/issues/2373 I often get this failure on ppc64le, s390x, or aarch64 CentOS Stream 10 builders:

======================================================================
FAIL: psutil.tests.test_misc.TestCommonModule.test_debug
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/psutil-release-5.9.8/psutil/tests/test_misc.py", line 580, in test_debug
    assert msg.startswith("psutil-debug"), msg
AssertionError
----------------------------------------------------------------------

This however sometimes happens and sometimes does not (possibly flaky or related to the exact machine the builder uses).

I can provide more details as requested or try to debug the problem if instructed. Unfortunately, I cannot use the machine interactively :(

hroncok commented 7 months ago

I am retrying with @retry_on_failure()

hroncok commented 7 months ago

I am retrying with @retry_on_failure()

Nah. One particular build either passes this test immediately or fails all the retrying attempts.

giampaolo commented 6 months ago

I attempted to fix this in aab8d09d0. Let me know how it goes.

hroncok commented 6 months ago

On it. First, I have verified that I can still reproduce the failures without https://github.com/giampaolo/psutil/commit/aab8d09d029420756f85df839b993e3f139dd2ac.

Now building with psutil/tests/test_misc.py changes from that commit.

hroncok commented 6 months ago

Unfortunately no difference, still fails.

======================================================================
FAIL: psutil.tests.test_misc.TestCommonModule.test_debug
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/psutil-release-5.9.8/psutil/tests/test_misc.py", line 582, in test_debug
    assert msg.startswith("psutil-debug"), msg
AssertionError
----------------------------------------------------------------------
Ran 569 tests in 2.863s

(the line number changed, due to the patch)