commit 29ef255b51cb85d7b31cf876f03308989c1bb57c
parent 58cd34b6d78b9c78ab3373c35663793e0f5d6cdb
Author: Nathan Pratta Teodosio <nathan.teodosio@canonical.com>
Date: Tue, 16 Dec 2025 10:07:41 +0000
Bug 2003521: Explicit environment variable to discern normal from test snap builds. r=taskgraph-reviewers,jcristau DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D274753
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/taskcluster/docker/snap-coreXX-build/run.sh b/taskcluster/docker/snap-coreXX-build/run.sh
@@ -19,6 +19,9 @@ export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export SNAP_ARCH=amd64
export SNAPCRAFT_BUILD_INFO=1
+# Used to discern this Docker build, done by Mozilla, from the 'normal',
+# production snap build.
+export MOZ_SNAP_BUILD=1
export PATH=$PATH:$HOME/.local/bin/
unset MOZ_AUTOMATION
diff --git a/toolkit/crashreporter/tools/symbolstore.py b/toolkit/crashreporter/tools/symbolstore.py
@@ -809,10 +809,7 @@ class Dumper:
print(
"PERFHERDER_DATA: %s" % json.dumps(perfherder_data), file=sys.stderr
)
- if (
- "MOZ_AUTOMATION" in os.environ
- or "SNAPCRAFT_BUILD_INFO" in os.environ
- ):
+ if "MOZ_AUTOMATION" in os.environ or "MOZ_SNAP_BUILD" in os.environ:
upload_dir = Path(os.environ.get("UPLOAD_DIR"))
upload_dir.mkdir(parents=True, exist_ok=True)
upload_path = upload_dir / "perfherder-data-compiler-metrics.json"