Skip to content

gh-128657: Run test_hashlib with --parallel-threads #129833

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

Merged
merged 3 commits into from
Feb 8, 2025

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Feb 7, 2025

This catches the race in py_digest_by_name that is fixed separately in gh-128886.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
This catches the race in `py_digest_by_name` that is fixed separately
in pythongh-128886.
@colesbury colesbury marked this pull request as ready for review February 8, 2025 16:26
@colesbury
Copy link
Contributor Author

cc @tom-pytel

@tom-pytel
Copy link
Contributor

So the test triggers TSAN but still succeeds. I am guessing the TSAN error output triggers github action to fail? Would it make sense to catpure stderr (in general for tsan tests) so that the tests can fail directly?

@colesbury
Copy link
Contributor Author

The test failed (as expected) before your commit:

https://github.com/python/cpython/actions/runs/13209357165/job/36879773663

And now passes (as expected) after your PR was merged (and I merged main back into this PR):

https://github.com/python/cpython/actions/runs/13217166856/job/36897772901

@tom-pytel
Copy link
Contributor

The test failed (as expected) before your commit:

You are right, command line difference, adding the "-j4" switch makes it fail for me locally as well, without it it succeeds.

Copy link
Member

@gpshead gpshead left a comment

Choose a reason for hiding this comment

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

thanks for modernizing that test code.

@gpshead gpshead added the tests Tests in the Lib/test dir label Feb 8, 2025
@gpshead gpshead merged commit c1f352b into python:main Feb 8, 2025
54 checks passed
@colesbury colesbury deleted the gh-128657-hashlib-test branch February 8, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants