taskcluster/scripts/iris/run-iris-macos.sh
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Fri, 27 May 2022 06:58:24 +0000
changeset 619020 ab65238291222763a2dd2f0ffc3c539d37a940f6
parent 496114 0a2e4682e774b49ef30a38f6a6c19d3c5c50980d
permissions -rwxr-xr-x
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD be -> 040b93d8fc0266fdc8696c86290152480570a8a8 eo -> 2aeb97991166e6e5d3514662ea7012744f724732 es-AR -> 3f2e985b37848b8d19ac9d01aa9ecd76895547bb it -> 12f68a74e363beee234126dcf25407f882d085ff

#!/bin/bash
set -x +e -v

cd $MOZ_FETCHES_DIR/iris_firefox

# FIXME: Install the following without homebrew:
# tesseract
# p7zip
# xquartz
# pipenv
# pyobjc
# pyobjc-core

# FIXME: Find a way to set these values:
# https://github.com/mozilla/iris_firefox/blob/master/bootstrap/osx_bootstrap.sh#L87-L91

# FIXME: Maybe find a way to create these download files:
# https://github.com/mozilla/iris_firefox/blob/master/bootstrap/osx_bootstrap.sh#L93-L104

# FIXME: Ensure all of the necessary python packages are available in the pypi mirror

# Mount the downloaded Firefox and install iris's pipenv
hdiutil attach ../target.dmg
python3 -m ensurepip --upgrade
pipenv install

# Handle the nightly smoketest suite differently
[ "$CURRENT_TEST_DIR" != "nightly" ] && irisstring="firefox -t $CURRENT_TEST_DIR" || irisstring="$CURRENT_TEST_DIR"
echo "$irisstring"

# Run this chunk of iris tests
pipenv run iris $irisstring -w ../../iris_runs -f /Volumes/Firefox\ Nightly/Firefox\ Nightly.app/Contents/MacOS/firefox-bin -n --treeherder -y
runstatus=$?

# FIXME: Return to the starting dir (../..) and zip up the iris_runs/runs dir

# Exit with the iris test run's exit code
exit $runstatus