Repository navigation
gh-94675: Add a regression test for rjsmin re slowdown - #94685
Conversation
|
I can confirm that when cherry-picked on 3.11.0b3, the test hangs. Will see what happens next. If you have some tips about how to make the tests fail when it takes longer than X seconds, other than using subprocess, please let me know. |
Use multiprocessing to kill the test after SHORT_TIMEOUT.
I've used multiprocessing. |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Thanks, this looks great to me.
If there's concern over the use of multiprocessing, note that "tests that run effectively forever when broken" are a different category to me than "does not take too long" — as long as the test suite does not complete successfully, we'll detect the regression ;-)
Here's a recent example of a regression test that runs forever when regressed: #93815
|
My concern not about multiprocessing per se. The commit would have broken our WebAssembly buildbots. Neither WASI nor Emscripten support fork() or creation of subprocesses. |
This tests a speed regression in the re module which prevented chromium from building in Fedora. python#94685
|
What can I do to get this merged? It was reviewed and approved. Thanks. |
|
I can merge it, I queued a buildbot run first to see if the existing chosen timeout is an obvious issue on any. |
|
Thanks. The timeout is larger than necessary by magnitudes, but better safe than sorry. |
|
Where do I see the buildbot result? |
|
Let me update and re-run the buildbots again. |
This tests a speed regression in the re module which prevented chromium from building in Fedora. python#94685
|
GH-95630 is a backport of this pull request to the 3.11 branch. |
…H-94685) Adds a regression test for an re slowdown observed by rjsmin. Uses multiprocessing to kill the test after SHORT_TIMEOUT. Co-authored-by: Oleg Iarygin <dralife@yandex.ru> Co-authored-by: Christian Heimes <christian@python.org> (cherry picked from commit fe23c00) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Adds a regression test for an re slowdown observed by rjsmin. Uses multiprocessing to kill the test after SHORT_TIMEOUT. Co-authored-by: Oleg Iarygin <dralife@yandex.ru> Co-authored-by: Christian Heimes <christian@python.org> (cherry picked from commit fe23c00) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
|
@gpshead Thanks for merging. |
…uilding For details, see python/cpython#94675 Backported from upstream 3.11 branch + python/cpython#94685 Needs bootstrap for test_distutils (assert _sre.MAGIC == MAGIC, "SRE module mismatch").
Uh oh!
There was an error while loading. Please reload this page.