playwright/browser_patches/buildbots/bots.md
2019-11-22 20:49:40 -08:00

2.3 KiB

Setting Up Build Bots

This document describes setting up bots infrastructure to produce browser builds.

We currently have 4 build bots that produce 6 builds

  • [buildbot-linux] Ubuntu 18.04 machine
    • builds: Webkit-Linux, Firefox-Linux
  • [buildbot-mac-10.14] Mac 10.14 machine
    • builds: WebKit-mac-10.14, Firefox-Mac
  • [buildbot-mac-10.15] machine
    • builds: WebKit-mac-10.15
  • [buildbot-windows] Windows 10 machine
    • builds: Firefox-win32, Firefox-win64

buildbot-windows

Setting Up Host Machine

1. Prepare machine to compile firefox

Follow instructions on Building Firefox for Windows. Get the checkout with mercurial and run "./mach bootstrap" from mercurial root.

After this step, you should have c:\mozilla-build folder and c:\mozilla-source folder with firefox checkout.

NOTE: No spaces or quotes are allowed here!

2. Install azure-cli

Install azure-cli for windows using MS Installer

3. Export "az" to the mingw world

Run cmd as administrator and run the following line:

> echo cmd.exe /c "\"C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd\" $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13} ${14} ${15} ${16}" > "%SYSTEMROOT%\az"

This command will create a c:\Windows\az file that will call azure-cli with passed parameters (Not the most beautiful solution, but it works!)

4. Provide CDN credentials to mingw env

Edit c:\mozilla-build\start-shell.bat and add two lines in the beginning:

SET AZ_ACCOUNT_NAME=<account-name>
SET AZ_ACCOUNT_KEY=<account-key>

change <account-name> and <account-key> with relevant keys/names.

5. Checkout PlayWright to /c/

Run c:\mozilla-build\start-shell.bat and checkout PlayWright repo to /c/playwright.

Running Build Loop

  1. Launch c:\mozilla-build/start-shell.bat
  2. Run /c/playwright/browser_patches/buildbots/buildbot-windows.sh
  3. Disable "QuickEdit" terminal mode to avoid terminal freezing and postponing builds