-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
bpo-36511: Fix Windows arm32 buildbot pythoninfo, scp, and ssh #13454
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1d33fe6
bpo-36511: Fix Windows arm32 buildbot pythoninfo, scp, and ssh
3aadf52
add +d to match test.bat
7f17d29
100% test pass when manually running test.bat
9aaa2c4
fix file destination
3f38d18
only skip ssl tests on Windows IoT
4e147de
Avoid mixing debug/release CRT on Windows
9819647
test for win32
365701c
propagate exit code
69c40d7
fix 2 more exit 0 calls
086a1b9
fixes for test_regrtest
042e0e9
merge upstream/master
e230795
add tools/parser for test_tools
1a1f12d
copy entire Tools directory
29601d8
skip check on Windows ARM32
786194d
restore 64-bit check in test_regrtest
cd2d5c5
merge upstream/master
f5c917a
Update Lib/test/test_math.py
paulmon e2fb14b
Update Lib/test/test_ssl.py
paulmon ce3dfbc
Merge remote-tracking branch 'upstream/master' into arm32_pythoninfo
5c355ab
fix mismatched paren
f1ce1bf
fix Py_DEBUG_WIN32 spelling
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@echo off | ||
rem Used by the buildbot "remotedeploy" step. | ||
setlocal | ||
|
||
set here=%~dp0 | ||
set arm32_ssh= | ||
|
||
:CheckOpts | ||
if "%1"=="-arm32" (set arm32_ssh=true) & shift & goto CheckOpts | ||
if NOT "%1"=="" (echo unrecognized option %1) & goto Arm32SshHelp | ||
|
||
if "%arm32_ssh%"=="true" goto :Arm32Ssh | ||
|
||
:Arm32Ssh | ||
if "%SSH_SERVER%"=="" goto :Arm32SshHelp | ||
if "%SSH%"=="" if EXIST %WINDIR%\System32\OpenSSH\ssh.exe (set SSH=%WINDIR%\System32\OpenSSH\ssh.exe) | ||
if "%SCP%"=="" if EXIST %WINDIR%\System32\OpenSSH\scp.exe (set SCP=%WINDIR%\System32\OpenSSH\scp.exe) | ||
echo SSH = %SSH% | ||
echo SCP = %SCP% | ||
if "%PYTHON_SOURCE%"=="" (set PYTHON_SOURCE=%here%..\..\) | ||
if "%REMOTE_PYTHON_DIR%"=="" (set REMOTE_PYTHON_DIR=C:\python\) | ||
if NOT "%REMOTE_PYTHON_DIR:~-1,1%"=="\" (set REMOTE_PYTHON_DIR=%REMOTE_PYTHON_DIR%\) | ||
%SSH% %SSH_SERVER% "if EXIST %REMOTE_PYTHON_DIR% (rd %REMOTE_PYTHON_DIR% /s/q)" | ||
%SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PCBuild\arm32" | ||
%SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%temp" | ||
%SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%Modules" | ||
%SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PC" | ||
for /f "USEBACKQ" %%i in (`dir PCbuild\*.bat /b`) do @%SCP% PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild" | ||
for /f "USEBACKQ" %%i in (`dir PCbuild\*.py /b`) do @%SCP% PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild" | ||
for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.exe /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32" | ||
for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.pyd /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32" | ||
for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.dll /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32" | ||
%SCP% -r "%PYTHON_SOURCE%Include" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Include" | ||
%SCP% -r "%PYTHON_SOURCE%Lib" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Lib" | ||
%SCP% -r "%PYTHON_SOURCE%Tools" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Tools" | ||
%SCP% "%PYTHON_SOURCE%Modules\Setup" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Modules" | ||
%SCP% "%PYTHON_SOURCE%PC\pyconfig.h" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PC" | ||
|
||
exit /b %ERRORLEVEL% | ||
|
||
:Arm32SshHelp | ||
echo SSH_SERVER environment variable must be set to administrator@[ip address] | ||
echo where [ip address] is the address of a Windows IoT Core ARM32 device. | ||
echo. | ||
echo The test worker should have the SSH agent running. | ||
echo Also a key must be created with ssh-keygen and added to both the buildbot worker machine | ||
echo and the ARM32 worker device: see https://docs.microsoft.com/en-us/windows/iot-core/connect-your-device/ssh | ||
exit /b 127 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
rem Used by the buildbot "remotedeploy" step. | ||
setlocal | ||
|
||
set here=%~dp0 | ||
set arm32_ssh= | ||
set suffix=_d | ||
if "%REMOTE_PYTHON_DIR%"=="" (set REMOTE_PYTHON_DIR=C:\python\) | ||
if NOT "%REMOTE_PYTHON_DIR:~-1,1%"=="\" (set REMOTE_PYTHON_DIR=%REMOTE_PYTHON_DIR%\) | ||
|
||
:CheckOpts | ||
if "%1"=="-arm32" (set arm32_ssh=true) & (set prefix=%REMOTE_PYTHON_DIR%pcbuild\arm32) & shift & goto CheckOpts | ||
if "%1"=="-d" (set suffix=_d) & shift & goto CheckOpts | ||
if "%1"=="+d" (set suffix=) & shift & goto CheckOpts | ||
if NOT "%1"=="" (echo unrecognized option %1) & goto Arm32SshHelp | ||
|
||
if "%arm32_ssh%"=="true" goto :Arm32Ssh | ||
|
||
:Arm32Ssh | ||
if "%SSH_SERVER%"=="" goto :Arm32SshHelp | ||
if "%SSH%"=="" if EXIST %WINDIR%\System32\OpenSSH\ssh.exe (set SSH=%WINDIR%\System32\OpenSSH\ssh.exe) | ||
set PYTHON_EXE=%prefix%\python%suffix%.exe | ||
echo on | ||
%SSH% %SSH_SERVER% %PYTHON_EXE% -m test.pythoninfo | ||
exit /b %ERRORLEVEL% | ||
|
||
:Arm32SshHelp | ||
echo SSH_SERVER environment variable must be set to administrator@[ip address] | ||
echo where [ip address] is the address of a Windows IoT Core ARM32 device. | ||
echo. | ||
echo The test worker should have the SSH agent running. | ||
echo Also a key must be created with ssh-keygen and added to both the buildbot worker machine | ||
echo and the ARM32 worker device: see https://docs.microsoft.com/en-us/windows/iot-core/connect-your-device/ssh | ||
exit /b 127 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather fix this than skip it, but I haven't figured out where to start looking yet.