Closed Bug 1057260 Opened 10 years ago Closed 9 years ago

Retrigger success notification should display what type of build was retriggered

Categories

(Tree Management :: Treeherder, defect, P4)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Gijs, Assigned: jfrench)

Details

(Keywords: regression)

Attachments

(2 files)

STR:

1. click a build
2. Click the retrigger button ( |> ) on the bottom left

ER:
Notification like "Retriggering win32 mochitest-plain-5... SUCCESS"

AR:
"Retrigger SUCCESS"



Basically, if I retrigger lots of things, I want to be able to see what things I've recently retriggered, and how many times (I've not tried to experiment with doing multiples, so it could be that more work is needed to make that workable if notifications don't stack properly).
Agreed, I find these messages essential in TBPL.
Priority: -- → P2
I don't even see any notification at all when I click the retrigger button...
(In reply to Wes Kocher (:KWierso) from comment #2)
> I don't even see any notification at all when I click the retrigger button...

I think that was bug 1071319.
https://github.com/mozilla/treeherder-ui/blob/master/webapp/app/plugins/controller.js#L165
        $scope.retriggerJob = function() {
            thBuildApi.retriggerJob($scope.repoName, getRequestId());
        };

https://github.com/mozilla/treeherder-ui/blob/master/webapp/app/js/services/buildapi.js#L29
        retriggerJob: function(repoName, requestId) {
            $http({
...
            }).
            success(function(data, status) {
                notify(status, "retrigger");
            }).
            error(function(data, status) {
                notify(status, "retrigger");
            });
        },
One problem is that for non-buildbot jobs we don't currently have a friendly job name, so just passing in the buildername in the controller.js call isn't a complete fix. (Though might be good enough in the meantime).
Though for classifications we do:

    var saveClassification = function(job) {
...
                    thNotify.send("classification saved for " + job.platform + ": " + job.job_type_name, "success");
Priority: P2 → P3
No longer blocks: treeherder-dev-transition
Keywords: regression
Priority: P3 → P4
I hoping to implement more minimal version (eg. 'B', 'Cpp') identifiers into retrigger notifications as part of improvements in bug 1148664 - which will expire non-sticky notifications as new ones appear. So that may end up sufficiently addressing the UX issue here.
I've integrated the type into https://github.com/mozilla/treeherder-ui/pull/483 for bug 1148664, pending review.
My thinking is also that minimal types ('B', 'Cpp') are always readable within the current notification persistence of 4000ms, whereas really long, detailed job names are perhaps not. So hopefully it will serve as a reasonable solution.
Merged PR 483, I anticipate it will be present in production sometime next week.
Hi Gijs, so we have bug 1148664 live on production, and successfully Retriggered jobs will now show up similar to:

Retriggered job (Cpp)

Let me know after trying it out if this is sufficient for your needs.
Flags: needinfo?(gijskruitbosch+bugs)
Or like "Retriggered job (6)".
It seems like it would be better if these showed the platform and the full test name (as philor somewhat implied).
Flags: needinfo?(gijskruitbosch+bugs)
Ok, will have a look.
Assignee: nobody → tojonmz
Status: NEW → ASSIGNED
Attached file treeherder-ui-PR#496
Please see above PR for status and review.
Attachment #8599514 - Flags: review?(wlachance)
Comment on attachment 8599514 [details] [review]
treeherder-ui-PR#496

lgtm, I would ditch the parantheses as mentioned in the pr comment
Attachment #8599514 - Flags: review?(wlachance) → review+
Here's an example using a Job: 'name' I managed to dig up. There are other long examples in pushes I have looked at. 

Beyond the peculiarities of this particular example (ie. replicating 'Mochitest' in the jobSearchStr name) I think using the Job: 'name' for notifications as it currently exists will present a problem in readability.

Camd, wlach, what do you think? Is this example just a case of a job that needs better naming upstream? (and out of our control).

This was one of the reasons I wanted to go just with .job_type_symbol in the retrigger message.
Flags: needinfo?(wlachance)
Flags: needinfo?(cdawson)
(In reply to Jonathan French (:jfrench) from comment #17) 
> There are other long examples in pushes I have looked at. 

Now entered as bug 1160187.
My two cents it that I'd rather err on the side of being overly descriptive, even if the end result is not as "beautiful". ;)
Flags: needinfo?(wlachance)
That's cool with me. We can sort out the stuff for Job: name, separately in bug 1160187.
Flags: needinfo?(cdawson)
Marking fixed per above merge. I will verify on the next push to stage/prod.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Verified fixed on production.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: