Skip to content

Commit

Permalink
Bug 1869970 - Make snap builds pick minidump-stackwalk in case PGO cr…
Browse files Browse the repository at this point in the history
…ashes. r=firefox-build-system-reviewers,ahochheiden

We use UPLOAD_DIR rather than UPLOAD_PATH because UPLOAD_DIR is handled
by run-task to be set properly from a relative path.

As the snaps rightfully unset MOZ_AUTOMATION, we add another way to
enable the use of the symbols server.

Differential Revision: https://phabricator.services.mozilla.com/D196399
  • Loading branch information
glandium committed Dec 15, 2023
1 parent ac3840d commit 1b55864
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/pgo/profileserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
def get_crashreports(directory, name=None):
rc = 0
upload_path = os.environ.get("UPLOAD_PATH")
if not upload_path:
upload_path = os.environ.get("UPLOAD_DIR")
if upload_path:
# For automation, log the minidumps with stackwalk and get them moved to
# the artifacts directory.
Expand Down
5 changes: 5 additions & 0 deletions taskcluster/ci/snap-upstream-build/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ job-defaults:
max-run-time: 900
env:
MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE: system
UPLOAD_DIR: artifacts
MOZ_STACKWALK_SYMBOLS_SERVER: '1'
fetches:
toolchain:
- linux64-minidump-stackwalk

jobs:
amd64-nightly/opt:
Expand Down
5 changes: 4 additions & 1 deletion testing/mozbase/mozcrash/mozcrash/mozcrash.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ def _process_dump_file(self, path, extra):

# Fallback to the symbols server for unknown symbols on automation
# (mostly for system libraries).
if "MOZ_AUTOMATION" in os.environ:
if (
"MOZ_AUTOMATION" in os.environ
or "MOZ_STACKWALK_SYMBOLS_SERVER" in os.environ
):
command.append("--symbols-url=https://symbols.mozilla.org/")

with tempfile.TemporaryDirectory() as json_dir:
Expand Down

0 comments on commit 1b55864

Please sign in to comment.