CI Automation/windows10 aarch64: Difference between revisions

Added more on how to build using artifact and run tests
(Rewrite section, split into CI and Test)
(Added more on how to build using artifact and run tests)
Line 18: Line 18:


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


There are two methods by which developers are able to run tests with a windows10-aarch64 hardware locally.
There are two methods by which developers are able to run tests with a windows10-aarch64 hardware locally.
=== Prequisites ===
# 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]


=== Mozilla-Build ===
=== Mozilla-Build ===
Line 26: Line 32:
This method installs an older version of Mozilla-Build on the system to execute tests.
This method installs an older version of Mozilla-Build on the system to execute tests.


# 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
# place the script in the mozilla-build directory
# copy the task ID from treeherder for the Build
# copy the task ID from treeherder for the Build
Line 34: Line 37:
# from mozilla-build directory, run the test runner script as follows:
# from mozilla-build directory, run the test runner script as follows:
  bash script.sh task_id test_type <chunk_to_run> <total_chunks>
  bash script.sh task_id test_type <chunk_to_run> <total_chunks>
=== Mozilla-central ===
This method is taken from [https://www.gijsk.com/blog/2019/02/getting-firefox-artifact-builds-working-on-an-arm64-aarch64-windows-device/ this guide].
# invoke start-shell.bat, which will launch a bash-like command line
# clone the repository with hg clone https://hg.mozilla.org/mozilla-central/
# run ./mach bootstrap and pick artifact build
# download python3 as embeddable zip, then extract to mozilla-build/ directory
# comment out [https://searchfox.org/mozilla-central/rev/152993fa346c8fd9296e4cd6622234a664f53341/python/mozboot/mozboot/bootstrap.py#444 this line]
# download 32bit NodeJS zip and extract to .mozbuild/node
# inside mozilla-build, remove watchman directory
# retry ./mach bootstrap
After the artifact build succeeds, it is possible to run most suites of tests as normal:
./mach mochitest


== CI environment ==
== CI environment ==
74

edits