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_profiling.test_sampling_profiler: test_generator_not_under_consumer_arithmetic() failed on the Windows CI · Issue #150429 · python/cpython

test_profiling.test_sampling_profiler: test_generator_not_under_consumer_arithmetic() failed on the Windows CI #150429

New issue
Copy link
New issue
Copy link
Closed
Closed
test_profiling.test_sampling_profiler: test_generator_not_under_consumer_arithmetic() failed on the Windows CI#150429
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-profiling

Description

@vstinner
vstinner
opened on May 25, 2026
Issue body actions

"Windows / Build and test (x64, tail-call)" GHA CI: https://github.com/python/cpython/actions/runs/26413033443/job/77751481935?pr=150417

FAIL: test_generator_not_under_consumer_arithmetic (test.test_profiling.test_sampling_profiler.test_blocking.TestBlockingModeStackAccuracy.test_generator_not_under_consumer_arithmetic)
Test that fibonacci_generator doesn't appear when consume_generator does arithmetic.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\test_profiling\test_sampling_profiler\test_blocking.py", line 137, in test_generator_not_under_consumer_arithmetic
    self.assertEqual(invalid_stacks, 0,
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
        f"Found {invalid_stacks}/{arithmetic_samples} invalid stacks where "
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        f"fibonacci_generator appears in the stack when consume_generator "
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        f"is on an arithmetic line. This indicates torn/inconsistent stack "
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        f"traces are being captured.")
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 303 != 0 : Found 303/6238 invalid stacks where fibonacci_generator appears in the stack when consume_generator is on an arithmetic line. This indicates torn/inconsistent stack traces are being captured.

Linked PRs

  • gh-150429: Fix sampling profiler generator stack test #150433
  • [3.15] gh-150429: Fix sampling profiler generator stack test (GH-150433) #150734

Activity

  1. vstinner
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    topic-profiling
    on May 25, 2026
  2. vstinner commented on May 25, 2026

    @vstinner
    vstinner
    on May 25, 2026
    MemberAuthor
    More actions

    The test also fails on the GHA "Windows / Build and test (Win32, switch-case)" CI: https://github.com/python/cpython/actions/runs/26417766453/job/77765844209?pr=150402

  3. pablogsal commented on May 25, 2026

    @pablogsal
    pablogsal
    on May 25, 2026
    Member
    More actions

    Checking

    Reacted by Victor Stinner
  4. vstinner commented on Jun 1, 2026

    @vstinner
    vstinner
    on Jun 1, 2026
    MemberAuthor
    More actions

    Another example of failure: https://github.com/python/cpython/actions/runs/26692804363/job/78723768121?pr=150628.

  5. pablogsal
    added a commit that references this issue on Jun 1, 2026

    gh-150429: Fix sampling profiler generator stack test (#150433)

    ce073ec
  6. pablogsal
    closed this as completedon Jun 1, 2026
  7. pablogsal commented on Jun 1, 2026

    @pablogsal
    pablogsal
    on Jun 1, 2026
    Member
    More actions

    Landing the fix after checking the buildbots on the PR

    Reacted by Victor Stinner
  8. pablogsal
    added a commit that references this issue on Jun 1, 2026

    [3.15] gh-150429: Fix sampling profiler generator stack test (GH-150433…

    a4781e6
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 dirtopic-profiling

    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.