Retrigger button should use 'retrigger' action instead of 'retrigger-multiple'
Categories
(Tree Management :: Treeherder, defect)
Tracking
(Not tracked)
People
(Reporter: ahal, Unassigned)
References
Details
Attachments
(1 file)
There are two in-tree actions related to retriggering tasks:
- retrigger - takes a task id as input
- retrigger-multiple - takes a list of task labels as input
Currently the retrigger button performs the latter action, and the former is relegated to the Custom Actions
dialog. The problem with this is that some tasks (like backfills and decision tasks) require the former. Backfills because the internal task definition is different than the tasks on this push, and decision tasks because they require elevated scopes.
Since I don't believe it is possible to retrigger multiple tasks using that button anyway, we should switch these around. Have the button use the retrigger
action, and put retrigger-multiple
under Custom Actions
.
Comment 1•4 years ago
|
||
Details of what needs to be changed can be found here: https://bugzilla.mozilla.org/show_bug.cgi?id=1672967#c12
Comment 2•4 years ago
|
||
We don't specifically assign any action in that Custom Actions section. We just take what we get back by fetching the available actions for a job. So we just display what we get by fetching actions.json
. But it's easy enough to change from using retrigger-multiple
to retrigger
on the retrigger button.
Comment 3•4 years ago
|
||
Comment 4•4 years ago
|
||
My first attempt at this didn't take this bug into consideration: Bug 1521032.
Wes had been working on handling the case when someone presses the r
key multiple times in a row. This is where retrigger-multiple
came from.
Some tasks don't actually have a retrigger
action in actions.json
. So it was falling back to add-new-jobs
action. That latter action is better than nothing, but not ideal because it creates a whole new task, not retrigger the existing task.
Comment 5•4 years ago
|
||
If the tasks have retrigger-disabled
instead of retrigger
, we probably want to use rerun
.
Assignee | ||
Updated•3 years ago
|
Description
•