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

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

Open
hroncok opened this issue Feb 9, 2024 · 5 comments

Comments

@hroncok
Copy link
Contributor

hroncok commented Feb 9, 2024

Summary

  • OS: CentOS Stream 10
  • Architecture: ppc64le, s390x, or aarch64
  • Psutil version: 5.9.8
  • Python version: 3.12.1
  • Type: tests

Description

Hello, similarly to #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
Copy link
Contributor Author

hroncok commented Feb 9, 2024

I am retrying with @retry_on_failure()

@hroncok
Copy link
Contributor Author

hroncok commented Feb 9, 2024

I am retrying with @retry_on_failure()

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

giampaolo added a commit that referenced this issue Mar 15, 2024
@giampaolo
Copy link
Owner

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

@hroncok
Copy link
Contributor Author

hroncok commented Mar 27, 2024

On it. First, I have verified that I can still reproduce the failures without aab8d09.

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

@hroncok
Copy link
Contributor Author

hroncok commented Mar 27, 2024

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)

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

No branches or pull requests

2 participants