GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `test_embed.InitConfigTests.test_initconfig_api` fails when cpython is built with `--enable-experimental-jit=interpreter` · Issue #126255 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
test_embed.InitConfigTests.test_initconfig_api fails when cpython is built with --enable-experimental-jit=interpreter#126255
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@mpage
mpage
opened on Oct 31, 2024
Issue body actions

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

  • gh-126255: Ignore warning about JIT being deactivated when perf support is active in test_embed.InitConfigTests.test_initconfig_api #126302

Activity

  1. mpage
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Oct 31, 2024
  2. Eclips4 commented on Oct 31, 2024

    @Eclips4
    Eclips4
    on Oct 31, 2024
    Member
    More actions

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

    Reacted by mpage
  3. Eclips4
    added 2 commits that reference this issue on Nov 1, 2024

    Merge branch 'main' into pythongh-126255-temp-workaround-embed-test-f…

    b5c3459

    gh-126255: Ignore warning about JIT being deactivated when perf suppo…

    f0c6fcc
  4. mpage
    closed this as completedon Nov 2, 2024
  5. picnixz
    added a commit that references this issue on Dec 8, 2024

    pythongh-126255: Ignore warning about JIT being deactivated when perf…

    0aa2f83
  6. ebonnal
    added a commit that references this issue on Jan 12, 2025

    pythongh-126255: Ignore warning about JIT being deactivated when perf…

    1c88e3e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.