Closed
Bug 1302224
Opened 9 years ago
Closed 9 years ago
Raw log links broken
Categories
(Tree Management :: Treeherder, defect)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bzbarsky, Assigned: wlach)
References
Details
Attachments
(2 files)
The "open raw log" link on https://treeherder.mozilla.org/logviewer.html#?repo=mozilla-inbound&job_id=34864667#L11783 doesn't work: it just opens up https://treeherder.mozilla.org/logviewer.html which then says there is no such job (because it wasn't handed a job id).
The DOM looks like this:
<a title="Open the raw log in a new window" target="_blank" href="">
stuff here
</a>
Note the not-so-great href value.
| Reporter | ||
Updated•9 years ago
|
Summary: Raw log links brooken → Raw log links broken
For some additional information for whoever looks at this:
When the log viewer page loads, there's a network request for https://treeherder.mozilla.org/api/project/mozilla-inbound/jobs/34864667/ and in the response, I see:
{
logs: {
0: {
url: "https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-inbound-macosx64-debug/1472466570/mozilla-inbound_yosemite_r7-debug_test-mochitest-e10s-browser-chrome-7-bm135-tests1-macosx-build233.txt.gz"
}
}
}
Which IS the correct URL for the raw log, as shown in Treeherder's main UI for that job: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=6a5768dbae15533e940e98b650e2b9de449f19c3&selectedJob=34864667
The link's supposed to get parsed in here: https://github.com/mozilla/treeherder/blob/f0105d47f5cd72cbb8742025567c2ca17463f73e/ui/logviewer.html#L52
No clue why it isn't.
| Assignee | ||
Comment 3•9 years ago
|
||
Fallout from bug 1258861, I'll fix. We no longer use the text log artifact here.
Assignee: nobody → wlachance
Blocks: 1258861
Comment 4•9 years ago
|
||
| Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8790441 [details] [review]
[treeherder] wlach:1302224 > mozilla:master
Sorry, we should have caught this earlier. The fix is simple and has already been deployed to production as a hotfix.
Attachment #8790441 -
Flags: review?(wkocher)
Comment on attachment 8790441 [details] [review]
[treeherder] wlach:1302224 > mozilla:master
Looks like what I would do.
Attachment #8790441 -
Flags: review?(wkocher) → review+
Comment 7•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/303007d9ad119fba8113b0660168ca3dad64a04b
Bug 1302224 - Fix link to raw log in logviewer (#1845)
| Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 8•9 years ago
|
||
Is this deployed? Because I'm still seeing the same broken behavior...
Flags: needinfo?(wlachance)
I'm almost positive this was deployed to production, but I still see the broken behavior with the link from comment 0 (and more recent failures, if jobs needed to be ingested after this was deployed), too...
But if I run ./web-server.js locally with the tip of the master branch, it works for me.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 10•9 years ago
|
||
Hmm, yes, still seems to reproducible. Weird, my fix work locally. Investigating...
Flags: needinfo?(wlachance)
Comment 11•9 years ago
|
||
| Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8791204 [details] [review]
[treeherder] wlach:1302224-2 > mozilla:master
There was a race between downloading the job information and rendering the template, because I added an "optimization" to not re-render the link on a digest cycle. In practice, the time taken to re-render the template is trivial.
Lesson learned: only use the "::" syntax where you really need it, and be careful about follow on effects.
I've applied the change as a hotfix to production, but I'll file this for review all the same. :)
Attachment #8791204 -
Flags: review?(wkocher)
Comment on attachment 8791204 [details] [review]
[treeherder] wlach:1302224-2 > mozilla:master
rs=me
Attachment #8791204 -
Flags: review?(wkocher) → review+
Comment 14•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/2b65fa5ee474f7e90e86f972b463129032c96510
Bug 1302224 - Make sure raw log link in logviewer works (#1850)
We need to update the template value on angular digest cycles, because
we can't count on the "raw log url" being available when we first render the
template (the job may still be loading).
| Assignee | ||
Comment 15•9 years ago
|
||
Hopefully this is really fixed now.
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Component: Treeherder: Log Viewer → TreeHerder
You need to log in
before you can comment on or make changes to this bug.
Description
•