Merge mozilla-central to inbound. a=merge CLOSED TREE

This commit is contained in:
Bogdan Tara 2018-07-04 14:54:12 +03:00
Родитель c8f132a6bd 6eafe1c00b
Коммит fe640d5acb
18 изменённых файлов: 58 добавлений и 62 удалений

Просмотреть файл

@ -64,8 +64,8 @@ def nodejs_suitability(require, node, version):
return
if version < MIN_NODE_VERSION:
msg = 'NODEJS must point to node %s or newer; %s found' (
MIN_NODE_VERSION, node_version)
msg = 'NODEJS must point to node %s or newer; %s found' % (
MIN_NODE_VERSION, version)
if require:
raise FatalCheckError(msg)

Просмотреть файл

@ -933,7 +933,7 @@ def run_test_harness(parser, options):
# We have to validate options.app here for the case when the mach
# command is able to find it after argument parsing. This can happen
# when running from a tests archive.
# when running from a tests.zip.
if not options.app:
parser.error("could not find the application path, --appname must be specified")

Просмотреть файл

@ -573,7 +573,7 @@ def find_files(archive):
if archive == 'common':
# Construct entries ensuring all our generated harness files are
# packaged in the common tests archive.
# packaged in the common tests zip.
packaged_paths = set()
for entry in OBJDIR_TEST_FILES.values():
pat = mozpath.join(entry['base'], entry['pattern'])

Просмотреть файл

@ -67,17 +67,15 @@ mochitest-harness:
use-artifacts:
build:
- target.tar.bz2
- target.common.tests.tar.gz
- target.mochitest.tests.tar.gz
- target.common.tests.zip
- target.mochitest.tests.zip
command: >
source /builds/worker/scripts/xvfb.sh &&
start_xvfb '1600x1200x24' 0 &&
cd $USE_ARTIFACT_PATH/build &&
tar -xf target.tar.bz2 &&
mkdir -p tests &&
(cd tests &&
tar xf ../target.common.tests.tar.gz &&
tar xf ../target.mochitest.tests.tar.gz) &&
unzip -q -d tests target.common.tests.zip &&
unzip -q -d tests target.mochitest.tests.zip &&
export GECKO_BINARY_PATH=$USE_ARTIFACT_PATH/build/firefox/firefox &&
export TEST_HARNESS_ROOT=$USE_ARTIFACT_PATH/build/tests &&
cd /builds/worker/checkouts/gecko &&
@ -186,17 +184,15 @@ reftest-harness:
use-artifacts:
build:
- target.tar.bz2
- target.common.tests.tar.gz
- target.reftest.tests.tar.gz
- target.common.tests.zip
- target.reftest.tests.zip
command: >
source /builds/worker/scripts/xvfb.sh &&
start_xvfb '1600x1200x24' 0 &&
cd $USE_ARTIFACT_PATH/build &&
tar -xf target.tar.bz2 &&
mkdir -p tests &&
(cd tests &&
tar xf ../target.common.tests.tar.gz &&
tar xf ../target.reftest.tests.tar.gz) &&
unzip -q -d tests target.common.tests.zip &&
unzip -q -d tests target.reftest.tests.zip &&
export GECKO_BINARY_PATH=$USE_ARTIFACT_PATH/build/firefox/firefox &&
export TEST_HARNESS_ROOT=$USE_ARTIFACT_PATH/build/tests &&
cd /builds/worker/checkouts/gecko &&

Просмотреть файл

@ -498,15 +498,15 @@ if [ "${USE_MC}" == "true" ]; then
fi
BROWSER_ARCHIVE="${PRODUCT}-${VERSION}.en-US.${PLATFORM}.${PLATFORM_EXT}"
TESTS_ARCHIVE="${PRODUCT}-${VERSION}.en-US.${PLATFORM}.common.tests.tar.gz"
TESTS_ARCHIVE="${PRODUCT}-${VERSION}.en-US.${PLATFORM}.common.tests.zip"
if [ "${USE_MC}" == "true" ]; then
BROWSER_ARCHIVE="${PRODUCT}-${MCVERSION}.en-US.${PLATFORM}.${PLATFORM_EXT}"
TESTS_ARCHIVE="${PRODUCT}-${MCVERSION}.en-US.${PLATFORM}.common.tests.tar.gz"
TESTS_ARCHIVE="${PRODUCT}-${MCVERSION}.en-US.${PLATFORM}.common.tests.zip"
fi
# Simple name builds on >=53.0.0
if [ "${MAJOR_VERSION}" -ge 53 ] ; then
BROWSER_ARCHIVE="target.${PLATFORM_EXT}"
TESTS_ARCHIVE="target.common.tests.tar.gz"
TESTS_ARCHIVE="target.common.tests.zip"
fi
# End 'remove once 52esr is off support'

Просмотреть файл

