Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_launcher fails on the ARM64 Windows Non-Debug Azure 3.x buildbot #93005

Closed
vstinner opened this issue May 20, 2022 · 4 comments · Fixed by #93007 or #93190
Closed

test_launcher fails on the ARM64 Windows Non-Debug Azure 3.x buildbot #93005

vstinner opened this issue May 20, 2022 · 4 comments · Fixed by #93007 or #93190
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

test_launcher fails on the ARM64 Windows Non-Debug Azure 3.x buildbot:
https://buildbot.python.org/all/#/builders/897/builds/322

The failure may be caused by 73473fd

0:14:26 Re-running test_launcher in verbose mode (matching: test_virtualenv_with_env)
test_virtualenv_with_env (test.test_launcher.TestLauncher.test_virtualenv_with_env) ... FAIL
Stdout:
++ COMMAND ++
[WindowsPath('C:/Workspace/buildarea/3.x.linaro2-win-arm64.nondebug/build/PCbuild/arm64/py.exe'), '-3']
++ STDOUT ++
++ STDERR ++
argv0: C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\PCbuild\arm64\py.exe
version: 3.12.0a0
# Reading from C:\Users\tcwg\AppData\Local\py.ini for defaults/py_python3
# Did not find file C:\Users\tcwg\AppData\Local\py.ini
# Reading from C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\PCbuild\arm64\py.ini for defaults/py_python3
# Did not find file C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\PCbuild\arm64\py.ini
SearchInfo.originalCmdLine: C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\PCbuild\arm64\py.exe -3
SearchInfo.restOfCmdLine: 
SearchInfo.executablePath: (null)
SearchInfo.scriptFile: (null)
SearchInfo.executable: python.exe
SearchInfo.executableArgs: (null)
SearchInfo.company: (null)
SearchInfo.tag: 3
SearchInfo.oldStyleTag: True
SearchInfo.lowPriorityTag: False
SearchInfo.exclude32Bit: False
SearchInfo.only32Bit: False
SearchInfo.allowDefaults: True
SearchInfo.allowExecutableOverride: True
SearchInfo.windowed: False
SearchInfo.list: False
SearchInfo.listPaths: False
SearchInfo.help: False
# PythonTestSuite/ignored has no executable path
 -V:ContinuumAnalytics/Anaconda39-64 C:\wenv\x64_vs2022\conda\python.exe
 -V:PythonTestSuite/3.100 X.Y.exe
 -V:PythonTestSuite/3.100-32 X.Y-32.exe
 -V:PythonTestSuite/3.100-arm64 X.Y-arm64.exe -X fake_arg_for_test
No suitable Python runtime found
Pass --list (-0) to see all detected environments on your machine
or set environment variable PYLAUNCHER_ALLOW_INSTALL to use winget
or open the Microsoft Store to the requested version.
======================================================================
FAIL: test_virtualenv_with_env (test.test_launcher.TestLauncher.test_virtualenv_with_env)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\Lib\test\test_launcher.py", line 487, in test_virtualenv_with_env
    data2 = self.run_py(["-3"], env={**env, "PY_PYTHON": "-3"})
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\Lib\test\test_launcher.py", line 223, in run_py
    self.assertEqual(expect_returncode, p.returncode)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 != 103
Stdout:
++ COMMAND ++
[WindowsPath('C:/Workspace/buildarea/3.x.linaro2-win-arm64.nondebug/build/PCbuild/arm64/py.exe'), '-3']
++ STDOUT ++
++ STDERR ++
argv0: C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\PCbuild\arm64\py.exe
version: 3.12.0a0
# Reading from C:\Users\tcwg\AppData\Local\py.ini for defaults/py_python3
# Did not find file C:\Users\tcwg\AppData\Local\py.ini
# Reading from C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\PCbuild\arm64\py.ini for defaults/py_python3
# Did not find file C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\PCbuild\arm64\py.ini
SearchInfo.originalCmdLine: C:\Workspace\buildarea\3.x.linaro2-win-arm64.nondebug\build\PCbuild\arm64\py.exe -3
SearchInfo.restOfCmdLine: 
SearchInfo.executablePath: (null)
SearchInfo.scriptFile: (null)
SearchInfo.executable: python.exe
SearchInfo.executableArgs: (null)
SearchInfo.company: (null)
SearchInfo.tag: 3
SearchInfo.oldStyleTag: True
SearchInfo.lowPriorityTag: False
SearchInfo.exclude32Bit: False
SearchInfo.only32Bit: False
SearchInfo.allowDefaults: True
SearchInfo.allowExecutableOverride: True
SearchInfo.windowed: False
SearchInfo.list: False
SearchInfo.listPaths: False
SearchInfo.help: False
# PythonTestSuite/ignored has no executable path
 -V:ContinuumAnalytics/Anaconda39-64 C:\wenv\x64_vs2022\conda\python.exe
 -V:PythonTestSuite/3.100 X.Y.exe
 -V:PythonTestSuite/3.100-32 X.Y-32.exe
 -V:PythonTestSuite/3.100-arm64 X.Y-arm64.exe -X fake_arg_for_test
No suitable Python runtime found
Pass --list (-0) to see all detected environments on your machine
or set environment variable PYLAUNCHER_ALLOW_INSTALL to use winget
or open the Microsoft Store to the requested version.
@vstinner vstinner added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels May 20, 2022
@zooba
Copy link
Member

zooba commented May 20, 2022

Ah, the test relies on there being an existing install. I'll fix it

@zooba
Copy link
Member

zooba commented May 20, 2022

PR is good to merge, but I'll be AFK, probably until Monday. Feel free to merge it whenever CI is done

zooba added a commit to zooba/cpython that referenced this issue May 23, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 23, 2022
…le (pythonGH-93007)

(cherry picked from commit 949dbf9)

Co-authored-by: Steve Dower <steve.dower@python.org>
miss-islington added a commit that referenced this issue May 23, 2022
…-93007)

(cherry picked from commit 949dbf9)

Co-authored-by: Steve Dower <steve.dower@python.org>
@neonene
Copy link
Contributor

neonene commented May 24, 2022

The buildbots still have the issue. Passing "-3" to py.exe, it exits with RC_NO_PYTHON (103) from launcher2.c/_selectEnvironment(), after searching an environment variable then py.ini for "py_python3" at checkDefaults().

@zooba zooba reopened this May 24, 2022
@zooba
Copy link
Member

zooba commented May 24, 2022

You're right, I made half the fix but not all of the fix...

miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 25, 2022
…ythonGH-93190)

(cherry picked from commit ca58e4a)

Co-authored-by: Steve Dower <steve.dower@python.org>
miss-islington added a commit that referenced this issue May 25, 2022
(cherry picked from commit ca58e4a)

Co-authored-by: Steve Dower <steve.dower@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
3 participants