-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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-126255: Ignore warning about JIT being deactivated when perf support is active in test_embed.InitConfigTests.test_initconfig_api
#126302
gh-126255: Ignore warning about JIT being deactivated when perf support is active in test_embed.InitConfigTests.test_initconfig_api
#126302
Conversation
…e in test_initconfig_api This is a temporary measure to get JIT tests passing again. This should be reverted once a more comprehensive fix lands.
@Fidget-Spinner - Is there a way I can trigger the JIT tests on this? |
Unfortunately there's no way to trigger the JIT tests. The only way to do this - add change to JIT-related files (for example a newline) |
It seems that we still need a couple of changes from #126166 to solve this |
Co-authored-by: Ken Jin <[email protected]> Co-authored-by: Pablo Galindo <[email protected]>
I'm pushing this forward because I want to see JIT CI green 🙂 |
Lib/test/test_embed.py
Outdated
@@ -1780,8 +1781,13 @@ def test_initconfig_api(self): | |||
'perf_profiling': 2, | |||
} | |||
config_dev_mode(preconfig, config) | |||
using_jit = any(x.startswith("JIT") for x in get_build_info()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this won't work for --enable-experimental-jit=interpreter
since it doesn't raise a warning about perf profiling support (because there's no conflict with tier 2 and perf profiler)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...and get_build_info
probably does not work on Windows
f122803
to
79c966c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the fix. Can you maybe just add a comment to the pylifcycle.c
change to explain that this is because perf
works fine with the tier two interpreter, so we just need to check on "real" JIT builds?
This is a temporary measure to get JIT tests passing again while other folks work on a more comprehensive solution.
test_embed.InitConfigTests.test_initconfig_api
fails when cpython is built with--enable-experimental-jit=interpreter
#126255