Closed
Bug 1351197
Opened 9 years ago
Closed 8 years ago
Permaorange on Android in test_TelemetryModules.js on beta and release
Categories
(Toolkit :: Telemetry, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla60
| Tracking | Status | |
|---|---|---|
| firefox-esr45 | --- | unaffected |
| firefox52 | --- | unaffected |
| firefox-esr52 | --- | unaffected |
| firefox53 | --- | unaffected |
| firefox54 | --- | disabled |
| firefox55 | --- | disabled |
| firefox60 | --- | fixed |
People
(Reporter: philor, Assigned: marco)
References
Details
(Whiteboard: [measurement:client])
Attachments
(2 files, 3 obsolete files)
|
2.04 KB,
patch
|
gfritzsche
:
review+
|
Details | Diff | Splinter Review |
|
1.00 KB,
patch
|
gfritzsche
:
review+
|
Details | Diff | Splinter Review |
According to https://treeherder.mozilla.org/logviewer.html#?job_id=86815685&repo=try from https://treeherder.mozilla.org/#/jobs?repo=try&revision=195bab8a8a1ae8cdc003b96e1adcad6e6d3abeab&selectedJob=86815685 (and if you're trying to reproduce it in your own try push, you need b4542f2dcc7a to get Android to build, along with e433001d0bfb 1c141cd67941 0b8e92972ed1 to turn aurora into beta), when Gecko 54 merges from aurora to beta in three weeks, test_TelemetryModules.js is going to fail by trying to hit the network (at least, that's the usual meaning of crashing in mozilla::net::nsSocketTransport::InitiateSocket, though more generous suites than xpcshell give you a message about how hitting the network is prohibited and that's why you're crashing).
[Tracking Requested - why for this release]: merge permaorange, closed tree, sadness.
Comment 1•9 years ago
|
||
Marco, can you look into this if I don't manage to before you get back?
Flags: needinfo?(mcastelluccio)
Priority: -- → P1
Whiteboard: [measurement:client]
Updated•9 years ago
|
Priority: P1 → P2
| Assignee | ||
Comment 2•9 years ago
|
||
This patch is setting the preferences for using a local server instead of a remote one earlier.
I'm not sure how to push this to try.
Assignee: nobody → mcastelluccio
Status: NEW → ASSIGNED
Flags: needinfo?(mcastelluccio)
| Reporter | ||
Comment 3•9 years ago
|
||
| Assignee | ||
Comment 4•9 years ago
|
||
Still failing :(
| Assignee | ||
Comment 5•9 years ago
|
||
I've noticed the error:
> INFO - "CONSOLE_MESSAGE: (error) [JavaScript Error: "NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized" {file: "resource://gre/modules/AddonManager.jsm" line: 147}]".
I'm not sure it has anything to do with the failure, but let's try initializing the AddonManager.
Phil, could you send this patch to try? Thanks!
Attachment #8856525 -
Attachment is obsolete: true
| Reporter | ||
Comment 6•9 years ago
|
||
| Assignee | ||
Comment 7•9 years ago
|
||
I have no idea what's going on then; is there a way to tell which URL it was trying to connect to when it crashed?
| Reporter | ||
Comment 8•9 years ago
|
||
Probably, since mochitests actually report what URL it is, but I don't have any idea who you could even talk to about how to persuade the xpcshell harness to report it, and now we're out of time for beta-54.
Luckily, both toolkit/components/telemetry/tests/unit/xpcshell.ini and I know how to disable tests on Android.
| Reporter | ||
Comment 9•9 years ago
|
||
| bugherder uplift | ||
| Reporter | ||
Updated•9 years ago
|
tracking-firefox54:
? → ---
| Reporter | ||
Updated•9 years ago
|
Summary: Permaorange on Android in test_TelemetryModules.js when Gecko 54 merges to beta on 2017-04-17 → Permaorange on Android in test_TelemetryModules.js when Gecko 55 merges to beta on 2017-06-13
| Reporter | ||
Comment 10•9 years ago
|
||
Well, duh, if I thought for myself instead of copy-pasting, I'd realize that I also know how to disable something only on release_or_beta so I can do it in m-c and not have to do it at the last second on a release branch.
Keywords: leave-open
Comment 11•9 years ago
|
||
Pushed by philringnalda@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/79cfc96ccb77
Disable test_TelemetryModules.js on Android on release or beta, where it crashes
Comment 12•9 years ago
|
||
| bugherder | ||
| Reporter | ||
Comment 13•9 years ago
|
||
Keeps making me nervous when I see an open bug talking about permaorange next week.
Summary: Permaorange on Android in test_TelemetryModules.js when Gecko 55 merges to beta on 2017-06-13 → Permaorange on Android in test_TelemetryModules.js on beta and release
| Assignee | ||
Comment 15•9 years ago
|
||
Is there a way to know where we are attempting to connect? I'm puzzled that this would only fail in release or beta.
Updated•9 years ago
|
Flags: needinfo?(alessio.placitelli)
| Assignee | ||
Comment 16•9 years ago
|
||
Phil, could you push to try again? Apparently there is a way to get the URL in xpcshell too (see bug 1385295 comment 1).
Updated•9 years ago
|
Flags: needinfo?(alessio.placitelli) → needinfo?(philringnalda)
| Reporter | ||
Comment 17•9 years ago
|
||
Sorry, I shouldn't have left you dependent on me pushing to try for you.
The instructions for doing it are in https://wiki.mozilla.org/Sheriffing/Uplift-Sim
Flags: needinfo?(philringnalda)
| Assignee | ||
Comment 18•9 years ago
|
||
It was green in my try build (which contains the two changesets to simulate beta): https://treeherder.mozilla.org/#/jobs?repo=try&revision=47d169ebcd1c766b97306a6e1c2beaa9eba11e7e.
| Assignee | ||
Comment 19•9 years ago
|
||
It's failing in another try build: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1d5761fcfdec01b11cba80e147f25c8adaa8e50b.
Maybe the first one wasn't failing because it was an artifact build? Who knows.
Anyway, the URL is location.services.mozilla.com:
> 08-02 13:34:13.446 6315 6318 I Gecko : FATAL ERROR: Non-local network connections are disabled and a connection attempt to location.services.mozilla.com (52.31.166.48) was made.
> 08-02 13:34:13.446 6315 6318 I Gecko : You should only access hostnames available via the test networking proxy (if running mochitests) or from a test-specific httpd.js server (if running xpcshell tests). Browser services should be disabled or redirected to a local server.
> 08-02 13:34:13.446 6315 6318 F MOZ_CRASH: Hit MOZ_CRASH(Attempting to connect to non-local address!) at /home/worker/workspace/build/src/netwerk/base/nsSocketTransport2.cpp:1328
I've tried to change a few preferences related to location in the following try builds:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a728f7002c8159b732ecf1d9d2e3646f22f2b628
https://treeherder.mozilla.org/#/jobs?repo=try&revision=42a58403832c8ca5be62868fce6f91e54481e538
Let's see if this fixes the problem.
| Assignee | ||
Comment 20•9 years ago
|
||
It did fix the problem, but now there's a new connection to blocklists.settings.services.mozilla.com.
I've tried to change the prefernce related to the blocklist service in the following try build:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b806c0b14818509660893f331c924992830658e7
Let's see if this fixes the problem.
| Assignee | ||
Comment 21•9 years ago
|
||
firefox.settings.services.mozilla.com
New try build: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7a2a18dbc899d56ddbca02a1a1a0a5200b12c4b3.
| Assignee | ||
Comment 22•9 years ago
|
||
After getting rid of firefox.settings.services.mozilla.com, the test starts to time out instead: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7a2a18dbc899d56ddbca02a1a1a0a5200b12c4b3.
| Assignee | ||
Comment 23•9 years ago
|
||
This patch disabled the non-local connections and fixes the crash during the test, but the test is still timing out.
I won't have time to look into the timeout soon.
Updated•8 years ago
|
Flags: needinfo?(mcastelluccio)
Comment 24•8 years ago
|
||
Marco, are you looking into this?
This has been sitting for a while.
Flags: needinfo?(mcastelluccio)
Priority: P2 → P3
| Assignee | ||
Comment 25•8 years ago
|
||
No, I haven't looked into it since my last patch to disable non-local connections.
I can't think of any reason why the test would fail on Android only on release/beta, but at least it is not crashing, only timing out.
Flags: needinfo?(mcastelluccio)
Comment 26•8 years ago
|
||
We should find some option here and not let it sit.
Is this code needed on Android?
If not can you disable it there & the test?
Flags: needinfo?(mcastelluccio)
| Assignee | ||
Comment 27•8 years ago
|
||
(In reply to Georg Fritzsche [:gfritzsche] from comment #26)
> We should find some option here and not let it sit.
> Is this code needed on Android?
> If not can you disable it there & the test?
I think the code is less useful on Android than on other platforms.
I guess it might still be useful in some cases, but I don't have enough Android experience to debug this erratic failure.
Flags: needinfo?(mcastelluccio)
Attachment #8942348 -
Flags: review?(gfritzsche)
Updated•8 years ago
|
Attachment #8942348 -
Flags: review?(gfritzsche) → review+
Updated•8 years ago
|
Priority: P3 → P1
Updated•8 years ago
|
Keywords: leave-open
| Assignee | ||
Comment 28•8 years ago
|
||
I've tried out of curiosity and the test doesn't seem to be failing anymore on Beta, so maybe we don't have to disable the feature after all.
I will try on Release next.
| Assignee | ||
Comment 29•8 years ago
|
||
It is passing on Release too:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c52a3aa2302376a45fec18d19b0c0879d4ddc2a4
https://treeherder.mozilla.org/#/jobs?repo=try&revision=88d647495794848b700e34b1f8fab901e6ed09c8
So I guess we can re-enable it and not completely disable the feature. Your choice.
Attachment #8856762 -
Attachment is obsolete: true
Attachment #8893592 -
Attachment is obsolete: true
Attachment #8946298 -
Flags: review?(gfritzsche)
Comment 30•8 years ago
|
||
Comment on attachment 8946298 [details] [diff] [review]
Re-enable test
Review of attachment 8946298 [details] [diff] [review]:
-----------------------------------------------------------------
If it's passing i'm fine with it.
Attachment #8946298 -
Flags: review?(gfritzsche) → review+
Comment 31•8 years ago
|
||
Pushed by mcastelluccio@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bbeba6852662
Re-enable TelemetryModules test on Android on Release and Beta. r=gfritzsche
Comment 32•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•