зеркало из https://github.com/mozilla/gecko-dev.git
Backed out 2 changesets (bug 1714688) for causing Bug 1717578. CLOSED TREE
Backed out changeset 997f00815e6b (bug 1714688) Backed out changeset 941f6c6c51e3 (bug 1714688)
This commit is contained in:
Родитель
084af8f00e
Коммит
28dc1a443c
|
@ -421,7 +421,7 @@ class MachCommands(MachCommandBase):
|
||||||
"testing",
|
"testing",
|
||||||
"tools",
|
"tools",
|
||||||
"websocketprocessbridge",
|
"websocketprocessbridge",
|
||||||
"websocketprocessbridge_requirements.txt",
|
"websocketprocessbridge_requirements_3.txt",
|
||||||
)
|
)
|
||||||
self.virtualenv_manager.activate()
|
self.virtualenv_manager.activate()
|
||||||
self.virtualenv_manager.install_pip_requirements(req, require_hashes=False)
|
self.virtualenv_manager.install_pip_requirements(req, require_hashes=False)
|
||||||
|
|
|
@ -201,6 +201,7 @@ TEST_HARNESS_FILES.testing.mochitest.iceserver += [
|
||||||
TEST_HARNESS_FILES.testing.mochitest.websocketprocessbridge += [
|
TEST_HARNESS_FILES.testing.mochitest.websocketprocessbridge += [
|
||||||
"/testing/tools/websocketprocessbridge/websocketprocessbridge.py",
|
"/testing/tools/websocketprocessbridge/websocketprocessbridge.py",
|
||||||
"/testing/tools/websocketprocessbridge/websocketprocessbridge_requirements.txt",
|
"/testing/tools/websocketprocessbridge/websocketprocessbridge_requirements.txt",
|
||||||
|
"/testing/tools/websocketprocessbridge/websocketprocessbridge_requirements_3.txt",
|
||||||
]
|
]
|
||||||
|
|
||||||
with Files("**"):
|
with Files("**"):
|
||||||
|
|
|
@ -28,6 +28,7 @@ from mozharness.mozilla.testing.codecoverage import (
|
||||||
code_coverage_config_options,
|
code_coverage_config_options,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PY2 = sys.version_info.major == 2
|
||||||
SUITE_DEFAULT_E10S = ["geckoview-junit", "mochitest", "reftest"]
|
SUITE_DEFAULT_E10S = ["geckoview-junit", "mochitest", "reftest"]
|
||||||
SUITE_NO_E10S = ["cppunittest", "geckoview-junit", "xpcshell"]
|
SUITE_NO_E10S = ["cppunittest", "geckoview-junit", "xpcshell"]
|
||||||
SUITE_REPEATABLE = ["mochitest", "reftest"]
|
SUITE_REPEATABLE = ["mochitest", "reftest"]
|
||||||
|
@ -404,12 +405,16 @@ class AndroidEmulatorTest(
|
||||||
dirs = self.query_abs_dirs()
|
dirs = self.query_abs_dirs()
|
||||||
requirements = None
|
requirements = None
|
||||||
suites = self._query_suites()
|
suites = self._query_suites()
|
||||||
|
if PY2:
|
||||||
|
wspb_requirements = "websocketprocessbridge_requirements.txt"
|
||||||
|
else:
|
||||||
|
wspb_requirements = "websocketprocessbridge_requirements_3.txt"
|
||||||
if ("mochitest-media", "mochitest-media") in suites:
|
if ("mochitest-media", "mochitest-media") in suites:
|
||||||
# mochitest-media is the only thing that needs this
|
# mochitest-media is the only thing that needs this
|
||||||
requirements = os.path.join(
|
requirements = os.path.join(
|
||||||
dirs["abs_mochitest_dir"],
|
dirs["abs_mochitest_dir"],
|
||||||
"websocketprocessbridge",
|
"websocketprocessbridge",
|
||||||
"websocketprocessbridge_requirements.txt",
|
wspb_requirements,
|
||||||
)
|
)
|
||||||
if requirements:
|
if requirements:
|
||||||
self.register_virtualenv_module(requirements=[requirements], two_pass=True)
|
self.register_virtualenv_module(requirements=[requirements], two_pass=True)
|
||||||
|
|
|
@ -24,6 +24,7 @@ from mozharness.mozilla.testing.android import AndroidMixin
|
||||||
from mozharness.mozilla.testing.testbase import TestingMixin, testing_config_options
|
from mozharness.mozilla.testing.testbase import TestingMixin, testing_config_options
|
||||||
from mozharness.mozilla.testing.codecoverage import CodeCoverageMixin
|
from mozharness.mozilla.testing.codecoverage import CodeCoverageMixin
|
||||||
|
|
||||||
|
PY2 = sys.version_info.major == 2
|
||||||
SUITE_DEFAULT_E10S = ["geckoview-junit", "mochitest", "reftest"]
|
SUITE_DEFAULT_E10S = ["geckoview-junit", "mochitest", "reftest"]
|
||||||
SUITE_NO_E10S = ["cppunittest", "xpcshell"]
|
SUITE_NO_E10S = ["cppunittest", "xpcshell"]
|
||||||
SUITE_REPEATABLE = ["mochitest", "reftest"]
|
SUITE_REPEATABLE = ["mochitest", "reftest"]
|
||||||
|
@ -357,12 +358,16 @@ class AndroidHardwareTest(
|
||||||
requirements = None
|
requirements = None
|
||||||
suites = self._query_suites()
|
suites = self._query_suites()
|
||||||
# mochitest is the only thing that needs this
|
# mochitest is the only thing that needs this
|
||||||
|
if PY2:
|
||||||
|
wspb_requirements = "websocketprocessbridge_requirements.txt"
|
||||||
|
else:
|
||||||
|
wspb_requirements = "websocketprocessbridge_requirements_3.txt"
|
||||||
if ("mochitest-media", "mochitest-media") in suites:
|
if ("mochitest-media", "mochitest-media") in suites:
|
||||||
# mochitest-media is the only thing that needs this
|
# mochitest-media is the only thing that needs this
|
||||||
requirements = os.path.join(
|
requirements = os.path.join(
|
||||||
dirs["abs_mochitest_dir"],
|
dirs["abs_mochitest_dir"],
|
||||||
"websocketprocessbridge",
|
"websocketprocessbridge",
|
||||||
"websocketprocessbridge_requirements.txt",
|
wspb_requirements,
|
||||||
)
|
)
|
||||||
if requirements:
|
if requirements:
|
||||||
self.register_virtualenv_module(requirements=[requirements], two_pass=True)
|
self.register_virtualenv_module(requirements=[requirements], two_pass=True)
|
||||||
|
|
|
@ -33,6 +33,7 @@ from mozharness.mozilla.testing.codecoverage import (
|
||||||
code_coverage_config_options,
|
code_coverage_config_options,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PY2 = sys.version_info.major == 2
|
||||||
scripts_path = os.path.abspath(os.path.dirname(os.path.dirname(mozharness.__file__)))
|
scripts_path = os.path.abspath(os.path.dirname(os.path.dirname(mozharness.__file__)))
|
||||||
external_tools_path = os.path.join(scripts_path, "external_tools")
|
external_tools_path = os.path.join(scripts_path, "external_tools")
|
||||||
|
|
||||||
|
@ -242,7 +243,7 @@ class AWSY(TestingMixin, MercurialScript, TooltoolMixin, CodeCoverageMixin):
|
||||||
env["EXTERNALTOOLSPATH"] = external_tools_path
|
env["EXTERNALTOOLSPATH"] = external_tools_path
|
||||||
|
|
||||||
runtime_testvars_path = os.path.join(self.awsy_path, "runtime-testvars.json")
|
runtime_testvars_path = os.path.join(self.awsy_path, "runtime-testvars.json")
|
||||||
runtime_testvars_file = open(runtime_testvars_path, "w")
|
runtime_testvars_file = open(runtime_testvars_path, "wb" if PY2 else "w")
|
||||||
runtime_testvars_file.write(json.dumps(runtime_testvars, indent=2))
|
runtime_testvars_file.write(json.dumps(runtime_testvars, indent=2))
|
||||||
runtime_testvars_file.close()
|
runtime_testvars_file.close()
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ from mozharness.mozilla.testing.codecoverage import (
|
||||||
)
|
)
|
||||||
from mozharness.mozilla.testing.testbase import TestingMixin, testing_config_options
|
from mozharness.mozilla.testing.testbase import TestingMixin, testing_config_options
|
||||||
|
|
||||||
|
PY2 = sys.version_info.major == 2
|
||||||
SUITE_CATEGORIES = [
|
SUITE_CATEGORIES = [
|
||||||
"gtest",
|
"gtest",
|
||||||
"cppunittest",
|
"cppunittest",
|
||||||
|
@ -474,11 +475,15 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin, CodeCoverageM
|
||||||
|
|
||||||
if self._query_specified_suites("mochitest") is not None:
|
if self._query_specified_suites("mochitest") is not None:
|
||||||
# mochitest is the only thing that needs this
|
# mochitest is the only thing that needs this
|
||||||
|
if PY2:
|
||||||
|
wspb_requirements = "websocketprocessbridge_requirements.txt"
|
||||||
|
else:
|
||||||
|
wspb_requirements = "websocketprocessbridge_requirements_3.txt"
|
||||||
requirements_files.append(
|
requirements_files.append(
|
||||||
os.path.join(
|
os.path.join(
|
||||||
dirs["abs_mochitest_dir"],
|
dirs["abs_mochitest_dir"],
|
||||||
"websocketprocessbridge",
|
"websocketprocessbridge",
|
||||||
"websocketprocessbridge_requirements.txt",
|
wspb_requirements,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
# This file is the websocketprocess requirements.txt used with python 3.
|
|
||||||
|
|
||||||
# needed by txws, and we'd like pip to get it from the local server before setuptools tries pypi
|
# needed by txws, and we'd like pip to get it from the local server before setuptools tries pypi
|
||||||
six
|
six
|
||||||
vcversioner==2.16.0.0
|
vcversioner==2.16.0.0
|
||||||
twisted>=18.7.0
|
twisted==10.2.0
|
||||||
|
|
||||||
# websocket adapter for twisted, might be built into twisted someday
|
# websocket adapter for twisted, might be built into twisted someday
|
||||||
txws-upgrade==0.10.0
|
txws==0.9.1
|
||||||
|
|
||||||
psutil>=5.6.3
|
psutil>=5.6.3
|
||||||
|
|
||||||
# Needed by iceserver
|
# Needed by iceserver
|
||||||
ipaddr>=2.2.0
|
ipaddr==2.1.11
|
||||||
passlib==1.6.5
|
passlib==1.6.5
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# This file is the websocketprocess requirements.txt used with python 3.
|
||||||
|
|
||||||
|
# needed by txws, and we'd like pip to get it from the local server before setuptools tries pypi
|
||||||
|
six
|
||||||
|
vcversioner==2.16.0.0
|
||||||
|
twisted>=18.7.0
|
||||||
|
|
||||||
|
# websocket adapter for twisted, might be built into twisted someday
|
||||||
|
txws-upgrade==0.10.0
|
||||||
|
|
||||||
|
psutil>=5.6.3
|
||||||
|
|
||||||
|
# Needed by iceserver
|
||||||
|
ipaddr>=2.2.0
|
||||||
|
passlib==1.6.5
|
Загрузка…
Ссылка в новой задаче