Closed Bug 1492978 Opened 6 years ago Closed 5 years ago

When Taskcluster action is not found, users get a funny error

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1511153

People

(Reporter: dustin, Unassigned)

References

Details

16:45:02 <RyanVM> dustin: fresh attempt to cancel on m-r - " Taskcluster: A is undefined; can't access its "kind" property "

That was with
  https://queue.taskcluster.net/v1/task/Cs2saMAqTCO2erRCyQvgrg/runs/0/artifacts/public/actions.json
which indeed has no cancel action.  That should probably fail in a more helpful way :)
Trying locally (unminifed), the error is:
`Taskcluster: action is undefined; can't access its "kind" property`

cancelTask ends up being undefined here:
https://github.com/mozilla/treeherder/blob/ecf4c4e33abf7abc5995a8b9f3bb811bc7c57087/ui/models/job.js#L157

...but still gets passed to TaskclusterModel.submit(). (I thought initially perhaps the change in bug 1492462 comment 3 affected this, but that only covered the "no actions.json at all" case)

I think more of the handling that's repeated for each type of workflow should be pushed down into TaskclusterModel, otherwise we'll have to add duplicate messaging for each of {retrigger, cancel, cancel-all, backfill, ...}.
Blocks: 1470622
Component: Treeherder: Frontend → Treeherder: Job Triggering & Cancellation
Priority: -- → P2
Summary: When action is not found, users get a funny error → When Taskcluster action is not found, users get a funny error
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Component: Treeherder: Job Triggering & Cancellation → TreeHerder
You need to log in before you can comment on or make changes to this bug.