@ -25,19 +25,19 @@ from voluptuous import Any, Required, Optional
# See example in bug 1348286
_DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US = [
'buildhub.json',
"target.common.tests.tar.gz",
"target.cppunittest.tests.tar.gz",
"target.common.tests.zip",
"target.cppunittest.tests.zip",
"target.crashreporter-symbols.zip",
"target.json",
"target.mochitest.tests.tar.gz",
"target.mochitest.tests.zip",
"target.mozinfo.json",
"target.reftest.tests.tar.gz",
"target.talos.tests.tar.gz",
"target.awsy.tests.tar.gz",
"target.reftest.tests.zip",
"target.talos.tests.zip",
"target.awsy.tests.zip",
"target.test_packages.json",
"target.txt",
"target.web-platform.tests.tar.gz",
"target.xpcshell.tests.tar.gz",
"target.xpcshell.tests.zip",
"target_info.txt",
"target.jsshell.zip",
"mozharness.zip",
@ -71,19 +71,19 @@ _DESKTOP_UPSTREAM_ARTIFACTS_SIGNED_L10N = [
# See example in bug 1348286
_MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US = [
"en-US/buildhub.json",
"en-US/target.common.tests.tar.gz",
"en-US/target.cppunittest.tests.tar.gz",
"en-US/target.common.tests.zip",
"en-US/target.cppunittest.tests.zip",
"en-US/target.crashreporter-symbols.zip",
"en-US/target.json",
"en-US/target.mochitest.tests.tar.gz",
"en-US/target.mochitest.tests.zip",
"en-US/target.mozinfo.json",
"en-US/target.reftest.tests.tar.gz",
"en-US/target.talos.tests.tar.gz",
"en-US/target.awsy.tests.tar.gz",
"en-US/target.reftest.tests.zip",
"en-US/target.talos.tests.zip",
"en-US/target.awsy.tests.zip",
"en-US/target.test_packages.json",
"en-US/target.txt",
"en-US/target.web-platform.tests.tar.gz",
"en-US/target.xpcshell.tests.tar.gz",
"en-US/target.xpcshell.tests.zip",
"en-US/target_info.txt",
"en-US/mozharness.zip",
"en-US/robocop.apk",

Просмотреть файл

@ -41,19 +41,19 @@ _WINDOWS_BUILD_PLATFORMS = [
# See example in bug 1348286
_DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US = [
"buildhub.json",
"target.common.tests.tar.gz",
"target.cppunittest.tests.tar.gz",
"target.common.tests.zip",
"target.cppunittest.tests.zip",
"target.crashreporter-symbols.zip",
"target.json",
"target.mochitest.tests.tar.gz",
"target.mochitest.tests.zip",
"target.mozinfo.json",
"target.reftest.tests.tar.gz",
"target.talos.tests.tar.gz",
"target.awsy.tests.tar.gz",
"target.reftest.tests.zip",
"target.talos.tests.zip",
"target.awsy.tests.zip",
"target.test_packages.json",
"target.txt",
"target.web-platform.tests.tar.gz",
"target.xpcshell.tests.tar.gz",
"target.xpcshell.tests.zip",
"target_info.txt",
"target.jsshell.zip",
"mozharness.zip",

Просмотреть файл

@ -186,7 +186,7 @@ possibly to run the Marionette tests _without_ a local build and
with a downloaded test archive from <Taskcluster.html>.
If you want to run tests from a downloaded test archive, you will
need to download the `target.common.tests.tar.gz` artifact attached to
need to download the `target.common.tests.zip` artifact attached to
Treeherder [build jobs] `B` for your system. Extract the archive
and set up the Python Marionette client and harness by executing
the following command in a virtual environment:

Просмотреть файл

@ -753,7 +753,7 @@ class MochitestArguments(ArgumentContainer):
options.testingModulesDir = p
break
# Paths to specialpowers and mochijar from the tests archive.
# Paths to specialpowers and mochijar from the tests zip.
options.stagedAddons = [
os.path.join(here, 'extensions', 'specialpowers'),
os.path.join(here, 'mochijar'),

Просмотреть файл

@ -1,7 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""Pytest fixtures to help set up Firefox and a tests archive
"""Pytest fixtures to help set up Firefox and a tests.zip
in test harness selftests.
"""

Просмотреть файл

@ -89,7 +89,7 @@ class MakeUploadOutputParser(OutputParser):
# key: property name, value: condition
('symbolsUrl', "m.endswith('crashreporter-symbols.zip') or "
"m.endswith('crashreporter-symbols-full.zip')"),
('testsUrl', "m.endswith(('tests.tar.bz2', 'tests.zip', 'tests.tar.gz'))"),
('testsUrl', "m.endswith(('tests.tar.bz2', 'tests.zip'))"),
('robocopApkUrl', "m.endswith('apk') and 'robocop' in m"),
('jsshellUrl', "'jsshell-' in m and m.endswith('.zip')"),
('partialMarUrl', "m.endswith('.mar') and '.partial.' in m"),

Просмотреть файл

@ -359,7 +359,7 @@ You can set this by specifying --test-url URL
]
for req_file in required_files:
if req_file not in unpack_dirs:
self.info("Adding '{}' for extraction from common.tests archive"
self.info("Adding '{}' for extraction from common.tests zip file"
.format(req_file))
unpack_dirs.append(req_file)

Просмотреть файл

@ -723,7 +723,7 @@ class AndroidEmulatorTest(TestingMixin, BaseScript, MozbaseMixin, CodeCoverageMi
def download_and_extract(self):
"""
Download and extract fennec APK, tests, host utils, and robocop (if required).
Download and extract fennec APK, tests.zip, host utils, and robocop (if required).
"""
super(AndroidEmulatorTest, self).download_and_extract(
suite_categories=self._query_suite_categories())

Просмотреть файл

@ -554,7 +554,7 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin,
def download_and_extract(self):
"""
download and extract test zip / download installer
optimizes which subfolders to extract from tests archive
optimizes which subfolders to extract from tests zip
"""
c = self.config

Просмотреть файл

@ -113,9 +113,6 @@ stage-all: stage-cppunittests
endif
TEST_PKGS_ZIP := \
$(NULL)
TEST_PKGS_TARGZ := \
common \
cppunittest \
mochitest \
@ -124,6 +121,9 @@ TEST_PKGS_TARGZ := \
raptor \
awsy \
xpcshell \
$(NULL)
TEST_PKGS_TARGZ := \
web-platform \
$(NULL)

Просмотреть файл

@ -133,11 +133,11 @@ And on macOS with homebrew using:
brew install nss
```
On other platforms, download the firefox archive and common.tests.tar.gz
On other platforms, download the firefox archive and common.tests.zip
archive for your platform from
[Mozilla CI](https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/).
Then extract `certutil[.exe]` from the tests.tar.gz package and
Then extract `certutil[.exe]` from the tests.zip package and
`libnss3[.so|.dll|.dynlib]` and put the former on your path and the latter on
your library path.

Просмотреть файл

@ -533,7 +533,7 @@ def verifyRemoteOptions(parser, options):
elif options['objdir']:
options['localLib'] = os.path.join(options['objdir'], 'dist/bin')
elif os.path.isfile(os.path.join(here, '..', 'bin', 'xpcshell')):
# assume tests are being run from a tests archive
# assume tests are being run from a tests.zip
options['localLib'] = os.path.abspath(os.path.join(here, '..', 'bin'))
else:
parser.error("Couldn't find local library dir, specify --local-lib-dir")
@ -547,7 +547,7 @@ def verifyRemoteOptions(parser, options):
else:
parser.error("Couldn't find local binary dir, specify --local-bin-dir")
elif os.path.isfile(os.path.join(here, '..', 'bin', 'xpcshell')):
# assume tests are being run from a tests archive
# assume tests are being run from a tests.zip
options['localBin'] = os.path.abspath(os.path.join(here, '..', 'bin'))
else:
parser.error("Couldn't find local binary dir, specify --local-bin-dir")

Просмотреть файл

@ -94,15 +94,15 @@ MOZSEARCH_RUST_ANALYSIS_BASENAME = $(PKG_BASENAME).mozsearch-rust
MOZHARNESS_PACKAGE = mozharness.zip
# Test package naming
TEST_PACKAGE = $(PKG_BASENAME).common.tests.tar.gz
CPP_TEST_PACKAGE = $(PKG_BASENAME).cppunittest.tests.tar.gz
XPC_TEST_PACKAGE = $(PKG_BASENAME).xpcshell.tests.tar.gz
MOCHITEST_PACKAGE = $(PKG_BASENAME).mochitest.tests.tar.gz
REFTEST_PACKAGE = $(PKG_BASENAME).reftest.tests.tar.gz
TEST_PACKAGE = $(PKG_BASENAME).common.tests.zip
CPP_TEST_PACKAGE = $(PKG_BASENAME).cppunittest.tests.zip
XPC_TEST_PACKAGE = $(PKG_BASENAME).xpcshell.tests.zip
MOCHITEST_PACKAGE = $(PKG_BASENAME).mochitest.tests.zip
REFTEST_PACKAGE = $(PKG_BASENAME).reftest.tests.zip
WP_TEST_PACKAGE = $(PKG_BASENAME).web-platform.tests.tar.gz
TALOS_PACKAGE = $(PKG_BASENAME).talos.tests.tar.gz
AWSY_PACKAGE = $(PKG_BASENAME).awsy.tests.tar.gz
GTEST_PACKAGE = $(PKG_BASENAME).gtest.tests.tar.gz
TALOS_PACKAGE = $(PKG_BASENAME).talos.tests.zip
AWSY_PACKAGE = $(PKG_BASENAME).awsy.tests.zip
GTEST_PACKAGE = $(PKG_BASENAME).gtest.tests.zip
ifneq (,$(wildcard $(DIST)/bin/application.ini))
BUILDID = $(shell $(PYTHON) $(MOZILLA_DIR)/config/printconfigsetting.py $(DIST)/bin/application.ini App BuildID)