Backed out changeset fee2a1521dfe (bug 1769098) for causing python failures. CLOSED TREE

This commit is contained in:
Iulian Moraru 2022-05-13 21:03:32 +03:00
parent 8cfdac9a59
commit bdd514047e
6 changed files with 5 additions and 32 deletions

View File

@ -114,7 +114,6 @@ def generate_package_data(args):
if pkg_name is None:
continue
harness_requirements[harness].append(pkg_name)
harness_requirements[harness].append("target.condprof.tests.tar.gz")
return harness_requirements

View File

@ -159,7 +159,6 @@ def mock_mozinfo():
"headless": headless,
"tsan": tsan,
"appname": "firefox",
"condprof": False,
}
return inner

View File

@ -11,7 +11,7 @@ import os
from abc import ABCMeta, abstractmethod
from manifestparser import TestManifest
from manifestparser.filters import chunk_by_runtime, tags
from manifestparser.filters import chunk_by_runtime
from mozbuild.util import memoize
from moztest.resolve import (
TEST_SUITES,
@ -56,7 +56,6 @@ def guess_mozinfo_from_task(task):
for key in setting["runtime"].keys()
),
"headless": "-headless" in task["test-name"],
"condprof": "conditioned_profile" in setting["runtime"].keys(),
"tsan": setting["build"].get("tsan", False),
"xorigin": any("xorigin" in key for key in setting["runtime"].keys()),
"socketprocess_networking": "socketprocess_networking"
@ -228,14 +227,10 @@ class DefaultLoader(BaseManifestLoader):
manifests = {chunk_by_runtime.get_manifest(t) for t in tests}
filters = None
if mozinfo["condprof"]:
filters = [tags(["condprof"])]
# Compute the active tests.
m = TestManifest()
m.tests = tests
tests = m.active_tests(disabled=False, exists=False, filters=filters, **mozinfo)
tests = m.active_tests(disabled=False, exists=False, **mozinfo)
active = {chunk_by_runtime.get_manifest(t) for t in tests}
skipped = manifests - active
return {"active": list(active), "skipped": list(skipped)}

View File

@ -28,7 +28,7 @@ from condprof.changelog import Changelog
TC_SERVICE = "https://firefox-ci-tc.services.mozilla.com"
ROOT_URL = TC_SERVICE + "/api/index"
INDEX_PATH = "gecko.v2.%(repo)s.latest.firefox.condprof-%(platform)s-%(scenario)s"
INDEX_PATH = "gecko.v2.%(repo)s.latest.firefox.condprof-%(platform)s"
PUBLIC_DIR = "artifacts/public/condprof"
TC_LINK = ROOT_URL + "/v1/task/" + INDEX_PATH + "/" + PUBLIC_DIR + "/"
ARTIFACT_NAME = "profile-%(platform)s-%(scenario)s-%(customization)s.tgz"
@ -135,7 +135,6 @@ def get_profile(
If task_id is provided, will grab the profile from that task. when not
provided (default) will grab the latest profile.
"""
# XXX assert values
params = {
"platform": platform,
@ -213,8 +212,8 @@ def get_profile(
raise ProfileNotFoundError(url)
def read_changelog(platform, repo="mozilla-central", scenario="settled"):
params = {"platform": platform, "repo": repo, "scenario": scenario}
def read_changelog(platform, repo="mozilla-central"):
params = {"platform": platform, "repo": repo}
changelog_url = CHANGELOG_LINK % params
logger.info("Getting %s" % changelog_url)
download_dir = tempfile.mkdtemp()

View File

@ -21,10 +21,3 @@
../mozbase/mozscreenshot
../mozbase/moztest
../mozbase/mozversion
../condprofile
aiohttp==3.7.4.post0
https://pypi.pub.build.mozilla.org/pub/arsenic-19.1-py3-none-any.whl
requests==2.22.0
pyyaml==5.1.2
structlog==15.2.0

View File

@ -305,15 +305,6 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin, CodeCoverageM
"help": "do not run tests with fission enabled.",
},
],
[
["--conditioned-profile"],
{
"action": "store_true",
"default": False,
"dest": "conditioned_profile",
"help": "run tests with a conditioned profile",
},
],
]
+ copy.deepcopy(testing_config_options)
+ copy.deepcopy(code_coverage_config_options)
@ -654,9 +645,6 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin, CodeCoverageM
if c["crash_as_pass"]:
base_cmd.append("--crash-as-pass")
if c["conditioned_profile"]:
base_cmd.append("--conditioned-profile")
# set pluginsPath
abs_res_plugins_dir = os.path.join(abs_res_dir, "plugins")
str_format_values["test_plugin_path"] = abs_res_plugins_dir