Backed out changeset f5532b7dc480 (bug 1672181) as per Gregory's request. CLOSED TREE

This commit is contained in:
Razvan Maries 2020-12-01 17:12:11 +02:00
parent 53deac993e
commit 1e986258d1
20 changed files with 5 additions and 34 deletions

View File

@ -4,7 +4,6 @@
---
job-defaults:
suite: awsy
force-py2: true
max-run-time: 7200
instance-size: xlarge
virtualization:

View File

@ -3,7 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
job-defaults:
force-py2: true
max-run-time:
by-test-platform:
.*-qr/.*: 2400

View File

@ -5,7 +5,6 @@
job-defaults:
max-run-time: 3600
suite: raptor
force-py2: true
run-on-projects:
by-app:
refbrow: []

View File

@ -3,7 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
job-defaults:
force-py2: true
e10s: false
test-manifest-loader: null # don't load tests in the taskgraph
virtualization:

View File

@ -5,7 +5,6 @@
job-defaults:
suite:
category: firefox-ui
force-py2: true
max-run-time: 5400
test-manifest-loader: null # don't load tests in the taskgraph
mozharness:

View File

@ -4,7 +4,6 @@
---
job-defaults:
suite: marionette
force-py2: true
mozharness:
script: marionette.py
config:

View File

@ -3,7 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
job-defaults:
force-py2: true
test-manifest-loader: null # don't load tests in the taskgraph
geckoview-junit:

View File

@ -5,7 +5,6 @@
job-defaults:
suite:
category: mochitest
force-py2: true
target:
by-test-platform:
android-em-7.*: geckoview-androidTest.apk

View File

@ -9,7 +9,6 @@ job-defaults:
.*-ux/.*: 2400
default: 1800
suite: raptor
force-py2: true
run-on-projects: []
test-manifest-loader: null # don't load tests in the taskgraph
tier: 2

View File

@ -9,7 +9,6 @@ job-defaults:
.*-ux/.*: 2400
default: 1800
suite: raptor
force-py2: true
run-on-projects: []
tier: 2
virtualization:

View File

@ -5,7 +5,6 @@
job-defaults:
max-run-time: 1800
suite: raptor
force-py2: true
webrender-run-on-projects: []
variants: ["webrender"]
run-on-projects:

View File

@ -4,7 +4,6 @@
job-defaults:
max-run-time: 1800
suite: raptor
force-py2: true
webrender-run-on-projects: []
variants: ["webrender"]
run-on-projects: []

View File

@ -16,7 +16,6 @@ job-defaults:
.*-ux/.*: 2400
default: 1800
suite: raptor
force-py2: true
test-manifest-loader: null # don't load tests in the taskgraph
run-on-projects:
by-app:

View File

@ -5,7 +5,6 @@
job-defaults:
suite:
category: reftest
force-py2: true
target:
by-test-platform:
android-em-7.*: geckoview-androidTest.apk

View File

@ -5,7 +5,6 @@
job-defaults:
max-run-time: 3600
suite: talos
force-py2: true
tier:
by-test-platform:
windows10-64-ccov.*/.*: 3

View File

@ -5,7 +5,6 @@
job-defaults:
suite:
category: web-platform-tests
force-py2: true
instance-size: xlarge
max-run-time:
by-test-platform:

View File

@ -4,7 +4,6 @@
---
job-defaults:
suite: xpcshell
force-py2: true
variants:
by-test-platform:
linux1804-64/debug: ['fission', 'socketprocess_networking']

View File

@ -255,7 +255,7 @@ fi
# Use |mach python| if a source checkout exists so in-tree packages are
# available.
[[ -x "${GECKO_PATH}/mach" ]] && python="${PYTHON} ${GECKO_PATH}/mach python" || python="${PYTHON}"
[[ -x "${GECKO_PATH}/mach" ]] && python="python2.7 ${GECKO_PATH}/mach python" || python="python2.7"
# Save the computed mozharness command to a binary which is useful for
# interactive mode.

View File

