Commit 64fe591b authored by Alex Ionescu's avatar Alex Ionescu
Browse files

Bug 1834053 - Shorten task metadata name for side-by-side job...

Bug 1834053 - Shorten task metadata name for side-by-side job r=perftest-reviewers,taskgraph-reviewers,jmaher,kshampur

treeherder.job_type.name which stores task.task["metadata"]["name"] has a max length of 140 characters.
test-android-hw-a51-11-0-aarch64-shippable-qr browsertime-tp6m-essential-geckoview-microsoft-support-nofis has the longest task name from all pageload jobs, and it fits in the current form of the string in 140 chaaracters.

Differential Revision: https://phabricator.services.mozilla.com/D179062
parent 68bbd554
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ def side_by_side_modifier(task, input):
    # it was triggered for
    task.task["metadata"][
        "name"
    ] = f"{input['label']} for {input['platform']} {input['test_name']} from revision {input['base_revision'][:12]} to {input['new_revision'][:12]}"
    ] = f"{input['platform']} {input['test_name']} {input['base_revision'][:12]} {input['new_revision'][:12]}"
    # Use a job symbol to include the symbol of the job the side-by-side
    # is running for
    task.task["extra"]["treeherder"]["symbol"] += f"-{input['symbol']}"