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

gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes #125042

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

encukou
Copy link
Member

@encukou encukou commented Oct 7, 2024

@@ -0,0 +1,3 @@
Re-enable skipped tests for :mod:`zlib` on the s390x architecture: only skip
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that NEWS isn't required for unittest.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, it's not required.

@encukou
Copy link
Member Author

encukou commented Oct 8, 2024

s390x buildbots were removed, so there's no way for me to test this right now :(
@vstinner, do you want to review this?

@encukou
Copy link
Member Author

encukou commented Oct 14, 2024

!buildbot s390x

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @encukou for commit 126109b 🤖

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

The builders matched are:

  • s390x RHEL8 PR
  • s390x RHEL8 Refleaks PR
  • s390x RHEL8 LTO PR
  • s390x RHEL9 LTO + PGO PR
  • s390x RHEL8 LTO + PGO PR
  • s390x RHEL9 Refleaks PR
  • s390x RHEL9 LTO PR
  • s390x RHEL9 PR

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM. I just left minor coding style remarks.

I don't recall exactly the details, I skipped these tests 2 years ago. But from what I read, the change looks correct.

Sadly, I don't recall how to reproduce the issue: how to get access to a s390x machine where the hardware acceleration is enabled.

self.assertEqual(zlib.compress(bytearray(data)), x)
if not HW_ACCELERATED:
# With hardware acceleration, the compressed bytes
# might not be identical.
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: can you put the comment on the if instead? same comment below.

Lib/test/test_zlib.py Outdated Show resolved Hide resolved
@encukou
Copy link
Member Author

encukou commented Oct 15, 2024

The new builders have HW acceleration -- the tests fail on main :)

Lib/test/test_zlib.py Outdated Show resolved Hide resolved
Lib/test/test_zlib.py Outdated Show resolved Hide resolved
@encukou
Copy link
Member Author

encukou commented Oct 15, 2024

Sorry, not main -- I meant “the existing branch”: 3.10 in particular.

@encukou encukou enabled auto-merge (squash) October 15, 2024 11:06
@encukou encukou merged commit cc5a225 into python:main Oct 15, 2024
34 checks passed
@encukou encukou deleted the zlib-hw-skip branch October 15, 2024 14:25
@encukou encukou added needs backport to 3.11 only security fixes needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Oct 15, 2024
@miss-islington-app
Copy link

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @encukou, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker cc5a225cdc2a5d4e035dd08d59cef39182c10a6c 3.11

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 15, 2024
…king the compressed bytes (pythonGH-125042)

(cherry picked from commit cc5a225)

Co-authored-by: Petr Viktorin <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 15, 2024
…king the compressed bytes (pythonGH-125042)

(cherry picked from commit cc5a225)

Co-authored-by: Petr Viktorin <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Oct 15, 2024

GH-125526 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Oct 15, 2024
@bedevere-app
Copy link

bedevere-app bot commented Oct 15, 2024

GH-125527 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Oct 15, 2024
encukou added a commit that referenced this pull request Oct 16, 2024
…cking the compressed bytes (GH-125042) (#125527)

(cherry picked from commit cc5a225)

Co-authored-by: Petr Viktorin <[email protected]>
encukou added a commit to encukou/cpython that referenced this pull request Oct 16, 2024
…king the compressed bytes (python#125042)

(cherry picked from commit cc5a225)
@bedevere-app
Copy link

bedevere-app bot commented Oct 16, 2024

GH-125577 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Oct 16, 2024
encukou added a commit to encukou/cpython that referenced this pull request Oct 16, 2024
…, skip checking the compressed bytes (pythonGH-125042)

This backports two commits:

- pythonGH-31096 skipped the tests unconditionally
- pythonGH-125042 skips only the possibly-failing assertion

(cherry picked from commit cc5a225)
@bedevere-app
Copy link

bedevere-app bot commented Oct 16, 2024

GH-125585 is a backport of this pull request to the 3.10 branch.

encukou added a commit to encukou/cpython that referenced this pull request Oct 16, 2024
…ration, skip checking the compressed bytes (pythonGH-125042)

This backports two commits:

- pythonGH-31096 skipped the tests unconditionally
- pythonGH-125042 skips only the possibly-failing assertion

(cherry picked from commit d522856)

Co-authored-by: Petr Viktorin <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Oct 16, 2024

GH-125587 is a backport of this pull request to the 3.9 branch.

encukou added a commit that referenced this pull request Oct 16, 2024
…cking the compressed bytes (GH-125042) (GH-125526)

(cherry picked from commit cc5a225)

Co-authored-by: Petr Viktorin <[email protected]>
pablogsal pushed a commit that referenced this pull request Oct 22, 2024
…cking the compressed bytes (GH-125042) (#125577)

gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (#125042)

(cherry picked from commit cc5a225)
pablogsal pushed a commit that referenced this pull request Oct 22, 2024
…p checking the compressed bytes (GH-125042) (#125585)

gh-125041: gh-90781: test_zlib: For s390x HW acceleration, skip checking the compressed bytes (GH-125042)

This backports two commits:

- GH-31096 skipped the tests unconditionally
- GH-125042 skips only the possibly-failing assertion

(cherry picked from commit cc5a225)
ambv pushed a commit that referenced this pull request Oct 28, 2024
… checking the compressed bytes (GH-125042) (#125587)

This backports two commits:

- GH-31096 skipped the tests unconditionally
- GH-125042 skips only the possibly-failing assertion

(cherry picked from commit d522856)
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

Successfully merging this pull request may close these issues.

4 participants