bpo-37667: Only setup PGO tests when PGO is actually enabled.#14927
bpo-37667: Only setup PGO tests when PGO is actually enabled.#14927gpshead merged 1 commit intopython:masterfrom
Conversation
|
CI is happily running all 419 tests again with this PR. =) and I have manually confirmed that |
|
Thanks @gpshead for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
I'm having trouble backporting to |
|
Thanks @gpshead for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
GH-14928 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit f0807ab) Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit f0807ab) Co-authored-by: Gregory P. Smith <greg@krypto.org>
|
Thanks for fixing this. I botched the refactoring that introduced setup_pgo_tests(). 😢 |
|
No prob. I'm not sure if my fix is _ideal_, I was just surgically solving
the immediate problem.
… |
|
I think it is the correct fix. It is exactly what I had in my tree before I realized you already fixed it. Initially I had the "if ns.pgo" test inside the setup_pgo_tests(). However, I decided that makes the call in main.py a bit confusing since it looks like something gets done in the non-PGO case. So, I removed the test from setup_pgo_tests() but then I forget to add it to main.py. So, your fix makes the code the way I intended it. I should have run the test suite after the refactoring. My testing consisted of running the build using "--enable-optimizations" and "--enable-optimzations PROFILE=TASK=...". I forget to run the normal test suite. No major harm done but kind of embarrassing. 😁 |
(cherry picked from commit f0807ab) Co-authored-by: Gregory P. Smith <greg@krypto.org>
We're skipping all but 40 of the tests when running the test suite now as of 2406672
OOPS :)
https://bugs.python.org/issue37667
Automerge-Triggered-By: @gpshead