Skip to content
Open
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
16 changes: 16 additions & 0 deletions ui/job-view/pushes/PushActionMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ function PushActionMenu({
const [customJobActionsShowing, setCustomJobActionsShowing] = useState(false);

const decisionTaskMap = usePushesStore((state) => state.decisionTaskMap);
const decisionTask = decisionTaskMap[pushId];
const taskGroupProfileUrl = decisionTask
? `https://profiler.firefox.com/from-url/${encodeURIComponent(
`https://firefox-ci-tc.services.mozilla.com/api/web-server/v1/task-group/${decisionTask.id}/profile`,
)}`
: null;

const updateParamsAndRange = useCallback(
(param) => {
Expand Down Expand Up @@ -172,6 +178,16 @@ function PushActionMenu({
Set as bottom of range
</Dropdown.Item>
<Dropdown.Divider />
<Dropdown.Item
tag="a"
href={taskGroupProfileUrl}
target="_blank"
rel="noopener noreferrer"
disabled={!taskGroupProfileUrl}
title="Show a profile of all tasks in this push's task group"
>
Show task group profile
</Dropdown.Item>
<Dropdown.Item
tag="a"
href={getPerfCompareChooserUrl({
Expand Down