From 98d49560d786fa688434e48b1d6fc1b550d7d1ae Mon Sep 17 00:00:00 2001 From: myeongjun Date: Thu, 2 Oct 2025 21:42:48 +0900 Subject: [PATCH] feat: create the perfherder-data.json for fetch-content task (bug-1992052) --- src/taskgraph/run-task/fetch-content | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/taskgraph/run-task/fetch-content b/src/taskgraph/run-task/fetch-content index 01560ad92..24d68cc56 100755 --- a/src/taskgraph/run-task/fetch-content +++ b/src/taskgraph/run-task/fetch-content @@ -952,6 +952,12 @@ def command_task_artifacts(args): ], } print("PERFHERDER_DATA: {}".format(json.dumps(perfherder_data)), file=sys.stderr) + upload_dir = os.environ.get("UPLOAD_DIR") + if os.environ.get("MOZ_AUTOMATION", "0") == "1" and upload_dir: + upload_path = pathlib.Path(upload_dir) / "perfherder-data-fetch-content.json" + upload_path.parent.mkdir(parents=True, exist_ok=True) + with upload_path.open("w") as f: + json.dump(perfherder_data, f) def main():