Closed Bug 1804300 Opened 3 years ago Closed 3 years ago

Move mitmproxy crash logging to a separate file

Categories

(Testing :: Raptor, defect, P1)

Default
defect

Tracking

(firefox110 fixed)

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: kshampur, Assigned: kshampur)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

https://bugzilla.mozilla.org/show_bug.cgi?id=1804281#c0

tests are passing and videos look correct, however looking at the logs it seems mitmproxy is crashing and re-recording the sites does not seem to help.

immediate options I can think of:

  • Reverting these tests to temporarily replay on mitm 6/7 should remove these crashlogs while we investigate. The advantage here is we already know mitm 6/7 worked here before
  • I could even introduce mitm9 binaries which seem to not have these long crash logs at all, and only restrict these 4/5 tests to replay on 9 (9.0.1 as of writing this). The benefit here is we don't need to bring back a duplicate of the old alt-serverplayback.py, which would be required for using mitm 7. And by restricting it this way, there's only going to be a slight disturbance in baselines for a few tests versus everything, when doing mitm 8 upgrades (either way, reverting this to mitm 7 will also disrupt the baseline as well)

edit looking over the tests, it seems mitm7 replaying mitm 6 recordings (netflix, instagram, fb-responsiveness) has the same error log. So it seems the temporary quickest solution here is to revert those 3 tests back to mitm 6, and wikia to mitm7.

Whiteboard: [perftest:triage]

:kshampur, what do you think about captuing and/or writing the mitmproxy output to a file? That way we could keep the same version and still have mitmproxy logging.

Flags: needinfo?(kshampur)
Whiteboard: [perftest:triage]

As discussed in triage, mitmproxy moved their logging into their own logging in version 9, so that is why we don't see the message in the regular log file but do see it in the mitmproxy.log e.g. https://firefoxci.taskcluster-artifacts.net/LheMhuOZR2qUzLbTXGtN1w/0/public/test_info/mitmproxy.log
So, the crash is still there.

Also, in favor of not going backwards, we won't reverse the mitmproxy version

So what we can do for now is write logic to capture these mitm specific error logs and output them to another file.

:sparky since mitm9 already outputs it to it's own mitmproxy.log, what do you think about using that for these specific tests?
Or would it be better to leave the binary version as is for now, and control the logging output ourself (and I guess it would probably easier to add a warning that way)

Flags: needinfo?(kshampur) → needinfo?(gmierz2)

Let's control the logging ourselves because it should be pretty easy to make this change. See here for where we start the recording: https://searchfox.org/mozilla-central/source/testing/mozbase/mozproxy/mozproxy/backends/mitm/mitm.py#376-377

Could you file a follow-up bug to look into mitm9 and get a jira ticket for it?

Flags: needinfo?(gmierz2) → needinfo?(kshampur)
Flags: needinfo?(kshampur)
Summary: Temporarily change mitmproxy version for tests creating large crash logs → Move mitmproxy crash logging to a separate file

Yep sounds good!

Assignee: nobody → kshampur
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P1
Attachment #9307657 - Attachment description: WIP: Bug 1804300 - Move mitmproxy error logging to a separate file. r?#perftest → Bug 1804300 - Move mitmproxy error logging to a separate file. r?#perftest
Attachment #9307657 - Attachment is obsolete: true

This patch moves mitmproxy specific error logging into the existing mitmproxy.log file that we use.
This should help in dealing with the 100 lines of failure limit on Treeherder e.g. bug 1804281

Attachment #9307854 - Attachment description: WIP: Bug 1804300 - Move mitmproxy error output to existing mitmproxy log. r?#perftest → Bug 1804300 - Move mitmproxy error output to existing mitmproxy log. r?#perftest
See Also: → 1805279
Pushed by kshampur@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0ae846fcd9c8 Move mitmproxy error output to existing mitmproxy log. r=perftest-reviewers,sparky
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Blocks: 1805462
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: