Skip to content

Write a bunch of primitives tests as subtests for performance - #5246

Merged
reaperhulk merged 1 commit into
pyca:masterfrom
alex:pytest-subtest
Dec 9, 2020
Merged

reaperhulk merged 1 commit into
pyca:masterfrom
alex:pytest-subtest

Conversation

@alex

@alex alex commented May 11, 2020

Copy link
Copy Markdown
Member

No description provided.

@alex alex changed the title Write a bunch of primitives tests as subtests for performance Write a bunch of primitives tests as for-loops for performance May 12, 2020
Comment thread .github/workflows/download_openssl.py Resolved
@alex

alex commented May 12, 2020

Copy link
Copy Markdown
Member Author

19:09:24 <Alex_Gaynor> reaperhulk: ah fuck, there's a problem with just doing a loop. pytest.skip() raises an exception, which means all subsequent tests in the bundle get skipped, not just that test.
19:10:00 <Alex_Gaynor> reaperhulk: this means we're skipping a ton of tests, and probably significantl contributes to the perf difference (e.g. none of the kbkdf ones are running, because the first thing in that vector is skipped)
19:10:58 <Alex_Gaynor> reaperhulk: this is why we need real subtest support

Since pytest-subtests is py3 only, I'm not sure what to do. 25% of our downloads are still py2, so just drop it isn't on the table ATM.

@alex
alex force-pushed the pytest-subtest branch from fd4bd7b to 612c795 Compare June 25, 2020 23:39
@alex alex changed the title Write a bunch of primitives tests as for-loops for performance Write a bunch of primitives tests as subtests for performance Jun 25, 2020
@alex
alex marked this pull request as draft June 25, 2020 23:41
@alex

alex commented Jun 25, 2020

Copy link
Copy Markdown
Member Author

Converted to a draft, since I don't think we have a way forward until the far future when we're py3 only.

@alex
alex force-pushed the pytest-subtest branch 4 times, most recently from a0ab40a to c94282e Compare July 22, 2020 19:23
@alex
alex force-pushed the pytest-subtest branch 2 times, most recently from a736769 to e07d836 Compare August 15, 2020 15:04
@opendev-zuul

opendev-zuul Bot commented Aug 15, 2020

Copy link
Copy Markdown

@opendev-zuul

opendev-zuul Bot commented Aug 15, 2020

Copy link
Copy Markdown

Build succeeded (check pipeline).

@alex alex added this to the Thirty Fourth Release milestone Dec 5, 2020
@alex
alex marked this pull request as ready for review December 9, 2020 05:18
Comment thread setup.py Resolved
@reaperhulk
reaperhulk merged commit b3540ec into pyca:master Dec 9, 2020
@alex
alex deleted the pytest-subtest branch December 9, 2020 06:20
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants