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)

54 Branch
defect

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)

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.
Marco, can you look into this if I don't manage to before you get back?
Flags: needinfo?(mcastelluccio)
Priority: -- → P1
Whiteboard: [measurement:client]
Priority: P1 → P2
Attached patch Patch (obsolete) — — Splinter Review
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)
Still failing :(
Attached patch Patch v2 (obsolete) — — Splinter Review
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
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?
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.
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
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.
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
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
Marco, can you please look into this?
Flags: needinfo?(mcastelluccio)
Is there a way to know where we are attempting to connect? I'm puzzled that this would only fail in release or beta.
Flags: needinfo?(alessio.placitelli)
Depends on: 1385295
Phil, could you push to try again? Apparently there is a way to get the URL in xpcshell too (see bug 1385295 comment 1).
Flags: needinfo?(alessio.placitelli) → needinfo?(philringnalda)
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)
It was green in my try build (which contains the two changesets to simulate beta): https://treeherder.mozilla.org/#/jobs?repo=try&revision=47d169ebcd1c766b97306a6e1c2beaa9eba11e7e.
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.
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.
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.
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.
Flags: needinfo?(mcastelluccio)
Marco, are you looking into this? This has been sitting for a while.
Flags: needinfo?(mcastelluccio)
Priority: P2 → P3
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)
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)
(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)
Attachment #8942348 - Flags: review?(gfritzsche) → review+
Priority: P3 → P1
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.
Attached patch Re-enable test — — Splinter Review
Attachment #8856762 - Attachment is obsolete: true
Attachment #8893592 - Attachment is obsolete: true
Attachment #8946298 - Flags: review?(gfritzsche)
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+
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
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: