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_importlib and test_peg_generator fails on AMD64 Windows Server 2022 NoGIL 3.x · Issue #110359 · python/cpython

test_importlib and test_peg_generator fails on AMD64 Windows Server 2022 NoGIL 3.x #110359

New issue
Copy link
New issue
Copy link
Closed
Closed
test_importlib and test_peg_generator fails on AMD64 Windows Server 2022 NoGIL 3.x#110359
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dir

Description

@vstinner
vstinner
opened on Oct 4, 2023
Issue body actions

test_importlib and test_peg_generator are failing on AMD64 Windows Server 2022 NoGIL 3.x.

build: https://buildbot.python.org/all/#/builders/1241/builds/85

test_import error:

FAIL: test_tagged_suffix (test.test_importlib.test_windows.Source_WindowsExtensionSuffixTests.test_tagged_suffix)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_importlib\test_windows.py", line 122, in test_tagged_suffix
    self.assertIn(expected_tag, suffixes)
AssertionError: '_d.cp313-win32.pyd' not found in ['_d.cp313t-win_amd64.pyd', '_d.pyd']

test_peg_generator errors:

ERROR: test_advanced_left_recursive (test.test_peg_generator.test_c_parser.TestCParser.test_advanced_left_recursive)
ERROR: test_c_parser (test.test_peg_generator.test_c_parser.TestCParser.test_c_parser)
ERROR: test_cut (test.test_peg_generator.test_c_parser.TestCParser.test_cut)
ERROR: test_error_in_rules (test.test_peg_generator.test_c_parser.TestCParser.test_error_in_rules)
ERROR: test_forced (test.test_peg_generator.test_c_parser.TestCParser.test_forced)
ERROR: test_forced_with_group (test.test_peg_generator.test_c_parser.TestCParser.test_forced_with_group)
ERROR: test_gather (test.test_peg_generator.test_c_parser.TestCParser.test_gather)
ERROR: test_gather_action_ast (test.test_peg_generator.test_c_parser.TestCParser.test_gather_action_ast)
ERROR: test_if_stmt_action (test.test_peg_generator.test_c_parser.TestCParser.test_if_stmt_action)
ERROR: test_left_recursion (test.test_peg_generator.test_c_parser.TestCParser.test_left_recursion)
ERROR: test_lookahead (test.test_peg_generator.test_c_parser.TestCParser.test_lookahead)
ERROR: test_mutually_left_recursive (test.test_peg_generator.test_c_parser.TestCParser.test_mutually_left_recursive)
ERROR: test_nasty_mutually_left_recursive (test.test_peg_generator.test_c_parser.TestCParser.test_nasty_mutually_left_recursive)
ERROR: test_negative_lookahead (test.test_peg_generator.test_c_parser.TestCParser.test_negative_lookahead)
ERROR: test_pass_stmt_action (test.test_peg_generator.test_c_parser.TestCParser.test_pass_stmt_action)
ERROR: test_return_stmt_noexpr_action (test.test_peg_generator.test_c_parser.TestCParser.test_return_stmt_noexpr_action)
ERROR: test_same_name_different_types (test.test_peg_generator.test_c_parser.TestCParser.test_same_name_different_types)
ERROR: test_soft_keywords_lookahead (test.test_peg_generator.test_c_parser.TestCParser.test_soft_keywords_lookahead)
ERROR: test_soft_keywords_parse (test.test_peg_generator.test_c_parser.TestCParser.test_soft_keywords_parse)
ERROR: test_syntax_error_for_string (test.test_peg_generator.test_c_parser.TestCParser.test_syntax_error_for_string)
ERROR: test_ternary_operator (test.test_peg_generator.test_c_parser.TestCParser.test_ternary_operator)
ERROR: test_with_stmt_with_paren (test.test_peg_generator.test_c_parser.TestCParser.test_with_stmt_with_paren)

Example of test_peg_generator error:

ERROR: test_advanced_left_recursive (test.test_peg_generator.test_c_parser.TestCParser.test_advanced_left_recursive)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\build\test_python_6532�\tempcwd\venv\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 508, in link
    self.spawn([self.linker] + ld_args)
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\build\test_python_6532�\tempcwd\venv\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 517, in spawn
    return super().spawn(cmd, env=env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\build\test_python_6532�\tempcwd\venv\Lib\site-packages\setuptools\_distutils\ccompiler.py", line 1041, in spawn
    spawn(cmd, dry_run=self.dry_run, **kwargs)
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\build\test_python_6532�\tempcwd\venv\Lib\site-packages\setuptools\_distutils\spawn.py", line 70, in spawn
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x86\\link.exe' failed with exit code 1181

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_peg_generator\test_c_parser.py", line 257, in test_advanced_left_recursive
    self.run_test(grammar_source, test_source)
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_peg_generator\test_c_parser.py", line 136, in run_test
    self.build_extension(grammar_source)
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_peg_generator\test_c_parser.py", line 133, in build_extension
    generate_parser_c_extension(grammar, Path('.'), library_dir=self.library_dir)
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\Tools\peg_generator\pegen\testutil.py", line 107, in generate_parser_c_extension
    compile_c_extension(
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\Tools\peg_generator\pegen\build.py", line 210, in compile_c_extension
    compiler.link_shared_object(
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\build\test_python_6532�\tempcwd\venv\Lib\site-packages\setuptools\_distutils\ccompiler.py", line 752, in link_shared_object
    self.link(
  File "C:\Users\Administrator\buildarea\3.x.itamaro-win64-srv-22-aws.x64.nogil\build\build\test_python_6532�\tempcwd\venv\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 510, in link
    raise LinkError(msg)
distutils.errors.LinkError: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x86\\link.exe' failed with exit code 1181

Activity

  1. vstinner
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Oct 4, 2023
  2. vstinner commented on Oct 4, 2023

    @vstinner
    vstinner
    on Oct 4, 2023
    MemberAuthor
    More actions

    cc @itamaro @colesbury

    Note: Today I also fixed the Refleaks builder: python/buildmaster-config#417

    Reacted by Itamar Oren
  3. colesbury commented on Oct 4, 2023

    @colesbury
    colesbury
    on Oct 4, 2023
    Contributor
    More actions

    Thanks for fixing the refleaks builder. I think fixing the Windows nogil buildbot will depend on #110049 so that we have a way of identifying --disable-gil builds from Python on Windows via sysconfig.

    Reacted by Itamar Oren
  4. vstinner commented on Oct 13, 2023

    @vstinner
    vstinner
    on Oct 13, 2023
    MemberAuthor
    More actions

    test_importlib and test_peg_generator are failing on AMD64 Windows Server 2022 NoGIL 3.x.

    Tests now pass on this builder.

  5. vstinner
    closed this as completedon Oct 13, 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 dir

    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.