Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/taskgraph/run-task/fetch-content
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,12 @@ def command_task_artifacts(args):
],
}
print("PERFHERDER_DATA: {}".format(json.dumps(perfherder_data)), file=sys.stderr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this print be removed now that we're spitting out a proper artifact?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review :) We’ll keep this log for now as we transition from log output to the JSON artifact step by step.

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():
Expand Down
Loading