Skip to content

Commit af79673

Browse files
committed
Bug 1996563 - Generate perfherder_data artifacts for jobs running fetch-content
1 parent 893dd5c commit af79673

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/taskgraph/run-task/fetch-content

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -949,11 +949,11 @@ def command_task_artifacts(args):
949949
],
950950
}
951951
print(f"PERFHERDER_DATA: {json.dumps(perfherder_data)}", file=sys.stderr)
952-
upload_dir = os.environ.get("UPLOAD_DIR")
953-
if os.environ.get("MOZ_AUTOMATION", "0") == "1" and upload_dir:
954-
upload_path = pathlib.Path(upload_dir) / "perfherder-data-fetch-content.json"
952+
perfherder_fetch_content_json_path = os.environ.get("PERFHERDER_FETCH_CONTENT_JSON_PATH")
953+
if os.environ.get("MOZ_AUTOMATION", "0") == "1" and perfherder_fetch_content_json_path:
954+
upload_path = pathlib.Path(perfherder_fetch_content_json_path)
955955
upload_path.parent.mkdir(parents=True, exist_ok=True)
956-
with upload_path.open("w") as f:
956+
with upload_path.open("w", encoding="utf-8") as f:
957957
json.dump(perfherder_data, f)
958958

959959

0 commit comments

Comments
 (0)