Closed
Bug 1511029
Opened 6 years ago
Closed 6 years ago
Mitmproxy alternate-server-replay returns last found request ignoring match algorithm
Categories
(Testing :: Raptor, enhancement)
Tracking
(firefox66 fixed)
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: Bebe, Assigned: Bebe)
References
Details
Attachments
(2 files)
https://searchfox.org/mozilla-central/source/testing/raptor/raptor/playback/alternate-server-replay.py#154
We generate the best match for the current request and return the last request in the list (candidate_flow)
Because of this we don't send the correct response and the site is not loading properly.
Assignee | ||
Comment 1•6 years ago
|
||
Mitmproxy alternate-server-replay returns last found request ignoring match algorithm
Comment 2•6 years ago
|
||
Originally the alternate-server-replay script was developed by dev (:bsmedberg, no longer at Moz). I don't feel qualified to review any changes to this script; I prefer someone in development have a look.
:acreskey, would you be able to review this change? I would prefer dev approve any changes to this. Thanks! :)
Flags: needinfo?(acreskey)
Assignee | ||
Comment 3•6 years ago
|
||
try build to see the impact of this change:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c8818c9b967dbb58d87ac02a7a090e981b8f316b
Comment 4•6 years ago
|
||
:Bebe That looks like a good find (the algorithm returning the last item regardless of the match).
Can you tell me the scenario where this was failing? i.e. which test?
Flags: needinfo?(acreskey)
Assignee | ||
Comment 5•6 years ago
|
||
the best example of this is when trying to record wikipedia
with the current code when doing replay we see a strange looking page without any css
When updating the code and returning the correct find of the candidate_flow we get the normal wiki page.
To replay I used: mitmdump -k -s "alternate-server-replay-2.0.2.py wiki.mp"
Find the recording attached
Comment 7•6 years ago
|
||
:Bebe Good stuff, thanks.
Do you think this is related to the following issue?
https://bugzilla.mozilla.org/show_bug.cgi?id=1509835
I did try your patch but it didn't fix it for me.
Flags: needinfo?(acreskey)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → fstrugariu
Assignee | ||
Comment 8•6 years ago
|
||
:Andrew is there anything else here?
I found that this is blocking some other recordings
No longer blocks: 1511341
Flags: needinfo?(acreskey)
Comment 9•6 years ago
|
||
:bebe I'm good with the change, but I was of the understanding that it was breaking other sites?
Flags: needinfo?(acreskey)
Assignee | ||
Comment 10•6 years ago
|
||
I created a try push contining this bug and the screenshots bug to see if there are any issues with the change
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ab08ca8f43f1a67cac5f1fe638db027cede97b08
Assignee | ||
Comment 11•6 years ago
|
||
From what I see all the tests work fine
:Andrew :rwood :davehunt wohat would be the next step for this?
Flags: needinfo?(rwood)
Flags: needinfo?(dave.hunt)
Comment 12•6 years ago
|
||
I am fine with landing this as long as :acreskey and :davehunt are, and as long as you (:bebe) have verified that all the pages are still loading correctly on all the platforms on both Firefox and Chromium.
Please rebase to the latest, and push to try again and also include the tp6 jobs on Chromium. Then I'd suggest putting the patch up for formal r? by acreskey. Thanks :bebe!
Flags: needinfo?(rwood)
Comment 13•6 years ago
|
||
Good with the change as well -- it makes sense.
Assignee | ||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Pushed by fstrugariu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d73d20bd962a
Mitmproxy alternate-server-replay returns last found request ignoring match algorithm r=acreskey
Updated•6 years ago
|
Flags: needinfo?(dave.hunt)
Comment 16•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•