Closed Bug 1236378 Opened 10 years ago Closed 10 years ago

Test fails, but does not specify which test, only "Tests exited with return code 2: harness failures"

Categories

(Testing Graveyard :: JSMarionette, defect)

34 Branch
defect
Not set
normal

Tracking

(feature-b2g:2.6+)

RESOLVED FIXED
feature-b2g 2.6+

People

(Reporter: mikehenrty, Assigned: aus)

References

Details

(Whiteboard: [MJS] [CI])

Attachments

(1 file)

We have been seeing test failures on treeherder where the failure is not reported in the Failure Summary, and so the correct test file cannot be associated with the corresponding intermittent bug. Many of these failures get wrongly associated to bug 1174901. Looking at one of these particular failures [1], it seems that the screenshot base64 output gets intermingled with the stacktrace. I wonder if that has something to do with it. https://treeherder.mozilla.org/logviewer.html#?job_id=2988639&repo=mozilla-central
Certainly is in that case, since the end of the first chunk of screenshot is "TEST-UNEXPECTED-FAIL | apps/system/test/marionette/browser_video_test.js | Video Confirm video playback" which would be a perfectly starrable if insufficiently precise failure message if it was at the start of a line instead of jammed into the end, and also for crashes like https://treeherder.mozilla.org/logviewer.html#?job_id=19168072&repo=mozilla-inbound though there there's also the subsequent failure to run stackwalk. So at least three dependent bugs: the screenshot shouldn't be intermingled with other output; timeouts should say that they timed out and crashes should say they crashed in the TEST-UNEXPECTED-FAIL line; crashes need stacks.
Thanks for the info philor. The crashes problem should be fixed permanently by bug 1175116. I'll make that block bug 1174901 as well.
Going to try and figure out what's going on here.
Assignee: nobody → aus
Status: NEW → ASSIGNED
feature-b2g: --- → 2.6+
Whiteboard: [MJS]
OK, here's the deal with what's happening. We receive standard output from different processes effectively and we are placing them into the same aggregate standard output, which is what gets logged. The issue here is that when we're processing standard output, it won't actually write out everything to the standard output of process A in one go, especially in the case of the screenshot, while other complete lines get written to the standard output of process B. Processing standard output is done via events currently that are emitted from the child processes and aggregated in a single listening point. I think that it is reasonable to assume that we should *wait* before outputting standard output from process A until we receive \n in the stream and only output to \n if we don't encounter more but we still have data left to display or the process exits. As an additional, possibly useless, guard we could also timeout after a few seconds and if we have data left to display, display it at that time.
Comment on attachment 8704834 [details] [review] [gaia] nullaus:bug1236378 > mozilla-b2g:master Looks to be outputting as normal and the try run is green. I'd like to commit this so we can get as much data as possible before the end of the week.
Attachment #8704834 - Flags: review?(gaye)
Comment on attachment 8704834 [details] [review] [gaia] nullaus:bug1236378 > mozilla-b2g:master LGTM with one very small nit. Nice!
Attachment #8704834 - Flags: review?(gaye) → review+
Commit (master): https://github.com/mozilla-b2g/gaia/commit/cf7320010177e7b9489615d27d742e805204f09b I'm leaving this open until we get more data back to see if we've fixed the specific root problem correctly.
Whiteboard: [MJS] → [MJS] [CI]
The root issue where we were breaking the logs and subsequently starring issues to the wrong bugs is now resolved, deployed and verified. \o/!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Removing intermittent keyword so it stops showing up on treeherder.
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: