Skip to content

gh-130149: fix HMAC tests for some FIPS-only build bots #130788

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 1 commit into from
Mar 4, 2025

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Mar 3, 2025

I can just skip those tests on FIPS-only build bots. Currently, the Python implementation of HMAC was just delegating to any existing implementation, but some of them are not available at all (neither in OpenSSL nor as built-in modules).

So for now, Python implementation of HMAC is tested with OpenSSL hash functions instead.

@picnixz picnixz requested a review from gpshead as a code owner March 3, 2025 11:55
@bedevere-app bedevere-app bot added tests Tests in the Lib/test dir awaiting core review labels Mar 3, 2025
@bedevere-app bedevere-app bot mentioned this pull request Mar 3, 2025
@picnixz
Copy link
Member Author

picnixz commented Mar 3, 2025

!buildbot FIPS

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @picnixz for commit cc2fbe1 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130788%2Fmerge

The command will test the builders whose names match following regular expression: FIPS

The builders matched are:

  • AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR
  • AMD64 CentOS9 FIPS No Builtin Hashes PR
  • AMD64 RHEL8 FIPS No Builtin Hashes PR
  • AMD64 CentOS9 FIPS Only Blake2 Builtin Hash PR

@picnixz
Copy link
Member Author

picnixz commented Mar 3, 2025

I'm pretty sure the tests will fail (because those build bots are already failing) but they shouldn't fail more

@picnixz
Copy link
Member Author

picnixz commented Mar 3, 2025

So, the two failures are now back to what they were previously. Those two build bots were already failing but now test_hmac does not fail anymore on them.

@picnixz picnixz self-assigned this Mar 3, 2025
@picnixz picnixz merged commit 15d926b into python:main Mar 4, 2025
46 of 48 checks passed
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…#130788)

Skips some HMAC tests for some FIPS-only build bots that do not have the underlying hash functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants