Closed
Bug 1251988
Opened 8 years ago
Closed 8 years ago
Add UI features to Treeherder to enable comparison of structured logs in WPT Viewer
Categories
(Tree Management :: Treeherder, defect)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: martianwars, Assigned: martianwars)
References
Details
(Keywords: meta)
Attachments
(4 files)
The Web Platform Test Viewer, which was originally a part of my Quarter of Contribution, finally covers most of the useful cases and filters. We have currently hosted it on jgraham.github.io/wptview Since this project works best when used to compare structured logs, it makes sense adding some form of integration with Treeherder's active runs. The result viewer accepts query strings and can ingest structured logs in the following format :- jgraham.github.io/wptview/#/?urls=<url1>,<run_name>;<url2>,<run_name;... An example of the same, http://jgraham.github.io/wptview/#/?urls=http:%2F%2Fmozilla-releng-blobs.s3.amazonaws.com%2Fblobs%2Fmozilla-inbound%2Fsha512%2F512fb0af73ffa1dd7417d93884b56fb05b0ed4bbb327eaa387517fce12d0ae26da44d9207ae84ea6ca56328b1a8aa431d24718ed57b5c43fe9b593d30db17294,W-1 Cameron, would it be possible to integrate this? I wouldn't mind working on this.
Assignee | ||
Updated•8 years ago
|
Keywords: meta
Summary: Add UI features to compare structured logs in WPT Viewer → Add UI features to Treeherder to enable comparison of structured logs in WPT Viewer
Comment 1•8 years ago
|
||
Is there come kind of signifier that a test job contains wptview structured logs? If so, it should be relatively straightforward to link to the jgraham.github.io url from the treeherder job's panel, see the `ui/plugins/` directory for some existing examples of this.
Assignee | ||
Comment 2•8 years ago
|
||
William, The interface accepts files of the format <something>_raw.log, which would be structured log files I suppose. It isn't specific to Web Platform Tests, though the name suggests otherwise. Also, the aim would be to **compare** files having the same set of tests rather than just add an external link on each job's panel. I'm not sure about the existing mechanisms when a job is selected, but maybe if there was a way to select one or more jobs having structured logs with the same set of tests, and a single button which opens then up in wptview it would be great! What does pinboard do?
Flags: needinfo?(wlachance)
Comment 3•8 years ago
|
||
Structured logs are signified by an artifact with the name [something]_raw.log. In the first instance I suggest we just add a link for viewing individual instances of results from these files. Since the viewer loads the file into IndexedDB it should be possible to make comparisons just by clicking multiple links and then enabling all the different logs you want to view. We can make a more complicated interface later.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → kalpeshk2011
Assignee | ||
Comment 4•8 years ago
|
||
Lots of work left, but a start nevertheless :)
Attachment #8724768 -
Flags: feedback?(wlachance)
Attachment #8724768 -
Flags: feedback?(james)
Attachment #8724768 -
Flags: feedback?(cdawson)
Comment 5•8 years ago
|
||
Comment on attachment 8724768 [details] [review] Adding wptview support lgtm!
Flags: needinfo?(wlachance)
Attachment #8724768 -
Flags: feedback?(wlachance) → feedback+
Comment 6•8 years ago
|
||
I actually get a 404 when I try that link. Maybe I'm missing something, or it changed? Is there an updated one? I agree with wlach about the angular directive. And it looks like it adds the "open" link for anything in Job Info, but I presume it'll only work for structured logs. Will need some kind of check so that it only adds for "_raw..." etc...
Assignee | ||
Comment 7•8 years ago
|
||
Comment on attachment 8724768 [details] [review] Adding wptview support @camd, the URL has changed since jgraham moved the project to Mozilla. I've updated the PR. I've added an appropriate filter. I hope it's okay now. One issue that I see is that the run name is very long. Could I get a smaller name somewhere in the data? Was thinking of doing a controller in the next PR
Flags: needinfo?(wlachance)
Flags: needinfo?(cdawson)
Attachment #8724768 -
Flags: review?(wlachance)
Attachment #8724768 -
Flags: review?(james)
Attachment #8724768 -
Flags: review?(cdawson)
Attachment #8724768 -
Flags: feedback?(james)
Attachment #8724768 -
Flags: feedback?(cdawson)
Comment 8•8 years ago
|
||
Comment on attachment 8724768 [details] [review] Adding wptview support Ok, I know we're just going for an minimal viable product here, but after trying this, I think we should try to have a better user interface here than just having a link called "Open!" next to the log interface. That's completely unclear. I think the *very least* the link should be on a separate line saying something like "View test pass/fail summary in wptview". That at least is somewhat understandable.
Flags: needinfo?(wlachance)
Flags: needinfo?(cdawson)
Attachment #8724768 -
Flags: review?(wlachance) → review-
Comment 9•8 years ago
|
||
By the way, it's not necessary to both ask for a review request and needinfo someone. The review request implies the needinfo. :)
Assignee | ||
Updated•8 years ago
|
Attachment #8724768 -
Flags: review- → review?(wlachance)
Comment 10•8 years ago
|
||
Comment on attachment 8724768 [details] [review] Adding wptview support Looks good now!
Attachment #8724768 -
Flags: review?(wlachance)
Attachment #8724768 -
Flags: review?(james)
Attachment #8724768 -
Flags: review?(cdawson)
Attachment #8724768 -
Flags: review+
Comment 11•8 years ago
|
||
Merged https://github.com/mozilla/treeherder/commit/13639885f4cacbbcc398b5af32284845310d39b6
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 12•8 years ago
|
||
So I see a small problem here. I've taken the last string as the run name while importing the log into wptview. I'll change this in another PR soon :)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 13•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8727559 -
Flags: review?(wlachance)
Updated•8 years ago
|
Attachment #8727559 -
Flags: review?(wlachance) → review+
Comment 14•8 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/3cb288dd6909db5c990e41d6c0277f5563761bcd Bug 1251988 - Adding conditions for cases where Buildername isn't last string https://github.com/mozilla/treeherder/commit/4a6a0768f8169ad70a9a854ae02e3ca4a0be8349 Merge pull request #1335 from martiansideofthemoon/raichu Bug 1251988 - Adding conditions for cases where Buildername isn't las…
Updated•8 years ago
|
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → FIXED
Comment 15•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8728952 -
Flags: review?(wlachance)
Comment 16•8 years ago
|
||
Comment on attachment 8728952 [details] [review] [treeherder] martiansideofthemoon:kakuna > mozilla:master One more minor naming nit, but this looks fine otherwise
Attachment #8728952 -
Flags: review?(wlachance)
Assignee | ||
Updated•8 years ago
|
Attachment #8728952 -
Flags: review?(wlachance)
Comment 17•8 years ago
|
||
Comment on attachment 8728952 [details] [review] [treeherder] martiansideofthemoon:kakuna > mozilla:master This doesn't work as we'd like to at the moment, it needs to behave properly when a user opens wptview again from another job. So r-'ing for now :)
Attachment #8728952 -
Flags: review?(wlachance) → review-
Assignee | ||
Comment 18•8 years ago
|
||
Attachment #8734071 -
Flags: review?(wlachance)
Updated•8 years ago
|
Attachment #8734071 -
Flags: review?(wlachance) → review+
Comment 19•8 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/df69f97eebb4ee4caf56c7c71600d16ddb950406 Bug 1251988 - Update name of <a> element for wptview https://github.com/mozilla/treeherder/commit/1b6ca587f120fd3b3102ab3633b1ad313a0d4aee Merge pull request #1365 from martiansideofthemoon/ditto Bug 1251988 - Update name of <a> element for wptview
Comment 20•7 years ago
|
||
Ping for questions in one of the PRs that is still open: https://github.com/mozilla/treeherder/pull/1345#issuecomment-230437394
Flags: needinfo?(james)
Updated•7 years ago
|
Flags: needinfo?(james)
You need to log in
before you can comment on or make changes to this bug.
Description
•