Closed Bug 1115904 Opened 10 years ago Closed 9 years ago

Support embedding the results of a push (so BugzillaJS can display inline Try results)

Categories

(Tree Management :: Treeherder, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rik, Assigned: mdoglio)

References

Details

(Keywords: regression)

Attachments

(2 files)

BugzillaJS currently embeds Try results in an iframe whenever someone includes a link to TBPL. It would be nice to have inline treeherder results too but it seems we cannot do it at the moment. See the Github issue with more details.
FWIW, this issue is why I currently do not use Treeherder for Try results at all.
There are two ways we could go about this:

1) Try something similar to what was done with TBPL: add additional URL params to hide UI elements to make it possible to just embed the whole Treeherder page in an iframe. We're not far from being able to do this actually - on the toolbar we already have a "collapse all revisions" option, we could add a URL param for that. The toolbars don't wrap brilliantly at a small screen width & I think the perf is worse than TBPL, but may work.

2) Create a standalone widget for embedding.

Either way, I think it's unlikely we'll have time to look at this bug before TBPL is end of lifed, since we have quite a backlog at the moment, and I think it's hard to justify prioritising an unofficial extension workflow, when Treeherder does have an API that third party tools could consume themselves (though in this case, I agree it makes sense to re-use Treeherder's UI components where possible).

That said, we'll happily accept patches if you have a chance to take a look at this yourselves in the meantime?

Source is at https://github.com/mozilla/treeherder-ui/
Keywords: regression
Priority: -- → P4
Summary: Support embedding of treeherder results for BugzillaJS → Support embedding the results of a push (so BugzillaJS can display inline Try results)
I'm probably going to work on something like 2) this week for mozreview.
Assignee: nobody → mdoglio
Status: NEW → ASSIGNED
Great :-)
Attachment #8552664 - Flags: review?(cdawson)
Attachment 8552664 [details] is a first attempt to provide such a widget. It's not as nice as the job count bar on treeherder-ui. Also, I haven't translated the job results to their more human-friendly counterpart. This is basically just a proof of concept, but it's still better than nothing I suppose :)
Attached image widget_screenshot.jpg
Mauro, that looks excellent! Thank you for you taking this on!

There are two things I'd love to see added:

- I can't tell whether that summary tells you whether tests are still running. I may just be missing it, but if not, is it possible to indicate that somehow?

- I'd love to be able to view a list of the failures directly in the widget, so that I could click directly on each failure to bring it up in Treeherder and be able to view the log. Frequently there are many failures that are unrelated intermittent oranges and are irrelevant, so being able to see the list of failures directly in the widget would make it much easier to tell at a glance whether the patch needs more work or is ready to go.
:seth pending and running will eventually show up, I was just unlucky when I picked that push as an example :-)
I think your second request is doable, but I would prefer to defer such a list to treeherder.
I could make each of those states a link to treeherder with only those jobs visible. Something like  https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=5e6e959f0043&filter-resultStatus=testfailed
(In reply to Mauro Doglio [:mdoglio] from comment #9)
> :seth pending and running will eventually show up, I was just unlucky when I
> picked that push as an example :-)

Nice!

> I could make each of those states a link to treeherder with only those jobs
> visible.

That definitely sounds like it'd be very useful, whether we had the separate list of failures or not!
Attachment #8552664 - Flags: review?(cdawson) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
From the commit, it seems we should point the iframe to https://treeherder.mozilla.org/resultset-status/<repository>/<revision>/. I haven't used treeherder though so I'm not sure what URL people will put in bugzilla comments. Anyone has an example?
I was looking for an example of this just now, so might as well paste it here:
https://treeherder.mozilla.org/embed/resultset-status/mozilla-central/cf1060d8ce9f/

(The URL in comment 12 is broken)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: