Closed
Bug 781392
Opened 12 years ago
Closed 9 years ago
[B2G] http://mochi.test is unreachable in mochitests when run OOP on the Otoro
Categories
(Core :: Networking, defect, P1)
Tracking
()
People
(Reporter: onecyrenus, Unassigned)
References
Details
(Whiteboard: [LOE:M])
Mochitests running on the device try to connect to http://mochi.test:8888/
and inside the user.js a pref creates a match between mochi.test and the actual mochitest server
......
user_pref("network.proxy.autoconfig_url", "data:text/plain,function FindProxyForURL(url, host){
....
return 'PROXY 192.168.2.10:8888'; if (isHttps || isWebSocket || isWebSocketSSL) return 'PROXY 192.168.2.10:4443'; return 'DIRECT';}");
Now the problem is the web server is running but the device is unable to connect to 192.168.2.10:8888. Now I believe that is because this pref is not being looked at on b2g and things have been diverted elsewhere.
This needs to work or we cannot run mochitests on device.
Reporter | ||
Comment 1•12 years ago
|
||
This problem may be related to mochitests running out of process, wheras before they were being run in process.
Reporter | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Comment 2•12 years ago
|
||
To be clear, this bug only affects the ability to manually run mochitests on the otoro, and does not impact CI.
Summary: http://mochi.test not able to be reached on mochitest run → [B2G] http://mochi.test not able to be reached on mochitest run on Otoro
Comment 3•12 years ago
|
||
Geo says while this is a nice to have, we shouldn't block on it.
blocking-basecamp: ? → -
Comment 4•12 years ago
|
||
A little more detail about this:
When mochitest runs (if you're not running just a single test), it loads the testrunner in the main document, and loads the tests themselves in an iframe. Both are hosted at the http://mochi.test:8888 domain.
For some reason on the Otoro device, the main page (containing the testrunner) loads OK. But the iframe containing the test does not, it shows "mochi.test could not be found". This is odd since the parent frame successfully loaded the testrunner from the same domain.
This is the log output:
0 INFO Running tests 1-2/409
1 INFO SimpleTest START
2 INFO TEST-START | /tests/layout/base/tests/test_after_paint_pref.html
Network Worker: received message: {"cmd":"setDefaultRouteAndDNS","ifname":"wlan0","oldIfname":null}
Any chance that the framework breakage is indicative of a greater problem with more impact?
Comment 6•12 years ago
|
||
This has something to do with the fact that we're now running mochitests OOP. If you remove all of the extra prefs here except the first one:
http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtestsb2g.py#366
...then mochitest works OK on the otoro again. This has the effect of making mochitest run in the parent process.
Updated•12 years ago
|
Summary: [B2G] http://mochi.test not able to be reached on mochitest run on Otoro → [B2G] http://mochi.test is unreachable in mochitests when run OOP on the Otoro
Updated•12 years ago
|
Blocks: b2g-mochitests
Reporter | ||
Comment 7•12 years ago
|
||
Any movement here ?
Comment 8•12 years ago
|
||
Renoming - https://bugzilla.mozilla.org/show_bug.cgi?id=771725#c8 indicates that this is the last bug blocking the mochitests on otoro device basecamp blocker.
blocking-basecamp: - → ?
Comment 9•12 years ago
|
||
Cc'ing OOP people. Chris and Dave, this bug is blocking our ability to run tests on the device. Any idea what the problem might be?
You want the folks who know the network stack.
How is the mochi.test host entry being configured? Is this perhaps related to the offline/online bug we just fixed?
Reporter | ||
Comment 11•12 years ago
|
||
Could you list the bug here ?
Thanks
Was thinking of bug 777145, but it's been backed out.
Comment 13•12 years ago
|
||
The code that sets up proxy configuration for mochitest is here:
http://mxr.mozilla.org/mozilla-central/source/build/automation.py.in#454
Comment 14•12 years ago
|
||
Blocking since it's stopping test runs on the devices.
blocking-basecamp: ? → +
Updated•12 years ago
|
Whiteboard: [WebAPI:P1]
Comment 15•12 years ago
|
||
Jason, this looks like it may be in the network layer. Can you take a look?
Assignee: nobody → jduell.mcbugs
Comment 16•12 years ago
|
||
mcmanus knows the PAC code, so may have insights here.
So this only happen on otero devices (B2G emulator works fine) on wifi. From reading the rest of the comments I think we may need device in hand to debug this--there's not much to work with.
Comment 17•12 years ago
|
||
Can we get an NSPR log here with
https://developer.mozilla.org/en-US/docs/HTTP_Logging
Use
NSPR_LOG_MODULES=timestamp,nsHttp:5,nsSocketTransport:5,nsHostResolver:5,proxy:5
(i.e. add 'proxy' to the list on the web page).
Wireshark log couldn't hurt either, but if that's a fuss we can start with just NSPR log.
So do simple PAC files work ok on the phone (i.e. not in mochitest)?
Comment 18•12 years ago
|
||
I'm hoping this is something simple but it's hard to tell yet.
Whiteboard: [WebAPI:P1] → [WebAPI:P1][LOE:M]
Comment 19•12 years ago
|
||
I've got an Otero phone set up and will investigate this after the feature freeze.
Comment 20•12 years ago
|
||
Do we know if this is happening on Unagi phones too?
Updated•12 years ago
|
Reporter | ||
Comment 21•12 years ago
|
||
Overholt need a bit more explanation as to what needs to happen here ?
Comment 22•12 years ago
|
||
Sorry, David. Was just wondering if you could answer Jason's question in comment #20. Thanks.
Reporter | ||
Comment 23•12 years ago
|
||
I think the same problem is seen on pandaboard, so this was not device specific from what we could tell.
I'll need to get a unagi device before I get a chance to verify, is there a reason why we'd imagine that the new device would be have differently ?
Both Jason / I should have environments up and ready to go which is probably where we are more blocked on at this point.
I believe this is a candidate to reverify if we know the pandaboard issue has been fixed.
@jgriffin ? any update on that front
Keywords: qawanted
Comment 24•12 years ago
|
||
We run tests on the panda without wifi, so whether or not it works on the panda doesn't necessarily tell us whether it will work on the otoro/unagi.
I'll try it on the panda, but it'll take me a day or two to get to it.
Comment 25•12 years ago
|
||
Setting needinfo to Jonathan to know if this happens on the panda boards.
Flags: needinfo?(jgriffin)
Comment 26•12 years ago
|
||
Milestoning for C2 (deadline of 12/10), as this meets the criteria of "known bugs with LOE:M".
Target Milestone: --- → B2G C2 (20nov-10dec)
Comment 27•12 years ago
|
||
No update since October. Does this really block the release?
Comment 28•12 years ago
|
||
Since we will not be running mochitests on either unagis or pandas by the release date, I'd argue it should not block the release.
Flags: needinfo?(jgriffin)
Comment 31•11 years ago
|
||
David, I think you figured this out, right?
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•