-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-37667: Only setup PGO tests when PGO is actually enabled. #14927
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
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 <[email protected]>
(cherry picked from commit f0807ab) Co-authored-by: Gregory P. Smith <[email protected]>
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 <[email protected]>
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