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 — A bunch of CI failures on `main` branch · Issue #97983 · python/cpython

A bunch of CI failures on main branch #97983

New issue
Copy link
New issue
Copy link
Closed
Closed
A bunch of CI failures on main branch#97983
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

@sobolevn
sobolevn
opened on Oct 6, 2022
Issue body actions

The CI does not look good. There are multiple failures, they are unrelated, but all do happen on random commits.

Grouping them in one meta issue for now.

  • asyncio failures:
======================================================================
FAIL: test_subprocess_shell (test.test_asyncio.test_events.KqueueEventLoopTests.test_subprocess_shell)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_asyncio/test_events.py", line 1813, in test_subprocess_shell
    self.assertEqual(proto.data[1].rstrip(b'\r\n'), b'Python')
AssertionError: b'' != b'Python'

CI link: https://github.com/python/cpython/actions/runs/3193117202/jobs/5211355431#step:7:3155
Commit: b44372e

  • Altered environment on Windows:
 Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\support\os_helper.py", line 483, in temp_dir
    yield path
  File "D:\a\cpython\cpython\Lib\test\support\os_helper.py", line 536, in temp_cwd
    yield cwd_dir
  File "D:\a\cpython\cpython\Lib\test\libregrtest\main.py", line 701, in main
    self._main(tests, kwargs)
  File "D:\a\cpython\cpython\Lib\test\libregrtest\main.py", line 758, in _main
    sys.exit(0)
SystemExit: 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\support\__init__.py", line 203, in _force_run
    return func(*args)
           ^^^^^^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\a\\cpython\\cpython\\build\\test_python_5740�\\test_python_worker_5604�'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\runpy.py", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\cpython\cpython\Lib\runpy.py", line 88, in _run_code
    exec(code, run_globals)
  File "D:\a\cpython\cpython\Lib\test\__main__.py", line 2, in <module>
    main()
  File "D:\a\cpython\cpython\Lib\test\libregrtest\main.py", line 763, in main
    Regrtest().main(tests=tests, **kwargs)
  File "D:\a\cpython\cpython\Lib\test\libregrtest\main.py", line 695, in main
    with os_helper.temp_cwd(test_cwd, quiet=True):
  File "D:\a\cpython\cpython\Lib\contextlib.py", line 155, in __exit__
    self.gen.throw(value)
  File "D:\a\cpython\cpython\Lib\test\support\os_helper.py", line 534, in temp_cwd
    with temp_dir(path=name, quiet=quiet) as temp_path:
  File "D:\a\cpython\cpython\Lib\contextlib.py", line 155, in __exit__
    self.gen.throw(value)
  File "D:\a\cpython\cpython\Lib\test\support\os_helper.py", line 488, in temp_dir
    rmtree(path)
  File "D:\a\cpython\cpython\Lib\test\support\os_helper.py", line 445, in rmtree
    _rmtree(path)
  File "D:\a\cpython\cpython\Lib\test\support\os_helper.py", line 388, in _rmtree
    _waitfor(_rmtree_inner, path, waitall=True)
  File "D:\a\cpython\cpython\Lib\test\support\os_helper.py", line 333, in _waitfor
    func(pathname)
  File "D:\a\cpython\cpython\Lib\test\support\os_helper.py", line 385, in _rmtree_inner
    _force_run(fullname, os.rmdir, fullname)
  File "D:\a\cpython\cpython\Lib\test\support\__init__.py", line 214, in _force_run
    return func(*args)
           ^^^^^^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\a\\cpython\\cpython\\build\\test_python_5740�\\test_python_worker_5604�'

== Tests result: FAILURE then SUCCESS ==

403 tests OK.

2 tests altered the execution environment:
    test_distutils test_peg_generator

1 re-run test:
    test_asyncio

CI link: https://github.com/python/cpython/actions/runs/3193117202/jobs/5211355655#step:6:2850
Commit: b44372e

  • Env changed in buildbot
== Tests result: ENV CHANGED ==
410 tests OK.

1 test altered the execution environment:
    test_subprocess

Total duration: 8 min 25 sec
Tests result: ENV CHANGED
make: *** [buildbottest] Error 3

CI link: https://buildbot.python.org/all/#/builders/725/builds/2739
Commit: 23e83a8

Activity

  1. sobolevn
    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 6, 2022
  2. arhadthedev commented on Oct 6, 2022

    @arhadthedev
    arhadthedev
    on Oct 6, 2022
    Member
    More actions

    That's strange to have file access race emerged:

    PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\a\cpython\cpython\build\test_python_5740�\test_python_worker_5604�'

    However, I'll create a reverting PR to stabilize the main and make the second attempt with all but asyncio tests manually disabled.

  3. sobolevn commented on Oct 6, 2022

    @sobolevn
    sobolevn
    on Oct 6, 2022
    MemberAuthor
    More actions

    @arhadthedev the same error message is seen in #97641 🤔

  4. arhadthedev commented on Oct 7, 2022

    @arhadthedev
    arhadthedev
    on Oct 7, 2022
    Member
    More actions

    @sobolevn @vstinner I've prepared a full rollback of the two offending PRs:

    • gh-97983: Revert "Lay the foundation for further work in asyncio.test_streams: port server cases to IsolatedAsyncioTestCase" #98015

    Would you mind to merge it please? It's easier to revert everything back, debug the problem afterwards and unrevert the PR back.

  5. gvanrossum
    added a commit that references this issue on Oct 7, 2022

    gh-97983: Revert "Lay the foundation for further work in asyncio.test…

    f99bb20
  6. gvanrossum commented on Oct 7, 2022

    @gvanrossum
    gvanrossum
    on Oct 7, 2022
    Member
    More actions

    Merged, first thing in the morning. :-) Thanks for taking this seriously!

    Reacted by Oleg Iarygin and Erlend E. Aasland
    Reacted by Mariusz Felisiak
  7. vstinner commented on Oct 10, 2022

    @vstinner
    vstinner
    on Oct 10, 2022
    Member
    More actions
    2 tests altered the execution environment:
        test_distutils test_peg_generator
    

    For these failures, see issue #93919: On Windows, test_distutils and test_peg_generator leak a temporary file: Microsoft.

  8. mpage
    added a commit that references this issue on Oct 11, 2022

    pythongh-97983: Revert "Lay the foundation for further work in asynci…

    e75ada1
  9. vstinner commented on Oct 12, 2022

    @vstinner
    vstinner
    on Oct 12, 2022
    Member
    More actions

    I created issue #98219 for "PermissionError: [WinError 32] The process cannot access the file because it is being used by another process".

  10. hauntsaninja commented on Jan 20, 2023

    @hauntsaninja
    hauntsaninja
    on Jan 20, 2023
    Contributor
    More actions

    Thanks for filing this! Looks like all three issues have been taken care of

  11. hauntsaninja
    closed this as completedon Jan 20, 2023
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.