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_asyncio.test_subprocess: test_stdin_broken_pipe() failed on GHA Windows x64 CI · Issue #109709 · python/cpython

test_asyncio.test_subprocess: test_stdin_broken_pipe() failed on GHA Windows x64 CI #109709

New issue
Copy link
New issue
Copy link
Closed
Closed
test_asyncio.test_subprocess: test_stdin_broken_pipe() failed on GHA Windows x64 CI#109709
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-asyncio

Description

@vstinner
vstinner
opened on Sep 22, 2023
Issue body actions
test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessProactorTests.test_stdin_broken_pipe) ... FAIL

FAIL: test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessProactorTests.test_stdin_broken_pipe)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\test_asyncio\test_subprocess.py", line 298, in test_stdin_broken_pipe
    self.assertRaises((BrokenPipeError, ConnectionResetError),
AssertionError: (<class 'BrokenPipeError'>, <class 'ConnectionResetError'>) not raised by run_until_complete

build: https://github.com/python/cpython/actions/runs/6268408487/job/17024556425?pr=109701

cc @sorcio

Linked PRs

  • gh-109709: Fix asyncio test_stdin_broken_pipe() #109710
  • [3.12] gh-109709: Fix asyncio test_stdin_broken_pipe() (GH-109710) #109731
  • [3.11] gh-109709: Fix asyncio test_stdin_broken_pipe() (#109710) #109735

Activity

  1. vstinner
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    topic-asyncio
    on Sep 22, 2023
  2. github-project-automation
    added this to asyncioon Sep 22, 2023
  3. github-project-automation
    moved this to Todo in asyncioon Sep 22, 2023
  4. vstinner commented on Sep 22, 2023

    @vstinner
    vstinner
    on Sep 22, 2023
    MemberAuthor
    More actions

    I already saw this bug in the past:

    • 2017: issue test_stdin_broken_pipe() of test_asyncio failed randomly on AMD64 FreeBSD CURRENT Non-Debug 3.x #74567
    • 2018: issue test_asyncio: test_subprocess test_stdin_broken_pipe() failure on Travis CI #77712
    • 2019: issue test_asyncio: test_stdin_broken_pipe() failed on AMD64 FreeBSD CURRENT Shared 3.x #81336
  5. vstinner commented on Sep 22, 2023

    @vstinner
    vstinner
    on Sep 22, 2023
    MemberAuthor
    More actions

    The issue can be reproduced on FreeBSD with:

    vstinner@freebsd$ ./python -m test test_asyncio.test_subprocess -m test_stdin_broken_pipe -v -j25 --forever
    (...)
    0:00:07 load avg: 7.48 [ 20/1] test_asyncio.test_subprocess failed (1 failure)
    test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessFastWatcherTests.test_stdin_broken_pipe) ... ok
    test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessPidfdWatcherTests.test_stdin_broken_pipe) ... skipped 'operating system does not support pidfds'
    test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessSafeWatcherTests.test_stdin_broken_pipe) ... ok
    test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessThreadedWatcherTests.test_stdin_broken_pipe) ... FAIL
    
    ======================================================================
    FAIL: test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessThreadedWatcherTests.test_stdin_broken_pipe)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/home/vstinner/python/main/Lib/test/test_asyncio/test_subprocess.py", line 298, in test_stdin_broken_pipe
        self.assertRaises((BrokenPipeError, ConnectionResetError),
    AssertionError: (<class 'BrokenPipeError'>, <class 'ConnectionResetError'>) not raised by run_until_complete
    
    ----------------------------------------------------------------------
    Ran 4 tests in 2.170s
    
    FAILED (failures=1, skipped=1)
    /usr/home/vstinner/python/main/Lib/asyncio/base_subprocess.py:125: ResourceWarning: unclosed transport <_UnixSubprocessTransport pid=2131 running stdin=<_UnixWritePipeTransport closed fd=7 closed>>
      _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback
    test test_asyncio.test_subprocess failed
    
  6. vstinner
    added 5 commits that reference this issue on Sep 22, 2023

    pythongh-109709: Fix asyncio test_stdin_broken_pipe()

    6d1d87a

    pythongh-109709: Fix asyncio test_stdin_broken_pipe()

    0c4198e

    pythongh-109709: Fix asyncio test_stdin_broken_pipe()

    561d588

    pythongh-109709: Fix asyncio test_stdin_broken_pipe()

    24b415d

    gh-109709: Fix asyncio test_stdin_broken_pipe() (#109710)

    cbbdf2c
  7. miss-islington
    added a commit that references this issue on Sep 22, 2023

    pythongh-109709: Fix asyncio test_stdin_broken_pipe() (pythonGH-109710)

    8aa841d
  8. vstinner
    added a commit that references this issue on Sep 22, 2023

    [3.11] gh-109709: Fix asyncio test_stdin_broken_pipe() (#109710) (#10…

    1629b1d
  9. csm10495
    added a commit that references this issue on Sep 28, 2023

    pythongh-109709: Fix asyncio test_stdin_broken_pipe() (python#109710)

    ba232d5
  10. vstinner
    closed this as completedon Sep 29, 2023
  11. github-project-automation
    moved this from Todo to Done in asyncioon Sep 29, 2023
  12. Yhg1s
    added a commit that references this issue on Oct 2, 2023

    [3.12] gh-109709: Fix asyncio test_stdin_broken_pipe() (GH-109710) (#…

    c7cbd82
  13. Glyphack
    added a commit that references this issue on Sep 2, 2024

    pythongh-109709: Fix asyncio test_stdin_broken_pipe() (python#109710)

    e4bb702
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-asyncio

    Projects

    • asyncio
      Status
      Done
      Show more project fields

    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.