Bug 1680159 - Do not collect source code during automated hazard analysis. r=jonco

Differential Revision: https://phabricator.services.mozilla.com/D98409
This commit is contained in:
Steve Fink 2020-12-02 16:22:40 +00:00
parent 129aed4ab3
commit 3d02a92acd
3 changed files with 6 additions and 21 deletions

View File

@ -362,29 +362,11 @@ else:
if "ANALYZED_OBJDIR" in os.environ:
data["objdir"] = os.environ["ANALYZED_OBJDIR"]
if "GECKO_PATH" in os.environ:
data["source"] = os.environ["GECKO_PATH"]
if "SOURCE" in os.environ:
data["source"] = os.environ["SOURCE"]
if data.get("sixgill_bin"):
if not data.get("source"):
path = subprocess.check_output(
[
"sh",
"-c",
data["sixgill_bin"] + "/xdbkeys file_source.xdb | grep jsapi.cpp",
]
).decode()
data["source"] = path.replace("\n", "").replace("/js/src/jsapi.cpp", "")
if not data.get("objdir"):
path = subprocess.check_output(
[
"sh",
"-c",
data["sixgill_bin"] + "/xdbkeys file_source.xdb | grep jsapi.h",
]
).decode()
data["objdir"] = path.replace("\n", "").replace("/jsapi.h", "")
steps = [
"dbs",
"gcTypes",

View File

@ -318,6 +318,9 @@ no shell found in %s -- must build the JS shell with `mach hazards build-shell`
# hazard mozconfigs need to find binaries in .mozbuild
env["MOZBUILD_STATE_PATH"] = self.state_dir
# Suppress the gathering of sources, to save disk space and memory.
env["XGILL_NO_SOURCE"] = "1"
self.setup_env_for_tools(env)
if "haz_objdir" in kwargs:

View File

@ -11,7 +11,7 @@ root_dir=$MOZ_FETCHES_DIR
build_dir=$GECKO_PATH/build
data_dir=$GECKO_PATH/build/unix/build-gcc
sixgill_rev=e21b1fa688ce
sixgill_rev=88d1a251c92a
sixgill_repo=https://hg.mozilla.org/users/sfink_mozilla.com/sixgill
. $data_dir/build-gcc.sh