CI Automation/windows10 aarch64: Difference between revisions

Rewrite section, split into CI and Test
(Update count)
(Rewrite section, split into CI and Test)
Line 18: Line 18:


= Setup =
= Setup =
== Test Environment ==


Tests that are run against windows10-aarch64 execute using [https://github.com/taskcluster/generic-worker Taskcluster Generic-Worker]. These are installed as a service on the Windows 10 ARM64 manually or via [https://github.com/mozilla-releng/OpenCloudConfig OpenCloudConfig].
There are two methods by which developers are able to run tests with a windows10-aarch64 hardware locally.


A brief walkthrough of the steps to have Taskcluster Generic-Worker running on Windows 10 ARM64 will be provided.
=== Mozilla-Build ===


== Using only generic-worker ==
This method installs an older version of Mozilla-Build on the system to execute tests.


Follow this step to install Taskcluster Generic-Worker on the hardware, and have it launch as a service. After following these steps, the hardware should be ready to accept any tasks started on Taskcluster.  
# download [https://ftp.mozilla.org/pub/mozilla/libraries/win32/MozillaBuildSetup-2.2.0.exe Mozilla-Build 2.2.0]
# install Mozilla-Build 2.2.0
# download the test runner script from [https://bug1520867.bmoattachments.org/attachment.cgi?id=9046793 bug 1520867]
# place the script in the mozilla-build directory
# copy the task ID from treeherder for the Build
# invoke start-shell.bat, which will launch a bash-like command line
# from mozilla-build directory, run the test runner script as follows:
bash script.sh task_id test_type <chunk_to_run> <total_chunks>
 
== CI environment ==
 
Tests that are run in Taskcluster environment against windows10-aarch64 execute using [https://github.com/taskcluster/generic-worker Taskcluster Generic-Worker]. These are installed as a service on via [https://github.com/mozilla-releng/OpenCloudConfig OpenCloudConfig].
 
=== Using OpenCloudConfig ===
 
This is the method used in production.
 
Steps originally taken from [https://bugzilla.mozilla.org/show_bug.cgi?id=1520432#c2 1520432].
 
$gitBranchOrRef = 'master'
Invoke-Expression (New-Object Net.WebClient).DownloadString(('https://raw.githubusercontent.com/mozilla-releng/OpenCloudConfig/{0}/userdata/rundsc.ps1?{1}' -f $gitBranchOrRef, [Guid]::NewGuid()))
 
=== Manually install Taskcluster Generic-Worker [Not recommended] ===
 
Follow these step to install Taskcluster Generic-Worker on the hardware, and have it launch as a service.


Instruction originally from [https://bugzilla.mozilla.org/show_bug.cgi?id=1522997#c2 1522997].
Instruction originally from [https://bugzilla.mozilla.org/show_bug.cgi?id=1522997#c2 1522997].
Line 54: Line 79:
  "ed25519SigningKeyLocation":  "<file location you wrote ed25519 private key in step 6>",
  "ed25519SigningKeyLocation":  "<file location you wrote ed25519 private key in step 6>",
  "livelogSecret":              "<any text>",
  "livelogSecret":              "<any text>",
"openpgpSigningKeyLocation":  "<file location you wrote gpg private key kn step 6>",
  "provisionerId":              "test-provisioner",
  "provisionerId":              "test-provisioner",
  "publicIP":                  "<ideally an IP address of one of your network interfaces>",
  "publicIP":                  "<ideally an IP address of one of your network interfaces>",
Line 67: Line 91:
# launch cmd.exe with Administrator rights.
# launch cmd.exe with Administrator rights.
# sc query "Generic Worker"
# sc query "Generic Worker"
== Using OpenCloudConfig ==
This is the method that is used in production.
Steps originally taken from [https://bugzilla.mozilla.org/show_bug.cgi?id=1520432#c2 1520432].
# Invoke-Expression (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/mozilla-releng/OpenCloudConfig/aarch64/userdata/rundsc.ps1')


= Currently Running =
= Currently Running =
74

edits