forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backed out changeset e1921c5112d8 (bug 1696251) for causing bustages …
…complaining about 'CommandContext'. CLOSED TREE
- Loading branch information
Butkovits Atila
committed
Jul 16, 2021
1 parent
d021d94
commit a07f790
Showing
53 changed files
with
1,427 additions
and
1,815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ def valgrind_test(self, command_context, suppressions): | |
from six import string_types | ||
from valgrind.output_handler import OutputHandler | ||
|
||
build_dir = os.path.join(command_context.topsrcdir, "build") | ||
build_dir = os.path.join(self.topsrcdir, "build") | ||
|
||
# XXX: currently we just use the PGO inputs for Valgrind runs. This may | ||
# change in the future. | ||
|
@@ -68,9 +68,7 @@ def valgrind_test(self, command_context, suppressions): | |
|
||
with TemporaryDirectory() as profilePath: | ||
# TODO: refactor this into mozprofile | ||
profile_data_dir = os.path.join( | ||
command_context.topsrcdir, "testing", "profiles" | ||
) | ||
profile_data_dir = os.path.join(self.topsrcdir, "testing", "profiles") | ||
with open(os.path.join(profile_data_dir, "profiles.json"), "r") as fh: | ||
base_profiles = json.load(fh)["valgrind"] | ||
|
||
|
@@ -91,7 +89,7 @@ def valgrind_test(self, command_context, suppressions): | |
prefs[k] = Preferences.cast(v) | ||
|
||
quitter = os.path.join( | ||
command_context.topsrcdir, "tools", "quitter", "[email protected]" | ||
self.topsrcdir, "tools", "quitter", "[email protected]" | ||
) | ||
|
||
locations = ServerLocations() | ||
|
@@ -115,7 +113,7 @@ def valgrind_test(self, command_context, suppressions): | |
env["MOZ_DISABLE_NONLOCAL_CONNECTIONS"] = "1" | ||
env["XPCOM_DEBUG_BREAK"] = "warn" | ||
|
||
outputHandler = OutputHandler(command_context.log) | ||
outputHandler = OutputHandler(self.log) | ||
kp_kwargs = { | ||
"processOutputLine": [outputHandler], | ||
"universal_newlines": True, | ||
|
@@ -173,7 +171,7 @@ def valgrind_test(self, command_context, suppressions): | |
try: | ||
runner = FirefoxRunner( | ||
profile=profile, | ||
binary=command_context.get_binary_path(), | ||
binary=self.get_binary_path(), | ||
cmdargs=firefox_args, | ||
env=env, | ||
process_args=kp_kwargs, | ||
|
@@ -187,7 +185,7 @@ def valgrind_test(self, command_context, suppressions): | |
supps = outputHandler.suppression_count | ||
if errs != supps: | ||
status = 1 # turns the TBPL job orange | ||
command_context.log( | ||
self.log( | ||
logging.ERROR, | ||
"valgrind-fail-parsing", | ||
{"errs": errs, "supps": supps}, | ||
|
@@ -197,7 +195,7 @@ def valgrind_test(self, command_context, suppressions): | |
|
||
elif errs == 0: | ||
status = 0 | ||
command_context.log( | ||
self.log( | ||
logging.INFO, | ||
"valgrind-pass", | ||
{}, | ||
|
@@ -209,21 +207,21 @@ def valgrind_test(self, command_context, suppressions): | |
|
||
if binary_not_found_exception: | ||
status = 2 # turns the TBPL job red | ||
command_context.log( | ||
self.log( | ||
logging.ERROR, | ||
"valgrind-fail-errors", | ||
{"error": str(binary_not_found_exception)}, | ||
"TEST-UNEXPECTED-FAIL | valgrind-test | {error}", | ||
) | ||
command_context.log( | ||
self.log( | ||
logging.INFO, | ||
"valgrind-fail-errors", | ||
{"help": binary_not_found_exception.help()}, | ||
"{help}", | ||
) | ||
elif exitcode is None: | ||
status = 2 # turns the TBPL job red | ||
command_context.log( | ||
self.log( | ||
logging.ERROR, | ||
"valgrind-fail-timeout", | ||
{"timeout": timeout}, | ||
|
@@ -232,7 +230,7 @@ def valgrind_test(self, command_context, suppressions): | |
) | ||
elif exitcode != 0: | ||
status = 2 # turns the TBPL job red | ||
command_context.log( | ||
self.log( | ||
logging.ERROR, | ||
"valgrind-fail-errors", | ||
{"exitcode": exitcode}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.