@ -45,7 +45,6 @@ mozharness_test_run_schema = Schema(
{
Required("using"): "mozharness-test",
Required("test"): test_description_schema,
Optional("force-py2"): bool,
# Base work directory used to set up the task.
Optional("workdir"): text_type,
}
@ -92,7 +91,6 @@ def mozharness_test_on_docker(config, job, taskdesc):
worker = taskdesc["worker"] = job["worker"]
# apply some defaults
run.setdefault("force-py2", False)
worker["docker-image"] = test["docker-image"]
worker["allow-ptrace"] = True # required for all tests, for crashreporter
worker["loopback-video"] = test["loopback-video"]
@ -133,13 +131,12 @@ def mozharness_test_on_docker(config, job, taskdesc):
env = worker.setdefault("env", {})
env.update(
{
"ENABLE_E10S": text_type(bool(test.get("e10s"))).lower(),
"MOZHARNESS_CONFIG": " ".join(mozharness["config"]),
"MOZHARNESS_SCRIPT": mozharness["script"],
"MOZILLA_BUILD_URL": {"task-reference": installer},
"NEED_PULSEAUDIO": "true",
"NEED_WINDOW_MANAGER": "true",
"PYTHON": "python2.7" if run["force-py2"] else "python3",
"ENABLE_E10S": text_type(bool(test.get("e10s"))).lower(),
"WORKING_DIR": "/builds/worker",
}
)
@ -239,12 +236,10 @@ def mozharness_test_on_docker(config, job, taskdesc):
@run_job_using("generic-worker", "mozharness-test", schema=mozharness_test_run_schema)
def mozharness_test_on_generic_worker(config, job, taskdesc):
run = job["run"]
test = taskdesc["run"]["test"]
mozharness = test["mozharness"]
worker = taskdesc["worker"] = job["worker"]
run.setdefault("force-py2", False)
bitbar_script = "test-linux.sh"
is_macosx = worker["os"] == "macosx"
@ -309,7 +304,6 @@ def mozharness_test_on_generic_worker(config, job, taskdesc):
env = worker.setdefault("env", {})
env["GECKO_HEAD_REPOSITORY"] = config.params["head_repository"]
env["GECKO_HEAD_REV"] = config.params["head_rev"]
env["PYTHON"] = "python2.7" if run["force-py2"] else "python3"
# this list will get cleaned up / reduced / removed in bug 1354088
if is_macosx:
@ -360,9 +354,7 @@ def mozharness_test_on_generic_worker(config, job, taskdesc):
if is_windows:
mh_command = [
"c:\\mozilla-build\\{python}\\{python}.exe".format(
python="python" if run["force-py2"] else "python3"
),
"c:\\mozilla-build\\python\\python.exe",
"-u",
"mozharness\\scripts\\" + normpath(mozharness["script"]),
]
@ -370,7 +362,7 @@ def mozharness_test_on_generic_worker(config, job, taskdesc):
mh_command = ["bash", "./{}".format(bitbar_script)]
elif is_macosx and "macosx1014-64" in test["test-platform"]:
mh_command = [
"/usr/local/bin/{}".format("python2" if run["force-py2"] else "python3"),
"/usr/local/bin/python2",
"-u",
"mozharness/scripts/" + mozharness["script"],
]
@ -380,7 +372,7 @@ def mozharness_test_on_generic_worker(config, job, taskdesc):
# Using /usr/bin/python2.7 rather than python2.7 because
# /usr/local/bin/python2.7 is broken on the mac workers.
# See bug #1547903.
"/usr/bin/{}".format("python2.7" if run["force-py2"] else "python3"),
"/usr/bin/python2.7",
"-u",
"mozharness/scripts/" + mozharness["script"],
]

View File

@ -572,8 +572,6 @@ test_description_schema = Schema(
Optional("fetches"): {
text_type: optionally_keyed_by("test-platform", [text_type])
},
# Use Python 2 rather than Python 3.
Optional("force-py2"): bool,
}
)
@ -643,7 +641,6 @@ def set_defaults(config, tasks):
task.setdefault("limit-platforms", [])
task.setdefault("docker-image", {"in-tree": "ubuntu1804-test"})
task.setdefault("checkout", False)
task.setdefault("force-py2", False)
task.setdefault("require-signed-extensions", False)
task.setdefault("variants", [])
@ -1904,7 +1901,6 @@ def make_job_description(config, tasks):
run = jobdesc["run"] = {}
run["using"] = "mozharness-test"
run["test"] = task
run["force-py2"] = task.pop("force-py2", False)
if "workdir" in task:
run["workdir"] = task.pop("workdir")