forked from mirrors/gecko-dev
Backed out 2 changesets (bug 1870823) for causing build bustages CLOSED TREE
Backed out changeset 8e71522c5b0c (bug 1870823) Backed out changeset bf23686d4852 (bug 1870823)
This commit is contained in:
parent
7f556b5e7e
commit
114a00145b
3 changed files with 18 additions and 77 deletions
|
|
@ -428,7 +428,7 @@ dump-syms:
|
||||||
fetch:
|
fetch:
|
||||||
type: git
|
type: git
|
||||||
repo: https://github.com/mozilla/dump_syms/
|
repo: https://github.com/mozilla/dump_syms/
|
||||||
revision: 96c647f0a63912b68b0bc2613cef77d9b3f305fd
|
revision: b1951e4ccec48a2e97460a7ec40be35aa79e0037
|
||||||
|
|
||||||
rust-minidump:
|
rust-minidump:
|
||||||
description: rust-minidump 0.19.1 source code (for minidump-stackwalk)
|
description: rust-minidump 0.19.1 source code (for minidump-stackwalk)
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ linux64-dump_syms:
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
- linux64-clang-toolchain
|
- linux64-clang-toolchain
|
||||||
- linux64-rust
|
- linux64-rust-toolchain
|
||||||
- sysroot-x86_64-linux-gnu
|
- sysroot-x86_64-linux-gnu
|
||||||
|
|
||||||
macosx64-dump_syms:
|
macosx64-dump_syms:
|
||||||
|
|
@ -35,7 +35,7 @@ macosx64-dump_syms:
|
||||||
arguments: ['x86_64-apple-darwin']
|
arguments: ['x86_64-apple-darwin']
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
- linux64-rust-macos
|
- linux64-rust-macos-toolchain
|
||||||
- linux64-clang-toolchain
|
- linux64-clang-toolchain
|
||||||
- macosx64-sdk-toolchain
|
- macosx64-sdk-toolchain
|
||||||
|
|
||||||
|
|
@ -46,7 +46,7 @@ macosx64-aarch64-dump_syms:
|
||||||
arguments: ['aarch64-apple-darwin']
|
arguments: ['aarch64-apple-darwin']
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
- linux64-rust-macos
|
- linux64-rust-macos-toolchain
|
||||||
- linux64-clang-toolchain
|
- linux64-clang-toolchain
|
||||||
- macosx64-sdk-toolchain
|
- macosx64-sdk-toolchain
|
||||||
|
|
||||||
|
|
@ -58,5 +58,5 @@ win64-dump_syms:
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
- linux64-clang-toolchain
|
- linux64-clang-toolchain
|
||||||
- linux64-rust-windows
|
- linux64-rust-windows-toolchain
|
||||||
- vs-toolchain
|
- vs-toolchain
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@
|
||||||
|
|
||||||
import ctypes
|
import ctypes
|
||||||
import errno
|
import errno
|
||||||
import io
|
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import re
|
import re
|
||||||
|
|
@ -391,13 +390,13 @@ def validate_install_manifests(install_manifest_args):
|
||||||
def make_file_mapping(install_manifests):
|
def make_file_mapping(install_manifests):
|
||||||
file_mapping = {}
|
file_mapping = {}
|
||||||
for manifest, destination in install_manifests:
|
for manifest, destination in install_manifests:
|
||||||
absolute_destination = os.path.abspath(destination)
|
destination = os.path.abspath(destination)
|
||||||
reg = FileRegistry()
|
reg = FileRegistry()
|
||||||
manifest.populate_registry(reg)
|
manifest.populate_registry(reg)
|
||||||
for dst, src in reg:
|
for dst, src in reg:
|
||||||
if hasattr(src, "path"):
|
if hasattr(src, "path"):
|
||||||
# Any paths that get compared to source file names need to go through realpath.
|
# Any paths that get compared to source file names need to go through realpath.
|
||||||
abs_dest = realpath(os.path.join(absolute_destination, dst))
|
abs_dest = realpath(os.path.join(destination, dst))
|
||||||
file_mapping[abs_dest] = realpath(src.path)
|
file_mapping[abs_dest] = realpath(src.path)
|
||||||
return file_mapping
|
return file_mapping
|
||||||
|
|
||||||
|
|
@ -552,58 +551,7 @@ class Dumper:
|
||||||
Get the commandline used to invoke dump_syms.
|
Get the commandline used to invoke dump_syms.
|
||||||
"""
|
"""
|
||||||
# The Mac dumper overrides this.
|
# The Mac dumper overrides this.
|
||||||
cmdline = [
|
return [self.dump_syms, "--inlines", file]
|
||||||
self.dump_syms,
|
|
||||||
"--inlines",
|
|
||||||
]
|
|
||||||
|
|
||||||
cmdline.extend(self.dump_syms_extra_info())
|
|
||||||
cmdline.append(file)
|
|
||||||
|
|
||||||
return cmdline
|
|
||||||
|
|
||||||
def dump_syms_extra_info(self):
|
|
||||||
"""
|
|
||||||
Returns an array with the additional parameters to add information
|
|
||||||
about the build to the dump_syms command-line
|
|
||||||
"""
|
|
||||||
cmdline = [
|
|
||||||
"--extra-info",
|
|
||||||
"RELEASECHANNEL " + buildconfig.substs["MOZ_UPDATE_CHANNEL"],
|
|
||||||
"--extra-info",
|
|
||||||
"VERSION " + buildconfig.substs["MOZ_APP_VERSION"],
|
|
||||||
]
|
|
||||||
|
|
||||||
if buildconfig.substs.get("MOZ_APP_VENDOR") is not None:
|
|
||||||
cmdline.extend(
|
|
||||||
[
|
|
||||||
"--extra-info",
|
|
||||||
"VENDOR " + buildconfig.substs["MOZ_APP_VENDOR"],
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
if buildconfig.substs.get("MOZ_APP_BASENAME") is not None:
|
|
||||||
cmdline.extend(
|
|
||||||
[
|
|
||||||
"--extra-info",
|
|
||||||
"PRODUCTNAME " + buildconfig.substs["MOZ_APP_BASENAME"],
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
# Add the build ID if it's present
|
|
||||||
path = os.path.join(buildconfig.topobjdir, "buildid.h")
|
|
||||||
try:
|
|
||||||
buildid = io.open(path, "r", encoding="utf-8").read().split()[2]
|
|
||||||
cmdline.extend(
|
|
||||||
[
|
|
||||||
"--extra-info",
|
|
||||||
"BUILDID " + buildid,
|
|
||||||
]
|
|
||||||
)
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
|
|
||||||
return cmdline
|
|
||||||
|
|
||||||
def ProcessFileWork(
|
def ProcessFileWork(
|
||||||
self, file, arch_num, arch, vcs_root, dsymbundle=None, count_ctors=False
|
self, file, arch_num, arch, vcs_root, dsymbundle=None, count_ctors=False
|
||||||
|
|
@ -911,8 +859,9 @@ class Dumper_Linux(Dumper):
|
||||||
full_path = os.path.normpath(os.path.join(self.symbol_path, rel_path))
|
full_path = os.path.normpath(os.path.join(self.symbol_path, rel_path))
|
||||||
shutil.move(file_dbg, full_path)
|
shutil.move(file_dbg, full_path)
|
||||||
print(rel_path)
|
print(rel_path)
|
||||||
elif os.path.isfile(file_dbg):
|
else:
|
||||||
os.unlink(file_dbg)
|
if os.path.isfile(file_dbg):
|
||||||
|
os.unlink(file_dbg)
|
||||||
|
|
||||||
|
|
||||||
class Dumper_Solaris(Dumper):
|
class Dumper_Solaris(Dumper):
|
||||||
|
|
@ -953,19 +902,11 @@ class Dumper_Mac(Dumper):
|
||||||
# in order to dump all the symbols.
|
# in order to dump all the symbols.
|
||||||
if dsymbundle:
|
if dsymbundle:
|
||||||
# This is the .dSYM bundle.
|
# This is the .dSYM bundle.
|
||||||
cmdline = [
|
return (
|
||||||
self.dump_syms,
|
[self.dump_syms]
|
||||||
arch.split(),
|
+ arch.split()
|
||||||
"--inlines",
|
+ ["--inlines", "-j", "2", dsymbundle, file]
|
||||||
"-j",
|
)
|
||||||
"2",
|
|
||||||
]
|
|
||||||
|
|
||||||
cmdline.extend(self.dump_syms_extra_info())
|
|
||||||
cmdline.extend([dsymbundle, file])
|
|
||||||
|
|
||||||
return cmdline
|
|
||||||
|
|
||||||
return Dumper.dump_syms_cmdline(self, file, arch)
|
return Dumper.dump_syms_cmdline(self, file, arch)
|
||||||
|
|
||||||
def GenerateDSYM(self, file):
|
def GenerateDSYM(self, file):
|
||||||
|
|
@ -1125,13 +1066,13 @@ to canonical locations in the source repository. Specify
|
||||||
|
|
||||||
if len(args) < 3:
|
if len(args) < 3:
|
||||||
parser.error("not enough arguments")
|
parser.error("not enough arguments")
|
||||||
sys.exit(1)
|
exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
manifests = validate_install_manifests(options.install_manifests)
|
manifests = validate_install_manifests(options.install_manifests)
|
||||||
except (IOError, ValueError) as e:
|
except (IOError, ValueError) as e:
|
||||||
parser.error(str(e))
|
parser.error(str(e))
|
||||||
sys.exit(1)
|
exit(1)
|
||||||
file_mapping = make_file_mapping(manifests)
|
file_mapping = make_file_mapping(manifests)
|
||||||
_, bucket = get_s3_region_and_bucket()
|
_, bucket = get_s3_region_and_bucket()
|
||||||
dumper = GetPlatformSpecificDumper(
|
dumper = GetPlatformSpecificDumper(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue