Closed Bug 1184748 Opened 9 years ago Closed 9 years ago

Link to compare view from resultset view for talos jobs

Categories

(Tree Management :: Perfherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: sabergeass)

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
wlach
: review+
Details | Review
:BenWa suggested it would be handy to have a quick link to the comparison chooser in the Talos results for a job. By clicking on it, you'd get a quick link to the compare chooser with the revision/branch as the "new" result.

This involves two things:

1. allow the specification of url parameters for the compare chooser which prefill the form with results (i.e. https://treeherder.mozilla.org/perf.html#/comparechooser?newRevision=1234&newProject=fx-team)
2. add a link to the talos panel to this view. should just need to modify this file: https://github.com/mozilla/treeherder/blob/master/ui/plugins/talos/main.html
odd, the robot is recommending this to star stuff :(

we have bug 1162705 to solve #1.  In an ideal world it would fill in the chooser and you can select "previous revision" or enter a revision from another branch, like try or m-c.
It was manually entered.
I would like to work on this if it's ok, due to the bug 1162705 is on my bug list :)
(In reply to Joel Maher (:jmaher) from comment #3)

I haven't use talos before, could you give me a link or picture shows me what's talos looks like? So I can figure out where should I put the link with. Thank you :)
this would require editing talos a slight bit, getting started with talos can be done here:
https://wiki.mozilla.org/Buildbot/Talos/Running#Running_locally_-_Source_Code

The talos stuff will not need to get signatures for this, we can just print out the direct link to the compare view.  I would print it out near the end of the run after we process results.  

The problem with compare view and local results is we are comparing results on a developer machine with different cpu/memory/processes to one of our reference machines- I see the desire for this, but I wouldn't want to go much further than generating a simple link to comparechooser.
It should not be necessary to modify talos for this. Instead, just modify the existing talos plugin for job data view to print a link to perfherder:

https://github.com/mozilla/treeherder/blob/master/ui/plugins/talos/main.html

Just print something like this at the end:

Compare this revision to a baseline on perfherder:  https://treeherder.mozilla.org/perf.html#/comparechooser?newProject={{projectName}}&newRevision={{revision}}

I believe it should be possible to retrieve the project name and revision information from the angular scope.
Attached file PR for bug 1184748
Assignee: nobody → sabergeass
Comment on attachment 8646316 [details] [review]
PR for bug 1184748

Due to Will told me he need to focus on something important issue, I decide to ask review from :Joel. Hope it's ok with you.
Attachment #8646316 - Flags: review?(jmaher)
Comment on attachment 8646316 [details] [review]
PR for bug 1184748

I'll actually take this, if that's ok. This should be a fast one. :)
Attachment #8646316 - Flags: review?(jmaher) → review?(wlachance)
Comment on attachment 8646316 [details] [review]
PR for bug 1184748

This is perfect except for the text! Thanks for doing this. :)
Attachment #8646316 - Flags: review?(wlachance) → review-
Comment on attachment 8646316 [details] [review]
PR for bug 1184748

my pleasure :)
Attachment #8646316 - Flags: review- → review?(wlachance)
Commits pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/e8f23db660a9dc4d2da7b3750853a52853cf49ab
Bug 1184748 - Link to compare view from resultset view for talos jobs

https://github.com/mozilla/treeherder/commit/afe04d009cad641509ef340266ccc35f0de1baf6
Merge pull request #856 from MikeLing/bugfix-1184748

Bug 1184748 - Link to compare view from resultset view for talos jobs
Comment on attachment 8646316 [details] [review]
PR for bug 1184748

Merged, thank you!
Attachment #8646316 - Flags: review?(wlachance) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: