Intermittent test_user_agent_overrides.html | Navigator UA not overridden at step 1 - got Mozilla/5.0 (Android; Mobile; rv:37.0) Gecko/37.0 Firefox/37.0, expected DummyUserAgent

NEW
Unassigned

Status

()

Core
Networking
P3
normal
3 years ago
a month ago

People

(Reporter: KWierso, Unassigned)

Tracking

({intermittent-failure, leave-open})

36 Branch
x86_64
Android
intermittent-failure, leave-open
Points:
---

Firefox Tracking Flags

(firefox35 disabled, firefox36 disabled, firefox37 disabled, firefox38 disabled, firefox-esr31 disabled)

Details

(Whiteboard: [test disabled on Android][leave open][necko-backlog])

(Reporter)

Description

3 years ago
14:15:58 INFO - 125 INFO TEST-START | /tests/netwerk/test/mochitests/test_user_agent_overrides.html
14:15:58 INFO - 126 INFO Overriding mochi.test with DummyUserAgent
14:15:58 INFO - 127 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | request failed
14:15:58 INFO - 128 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | invalid response
14:15:58 INFO - 129 INFO TEST-UNEXPECTED-FAIL | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | Navigator UA not overridden at step 1 - got Mozilla/5.0 (Android; Mobile; rv:37.0) Gecko/37.0 Firefox/37.0, expected DummyUserAgent
14:15:58 INFO - 130 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | request failed
14:15:58 INFO - 131 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | invalid response
14:15:58 INFO - 132 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | Header UA not overridden at step 2
14:15:58 INFO - 133 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | Navigator UA not restored at step 3
14:15:58 INFO - 134 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | request failed
14:15:58 INFO - 135 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | invalid response
14:15:58 INFO - 136 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | Header UA not restored at step 4
14:15:58 INFO - 137 INFO Overriding mochi.test with \wozilla#DummyUserAgent
14:15:58 INFO - 138 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | request failed
14:15:58 INFO - 139 INFO TEST-PASS | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | invalid response
14:15:58 INFO - 140 INFO TEST-UNEXPECTED-FAIL | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | Navigator UA not overridden at step 5 - got Mozilla/5.0 (Android; Mobile; rv:37.0) Gecko/37.0 Firefox/37.0, expected DummyUserAgent/5.0 (Android; Mobile; rv:37.0) Gecko/37.0 Firefox/37.0
14:15:58 INFO - 141 INFO TEST-OK | /tests/netwerk/test/mochitests/test_user_agent_overrides.html | took 17837ms
14:15:58 INFO - 142 INFO TEST-START | /tests/netwerk/test/mochitests/test_user_agent_updates.html
14:15:58 INFO - 143 INFO TEST-UNEXPECTED-FAIL | /tests/netwerk/test/mochitests/test_user_agent_updates.html | Test timed out. - expected PASS
14:15:58 INFO - 144 INFO TEST-OK | /tests/netwerk/test/mochitests/test_user_agent_updates.html | took 330044ms
14:15:58 INFO - 145 INFO TEST-START | /tests/netwerk/test/mochitests/test_user_agent_updates_reset.html
14:15:58 INFO - org.mozilla.fennec still alive after SIGABRT: waiting...
14:15:58 WARNING - TEST-UNEXPECTED-FAIL | /tests/netwerk/test/mochitests/test_user_agent_updates_reset.html | application timed out after 330 seconds with no output
14:15:58 INFO - INFO | automation.py | Application ran for: 0:34:05.500884
14:15:58 INFO - INFO | zombiecheck | Reading PID log: /tmp/tmpiBZQbcpidlog
14:15:58 INFO - Contents of /data/anr/traces.txt:
14:15:58 INFO -
14:15:58 INFO -
14:15:58 INFO -
14:15:58 INFO - ----- pid 597 at 2014-12-12 14:13:49 -----
14:15:58 INFO - Cmd line: org.mozilla.fennec
14:15:58 INFO -
14:15:58 INFO - DALVIK THREADS:
14:15:58 INFO - (mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
14:15:58 INFO - "main" prio=5 tid=1 NATIVE
14:15:58 INFO - | group="main" sCount=1 dsCount=0 obj=0x4001f188 self=0xce48
14:15:58 INFO - | sysTid=597 nice=0 sched=0/0 cgrp=default handle=-1345006528
14:15:58 INFO - | schedstat=( 7296340783 13505211533 2269 )
14:15:58 INFO - at android.os.MessageQueue.nativePollOnce(Native Method)
14:15:58 INFO - at android.os.MessageQueue.next(MessageQueue.java:119)
14:15:58 INFO - at android.os.Looper.loop(Looper.java:117)
14:15:58 INFO - at android.app.ActivityThread.main(ActivityThread.java:3683)
14:15:58 INFO - at java.lang.reflect.Method.invokeNative(Native Method)
14:15:58 INFO - at java.lang.reflect.Method.invoke(Method.java:507)
14:15:58 INFO - at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
14:15:58 INFO - at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
14:15:58 INFO - at dalvik.system.NativeStart.main(Native Method)
14:15:58 INFO -
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
A bunch of these were getting starred into bug 1065132 before this got filed too.
Flags: needinfo?(nchen)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Ehsan, I see that you have some history with this infra. Any chance you can help me find an owner for this very frequent failure?
Flags: needinfo?(ehsan.akhgari)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
I'll take a look today or tomorrow.
Flags: needinfo?(nchen)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
(In reply to TBPL Robot from comment #33)
> repository: mozilla-esr31

So does this test depend on an external resource which changed, and thus the test should be disabled on every single branch, or does it depend on something related to the infra it runs on?
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
(In reply to Phil Ringnalda (:philor) from comment #109)
> (In reply to TBPL Robot from comment #33)
> > repository: mozilla-esr31
> 
> So does this test depend on an external resource which changed, and thus the
> test should be disabled on every single branch, or does it depend on
> something related to the infra it runs on?

The test doesn't depend on external resources. I want to say it's some kind of infra issue and we should just disable it on Android for now. (I couldn't even get it to reproduce on try after I added some logging: https://treeherder.mozilla.org/#/jobs?repo=try&revision=8b5fc5d72b52)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)

Comment 203

3 years ago
Apologies for the delay here.

I have a theory here.  UserAgentOverrides.init() calls UserAgentUpdates.init() which is asynchronous, and relies on the general.useragent.override.* prefs set by the test.  The test first calls UserAgentOverrides.init() and then sets the pref asynchronously.  I think this is a race condition that can potentially break overriding the UA string, as happens in these test failures.
Flags: needinfo?(ehsan)

Updated

3 years ago
Flags: needinfo?(ehsan)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)

Comment 212

3 years ago
(In reply to :Ehsan Akhgari (not reading bugmail, needinfo? me!) from comment #203)
> Apologies for the delay here.
> 
> I have a theory here.  UserAgentOverrides.init() calls
> UserAgentUpdates.init() which is asynchronous, and relies on the
> general.useragent.override.* prefs set by the test.  The test first calls
> UserAgentOverrides.init() and then sets the pref asynchronously.  I think
> this is a race condition that can potentially break overriding the UA
> string, as happens in these test failures.

That theory was wrong since UserAgentOverrides will be initialized at startup.

Landing a debugging patch to see if the correct component is registered on each build, testing another hypothesis...  <https://hg.mozilla.org/integration/mozilla-inbound/rev/0b4e473beaa5>
Keywords: leave-open
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
https://hg.mozilla.org/mozilla-central/rev/0b4e473beaa5
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)