Open Bug 1453819 Opened 2 years ago Updated 1 year ago

Make a ./mach command to playback mitmproxy recordings

Categories

(Testing :: Raptor, enhancement, P3)

Version 3
enhancement

Tracking

(Not tracked)

People

(Reporter: rwood, Unassigned)

Details

I was working with :bholley earlier on IRC so he could get mitmproxy up and running locally, to playback the talos tp6 pagesets for some debugging (but outside of talos). Needless to say, it is not fun.

Ideally we should add a './mach mitmproxy' command or similar, that will install mitmproxy locally (same as local talos tp6 run does) but will startump the mitmproxy tool and serve out the specified playback file.

Then you could start Firefox and set the proxy and load the URL all manually and debug however you like.
For posterity, the current way to do this is:

(1) set up the environment by running ./mach talos-test --stuite tp6-e10s
(2) Something like the following, noting the quotes:

bholley@slice /files/mozilla/mc/x/testing/talos/talos/mitmproxy (slice_x) $ /files/mozilla/mc/x/testing/talos/talos/mitmproxy/mitmdump -k -s "/files/mozilla/mc/x/testing/talos/talos/mitmproxy/alternate-server-replay.py /files/mozilla/mc/x/testing/talos/talos/mitmproxy/mitmproxy-recording-google.mp /files/mozilla/mc/x/testing/talos/talos/mitmproxy/mitmproxy-recording-youtube.mp /files/mozilla/mc/x/testing/talos/talos/mitmproxy/mitmproxy-recording-amazon.mp /files/mozilla/mc/x/testing/talos/talos/mitmproxy/mitmproxy-recording-facebook.mp"
I am thinking something like:
./mach talos-setup -a tp6

then if we have other tests that require specific setup, it could be handled in the same logic.

of course setting up the profile properly for a local build of Firefox might be tricky (prefs, env, certificates)
Component: Talos → Raptor
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.