74
edits
(Update count) |
(Rewrite section, split into CI and Test) |
||
Line 18: | Line 18: | ||
= Setup = | = Setup = | ||
== Test Environment == | |||
There are two methods by which developers are able to run tests with a windows10-aarch64 hardware locally. | |||
=== Mozilla-Build === | |||
This method installs an older version of Mozilla-Build on the system to execute tests. | |||
Follow | # 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>", | ||
"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" | ||
= Currently Running = | = Currently Running = |
edits