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 — bpo-36511 add arm32 buildbot diagnostic messages by paulmon · Pull Request #14251 · python/cpython

Conversation

@paulmon

@paulmon paulmon commented Jun 19, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

I'm trying figure out why ssh.exe doesn't work on Windows when the buildbot worker is running.

The path includes C:\WINDOWS\System32\OpenSSH\ and the location of ssh.exe on my machine is C:\WINDOWS\System32\OpenSSH\ssh.exe

Previously the script had ssh.exe expecting to find it on the path. But at runtime there was this error message: 'ssh' is not recognized as an internal or external command

So I tried adding if "%SSH%"=="" if EXIST %WINDIR%\System32\OpenSSH\ssh.exe (set SSH=%WINDIR%\System32\OpenSSH\ssh.exe) and calling %SSH% in the script

Now it echos SSH = meaning that the test for EXIST failed. From the same console window that I'm launching the worker from ssh.exe is on the path and works fine.

Any ideas? @zware @zooba

EDIT: Steve pointed out in the comments of #13454 that it might be 32-bit vs 64-bit issue. I had 32-bit python installed and ssh.exe appears to be 64-bit only. Trying to update the worker to python 64-bit

https://bugs.python.org/issue36511

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Paul Monson
bpo-36511 add arm32 buildbot diagnostic messages
917055b
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Jun 19, 2019
@bedevere-bot bedevere-bot added the awaiting review label Jun 19, 2019
@paulmon

paulmon commented Jun 19, 2019

Copy link
Copy Markdown
Contributor Author

I tried skimming the buildbot documentation before posting this at https://devguide.python.org/buildworker/ and https://docs.buildbot.net/current/manual/index.html and I don't see anything obvious that needs to be configured to allow calling ssh.exe

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zooba

zooba commented Jun 19, 2019

Copy link
Copy Markdown
Member

It looks like C:\Windows\System32\OpenSSH exists, but not C:\Windows\SysWOW64\OpenSSH, which means if you hit 32-bit file system redirection then it's not going to find it by that path.

Maybe add fallback checks for C:\Windows\SysNative\OpenSSH. You can probably also simplify the code a bit by just extending PATH with both of these and then assuming that ssh and scp are available.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zooba

zooba commented Jun 19, 2019

Copy link
Copy Markdown
Member

You can test this by launching C:\Windows\SysWOW64\cmd.exe explicitly and running from there. That'll give you the 32-bit command prompt

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Paul Monson
find ssh even if running in 32-bit environment
7a93c7a
@paulmon

paulmon commented Jun 19, 2019

Copy link
Copy Markdown
Contributor Author

still testing these changes on the buildbot worker machine

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

zooba
zooba reviewed Jun 19, 2019
View reviewed changes
Comment thread Tools/buildbot/remoteDeploy.bat Outdated
rem Used by the buildbot "remotedeploy" step.
setlocal

set PATH=%PATH%;%SystemRoot%\SysNative\OpenSSH

@zooba zooba Jun 19, 2019

Copy link
Copy Markdown
Member

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.

Unfortunately, SysNative only works in 32-bit command prompt. Add both SysNative and System32 here to ensure it works even if we switch to a 64-bit process one day.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@paulmon paulmon Jun 19, 2019

Copy link
Copy Markdown
Contributor Author

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.

System32\OpenSSH is always on the path right now, whether I run C:\Windows\SysWOW64\cmd.exe or C:\Windows\System32\cmd.exe. I can add it again, but it seemed redundant

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Paul Monson
remoteDeploy and remotePythonInfo tested on worker
184892a
@zooba zooba added the skip news label Jun 19, 2019
zooba
zooba approved these changes Jun 19, 2019
View reviewed changes
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting review labels Jun 19, 2019
@zooba
zooba merged commit a195212 into python:master Jun 20, 2019
@bedevere-bot bedevere-bot removed the awaiting merge label Jun 20, 2019
@zooba zooba added the needs backport to 3.8 label Jun 20, 2019
@miss-islington

miss-islington commented Jun 20, 2019

Copy link
Copy Markdown
Contributor

Thanks @paulmon for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington

miss-islington commented Jun 20, 2019

Copy link
Copy Markdown
Contributor

Sorry, @paulmon and @zooba, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker a1952122a3a20272e4db9e3c6205009a91c73ccf 3.8

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington miss-islington assigned zooba Jun 20, 2019
zooba pushed a commit to zooba/cpython that referenced this pull request Jun 20, 2019
@paulmon @zooba
bpo-36511: Improve ARM32 buildbot scripts (pythonGH-14251)
125e290
@bedevere-bot

bedevere-bot commented Jun 20, 2019

Copy link
Copy Markdown

GH-14279 is a backport of this pull request to the 3.8 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot removed the needs backport to 3.8 label Jun 20, 2019
zooba added a commit that referenced this pull request Jun 20, 2019
@zooba
bpo-36511: Improve ARM32 buildbot scripts (GH-14251)
4361548
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request Jun 21, 2019
@CuriousLearner
Merge branch 'master' into fix-issue24255
7bf6445
* master: (599 commits)
  Docs: Improved phrasing (pythonGH-14069)
  Remove redundant if check from optional argument function in argparse. (pythonGH-8766)
  bpo-37289: Add a test for if with ifexpr in the peephole optimiser to detect regressions (pythonGH-14127)
  Update What's New in Python 3.9 (pythonGH-14253)
  bpo-36511: Improve ARM32 buildbot scripts (pythonGH-14251)
  bpo-37151: remove _PyCFunction_FastCallDict (pythonGH-14269)
  Fix typo, 'widger' -> 'widget', in idlelib/tree.py (pythonGH-14263)
  Fix bpo number in News file. (pythonGH-14260)
  bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (pythonGH-14241)
  Update What's New in Python 3.8 (pythonGH-14239)
  bpo-36710: Use tstate in pylifecycle.c (pythonGH-14249)
  Add missing single quote in io.TextIOWrapper.reconfigure documentation (pythonGH-14246)
  bpo-36511: Add buildbot scripts and fix tests for Windows ARM32 buildbot (pythonGH-13454)
  bpo-37333: Ensure IncludeTkinter has a value (pythonGH-14240)
  bpo-37331: Clarify format of socket handler messages in the documentation. (pythonGH-14234)
  bpo-37258: Not a bug, but added a unit test and updated documentation. (pythonGH-14229)
  bpo-36710: Remove PyImport_Cleanup() function (pythonGH-14221)
  Fix name of '\0'. (pythonGH-14222)
  bpo-36710: Add tstate parameter in import.c (pythonGH-14218)
  Document typing.ForwardRef (pythonGH-14216)
  ...
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
@paulmon @lisroach
bpo-36511: Improve ARM32 buildbot scripts (pythonGH-14251)
296c152
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
@paulmon @DinoV
bpo-36511: Improve ARM32 buildbot scripts (pythonGH-14251)
4426ba9
@paulmon paulmon mannequin mentioned this pull request May 20, 2022
Add Windows ARM32 buildbot #80692
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@zooba zooba zooba approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@zooba zooba

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@paulmon @zooba @miss-islington @bedevere-bot @the-knights-who-say-ni
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.
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.