Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page describes how to setup WoA machine to run python buildbot.

Access WoA machine in Linaro Farm

Please check out the following page for instructions on how to remotely access woa machine

/wiki/spaces/TCWG/pages/22395192116

...

Credentials

Login/password is allocated by python buildbot administrators.

You can contact the three maintainers (together) for python buildbot server:

Register worker

To be able to connect worker, even with a password allocated, you need to add configuration on this project: https://github.com/python/buildmaster-config

Examples:

Install Visual Studio Build Tools

...

Code Block
languagebash
buildbot-worker create-worker buildarea buildbot.python.org:9020 linaro-win-arm64 <PASSWORD> 

Password is allocated by python buildbot administrators. Instructions on how to access them will be added later.

You can contact the three maintainers (together) for python buildbot server:

Edit following files to add admin email address and host information

...

Code Block
:: Initialise ARM64 environment

call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsx86_arm64.bat"

:: Add debug runtime DLL to path

set PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\arm64\ucrt\;%PATH%

set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Redist\MSVC\14.29.30133\onecore\debug_nonredist\arm64\Microsoft.VC142.DebugCRT\;%PATH%

:: Activate virtual environment

call "C:\Workspace\buildarea\venv\Scripts\activate"

cd C:\Workspace

:: Start buildbot-worker

echo Starting buildbot-workder

buildbot-worker start buildarea

:: Repeat buildbot-worker restart in a loop in case if it ever terminates due to an error

:start

buildbot-worker restart buildarea

goto :start

...


You can automate service launch by using https://nssm.cc, which is free and open source. It gracefully restarts your program (or batch) when it stops. nssm.exe install to configure a new service.

Register worker

To be able to connect worker, even with a password allocated, you need to add configuration on this project: https://github.com/python/buildmaster-config

Examples:

...

https://github.com/python/buildmaster-config/pull/288

...

following those instructions: Service management . You need a user which can execute winget.exe (needed in a python test). Local SYSTEM account can’t.