Closed
Bug 1375341
Opened 8 years ago
Closed 8 years ago
Add support for ASan LeakSanitizer bug suggestions
Categories
(Tree Management :: Treeherder: Data Ingestion, enhancement, P2)
Tree Management
Treeherder: Data Ingestion
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: philor, Assigned: KWierso)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
ASan (LSan, let's call the whole thing off) leak messages are of the form "TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Object1, Object2, Object3".
For an astonishingly long time, we apparently got away with (if you ignore massive misstarring) treating that as a failure in the test with the filename LeakSanitizer, and suggesting every open bug in that test filename.
Then recently we got a rash of new leaks, which have driven us up well over 20 kw:intermittent-failure LeakSanitzer results, so now they all have the suggestion "Exceeded max (20) bug suggestions, most of which are likely false positives."
For non-LSan, leak failure messages are of the form "leakcheck | .*\d+ bytes leaked (Object-1, Object-2, Object-3, ...)" and we have a regex to make anything matching \d+ bytes leaked \(.+\) search for the stuff in the parens in https://github.com/mozilla/treeherder/blob/37cf7fa970a0d641b4b6cae58b123db85e67ec52/treeherder/model/error_summary.py#L107.
We can't exactly do that, since that's already a bit sketchy, not checking for the filename leakcheck before matching, and matching any summary including "leak at" would be far too sketchy, but in the same neighborhood we could reasonably check for test_name_or_path == "LeakSanitizer" and then set search_term to a match on leak at (.+).
Comment 1•8 years ago
|
||
Thank you for filing :-)
Adjusting summary, since this isn't a Treeherder regression, but a case of "someone added a new format test which requires additional special-casing, but a Treeherder bug wasn't filed".
For whomever fixes this, the regex here needs to be updated:
https://github.com/mozilla/treeherder/blob/dac80b1fa492481cf2d31c83d8ff0c0a3113f56a/treeherder/model/error_summary.py#L13
I'd update the comment here:
https://github.com/mozilla/treeherder/blob/dac80b1fa492481cf2d31c83d8ff0c0a3113f56a/treeherder/model/error_summary.py#L106-L107
And then add a testcase here:
https://github.com/mozilla/treeherder/blob/dac80b1fa492481cf2d31c83d8ff0c0a3113f56a/tests/model/test_error_summary.py#L85-L104
Blocks: LSan
Component: Treeherder → Treeherder: Data Ingestion
Priority: -- → P2
Summary: Make ASan LeakSantizer bug suggestions work again → Add support for ASan LeakSantizer bug suggestions
Comment 2•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → wkocher
Assignee | ||
Comment 3•8 years ago
|
||
Comment on attachment 8880280 [details] [review]
[treeherder] KWierso:lsanfix > mozilla:master
How about this?
Attachment #8880280 -
Flags: review?(emorley)
Comment 4•8 years ago
|
||
Comment on attachment 8880280 [details] [review]
[treeherder] KWierso:lsanfix > mozilla:master
The tests are failing. I think the check should be built into the existing one, rather than adding an extra conditional after the fallback mechanism.
Attachment #8880280 -
Flags: review?(emorley) → review-
Comment 5•8 years ago
|
||
(In reply to Ed Morley [:emorley] from comment #4)
> The tests are failing.
Sorry this part is due to breakage caused by Travis's rollout yesterday, that didn't appear when testing (they didn't provide a way to test the container builds, only the sudo-enabled builds), for which I've filed:
https://github.com/travis-ci/travis-ci/issues/7951
Assignee | ||
Comment 6•8 years ago
|
||
Comment on attachment 8880280 [details] [review]
[treeherder] KWierso:lsanfix > mozilla:master
Moved it up as requested.
Attachment #8880280 -
Flags: review- → review?(emorley)
Comment 7•8 years ago
|
||
Comment on attachment 8880280 [details] [review]
[treeherder] KWierso:lsanfix > mozilla:master
Ah the new regex needs to be built into the old one, not moved higher up the file :-)
(In reply to Ed Morley [:emorley] from comment #4)
> I think the check should be built into the existing one
Attachment #8880280 -
Flags: review?(emorley) → review-
Updated•8 years ago
|
Summary: Add support for ASan LeakSantizer bug suggestions → Add support for ASan LeakSanitizer bug suggestions
Assignee | ||
Updated•8 years ago
|
Attachment #8880280 -
Flags: review- → review?(emorley)
Comment 8•8 years ago
|
||
Comment on attachment 8880280 [details] [review]
[treeherder] KWierso:lsanfix > mozilla:master
Many thanks!
Attachment #8880280 -
Flags: review?(emorley) → review+
Comment 9•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/3e9e7443cb021ab5e92bb7c0cda98e080a17a834
Bug 1375341 - Add support for leaksanitizer errors (#2587) r=emorley
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•