Closed Bug 1304091 Opened 10 years ago Closed 10 years ago

The /jobs/ endpoint can return incorrect additional log links

Categories

(Tree Management :: Treeherder: API, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aryx, Assigned: wlach)

References

Details

(Keywords: regression)

Attachments

(1 file)

https://treeherder.mozilla.org/logviewer.html#?repo=mozilla-beta&job_id=1621388 is for Windows XP debug W3C Web Platform Tests W3C Web Platform Tests W(6) A click on "open raw log" at the top opens https://public-artifacts.taskcluster.net/KKTJohWsTgSmVN9AexEM0g/0/public/logs/live_backing.log , a log for a jit test (which also doesn't contain the "UNEXPECTED-TIMEOUT", search for it). A correct url for the raw log is https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-beta-win32-debug/1474366156/mozilla-beta_xp_ix-debug_test-web-platform-tests-6-bm110-tests1-windows-build57.txt.gz Expected result: correct log linked
Wonder if this is fallout from bug 1302224?
Flags: needinfo?(wlachance)
Flags: needinfo?(wlachance)
Summary: structured log links to wrong raw log → structured log links to wrong raw log for wpt test
So on further inspection, I'm even more confused. It appears that this is not a taskcluster job, so why would it have a taskcluster log. I am worried there might be a problem with our job ingestion. Aryx, have you seen this type of problem before?
Flags: needinfo?(aryx.bugmail)
whimboo mentioned earlier today that he didn't find the string he was looking for in a log. Structured log: https://treeherder.mozilla.org/logviewer.html#?job_id=3598426&repo=mozilla-aurora#L3908 (ESlint) Raw log: https://public-artifacts.taskcluster.net/OMtBgF8PToqzGqsqWxOoMA/0/public/logs/live_backing.log (wpt)
Flags: needinfo?(aryx.bugmail)
(In reply to Sebastian Hengst [:aryx][:archaeopteryx] from comment #4) > whimboo mentioned earlier today that he didn't find the string he was > looking for in a log. > > Structured log: > https://treeherder.mozilla.org/logviewer.html#?job_id=3598426&repo=mozilla- > aurora#L3908 (ESlint) > Raw log: > https://public-artifacts.taskcluster.net/OMtBgF8PToqzGqsqWxOoMA/0/public/ > logs/live_backing.log (wpt) This one is similar, there are two builds-4h logs, one of which is correct, one which isn't. I'm pretty confused, the fact that we are seeing this for both buildbot and taskcluster leads me to think that the problem is in treeherder... but I honestly don't see where the problem could be occurring. Our job log ingestion code is very straightforward: https://github.com/mozilla/treeherder/blob/9d7102c/treeherder/model/derived/jobs.py#L1642 https://github.com/mozilla/treeherder/blob/9d7102c/treeherder/model/derived/jobs.py#L1457 I'd like to see some kind of audit trail about what was submitted for these jobs. This last one had a guid of `17d63b89-8bc4-41bc-bf4e-085ebd03d8b0/0`.
Comment on attachment 8793000 [details] [review] [treeherder] wlach:1304091 > mozilla:master Ok, I figured it out. Not actually that complicated: we need to filter the job log information on the job's repository, not just its project specific id. Ordinarily I would write a unit test case for this along with the fix, but it would be pretty painful to do this given our present setup. This class of error only happens because we're trying to keep two sources of data in sync, which will not be the case soon (bug 1178641). Once datasource goes away, this whole class of error shouldn't be possible.
Attachment #8793000 - Flags: review?(cdawson)
Assignee: nobody → wlachance
Ah good spot :-)
Blocks: 1273231
Component: Treeherder: Log Viewer → Treeherder: API
Summary: structured log links to wrong raw log for wpt test → The /jobs/ endpoint can return incorrect additional log links
Attachment #8793000 - Flags: review?(cdawson) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/41058d8b088875337e13eee1d3f37392c3cecc42 Bug 1304091 - For job information, don't return incorrect job log links (#1864) In the /jobs/XXXX/ endpoint, we were just keying off the job id when trying to figure out which log information to return. This could result in additional (incorrect) data being returned for the case that there were jobs with the same project specific id value in multiple repositories.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: