Error summary reports test groups as OK when they had LeakSanitizer or ThreadSanitizer failures
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
People
(Reporter: marco, Unassigned)
References
Details
ErrorSummaryFormatter has no handler for the lsan_leak and tsan_error structured log actions, so they are dropped from the error summary and never affect the status of the group they happened in. Tasks that fail because of a LeakSanitizer leak or a ThreadSanitizer report end up with an error summary where every group is OK, so tools that rely on the group results to classify or retrigger failures see a failed task without any failing group.
Examples from the last two weeks:
- LeakSanitizer, mochitest:
OWkrMyP0R8Wf8BTpuhK47A(mochitest-browser-chrome on mozilla-beta). The leaks are scoped tobrowser/extensions/webcompat/tests/browser/browser_ua_helpers.js,browser_special_content_scripts.jsandbrowser.toml, but all 11 groups areOK. The only trace in the error summary is a list of group-lessloglines. - LeakSanitizer, wpt:
AfmdabNlTumuNyEFVzDDqA(web-platform-tests on mozilla-esr153) andUQSYmqNtQKKhdOOB8paxHA(web-platform-tests-wdspec on autoland). The leaks are reported right after the browser for the/mediasessionand/webdriver/tests/bidi/network/fetch_errorgroups exits, with that group as their scope, but the error summary has no trace of them and all groups areOK. - ThreadSanitizer, mochitest:
WE2lNUz5TEmqIeWzBzVV1A(mochitest-media on autoland). A data race report aborted a content process whiletest_enumerateDevices_legacy.htmlwas running. The harness reportedFailed: 0and all groups areOK; the task only fails because mozharness matches "A content process crashed".
In all these cases the harness already knows which group the report belongs to: the browser is restarted at group boundaries, and the actions carry a scope (the group, the manifest or the test that was running). The group should be marked as failed, as it is for crashes. Leaks with an allowed_match (expected leaks) should not affect the group.
ThreadSanitizer also reports deadly signals (e.g. SEGV), which are crashes that tests may expect, such as deliberate tab crashes; those are better left to crash handling. UndefinedBehaviorSanitizer reports (ubsan_error) are not fatal and do not fail the task, so marking groups as failed for them would make the error summary disagree with the task result.
| Reporter | ||
Comment 1•26 days ago
|
||
Florian, is it on purpose that UndefinedBehaviorSanitizer reports don't fail tasks?
Comment 2•26 days ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #1)
Florian, is it on purpose that UndefinedBehaviorSanitizer reports don't fail tasks?
I would guess no, but I know almost nothing about them.
Description
•