Skip to content
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

test_embed.InitConfigTests.test_initconfig_api fails when cpython is built with --enable-experimental-jit=interpreter #126255

Closed
mpage opened this issue Oct 31, 2024 · 1 comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@mpage
Copy link
Contributor

mpage commented Oct 31, 2024

Bug report

Bug description:

The test_embed.InitConfigTests.test_initconfig_api is failing on main when cpython is built with --enable-experimental-jit=interpreter at commit 0e8665554b2.

To reproduce, build cpython with:

> ./configure --enable-experimental-jit=interpreter --with-pydebug && make -j

then run

> ./python -m test test_embed --match test_initconfig_api

== CPython 3.14.0a1+ (bisect/bad:2d37c719ed7, Oct 31 2024, 11:39:42) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)]
== Linux-5.19.0-0_fbk21_hardened_12633_g4db063a1bcb5-x86_64-with-glibc2.34 little-endian
== Python build: debug JIT-interpreter
== cwd: /data/users/mpage/cpython/build/test_python_worker_1315808æ
== CPU count: 56
== encodings: locale=UTF-8 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests

Using random seed: 2318555454
0:00:00 load avg: 1.23 Run 1 test sequentially in a single process
0:00:00 load avg: 1.23 [1/1] test_embed
test_initconfig_api (test.test_embed.InitConfigTests.test_initconfig_api)
configure_locale ... FAIL

======================================================================
FAIL: test_initconfig_api (test.test_embed.InitConfigTests.test_initconfig_api)
configure_locale
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/data/users/mpage/cpython/Lib/test/test_embed.py", line 1783, in test_initconfig_api
    self.check_all_configs("test_initconfig_api", config, preconfig,
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           api=API_ISOLATED)
                           ^^^^^^^^^^^^^^^^^
  File "/data/users/mpage/cpython/Lib/test/test_embed.py", line 928, in check_all_configs
    self.assertEqual(err.rstrip(), stderr)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '<sys>:0: RuntimeWarning: JIT deactivated as perf profiling support is active' != ''
- <sys>:0: RuntimeWarning: JIT deactivated as perf profiling support is active


----------------------------------------------------------------------
Ran 1 test in 0.112s

FAILED (failures=1)
test test_embed failed
test_embed failed (1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_embed

Total duration: 182 ms
Total tests: run=1 (filtered) failures=1
Total test files: run=1/1 (filtered) failed=1
Result: FAILURE
>

The failure bisects to #124856. cc @pablogsal

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

@mpage mpage added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Oct 31, 2024
@Eclips4
Copy link
Member

Eclips4 commented Oct 31, 2024

This is a known issue. See #126166. Though we may need to temporarily revert #124856.

Eclips4 added a commit to mpage/cpython that referenced this issue Nov 1, 2024
Eclips4 added a commit that referenced this issue Nov 1, 2024
…rt is active in `test_embed.InitConfigTests.test_initconfig_api` (#126302)

Temporarily ignore warnings about JIT deactivation when perf support is active. 
This will be reverted as soon as a way is found to determine at run time whether the interpreter was built with JIT. Currently, this is not possible on Windows.


Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
@mpage mpage closed this as completed Nov 2, 2024
picnixz pushed a commit to picnixz/cpython that referenced this issue Dec 8, 2024
… support is active in `test_embed.InitConfigTests.test_initconfig_api` (python#126302)

Temporarily ignore warnings about JIT deactivation when perf support is active. 
This will be reverted as soon as a way is found to determine at run time whether the interpreter was built with JIT. Currently, this is not possible on Windows.


Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
ebonnal pushed a commit to ebonnal/cpython that referenced this issue Jan 12, 2025
… support is active in `test_embed.InitConfigTests.test_initconfig_api` (python#126302)

Temporarily ignore warnings about JIT deactivation when perf support is active. 
This will be reverted as soon as a way is found to determine at run time whether the interpreter was built with JIT. Currently, this is not possible on Windows.


Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants