Commit Graph

881 Commits

Author SHA1 Message Date
Vanessa Gutierrez
ee513e293a Bug 1376942 - Added activeTicks as a scalar. r=dexter,gfritzsche;data-r=francois 2017-07-20 10:09:00 +02:00
John Dorlus
59678afc26 Bug 1358670 - Implemented MarionetteHarness in telemetry-harness r=whimboo
Added changes to testcase.py for change server root
Added testvar to pass server_root from command line of telemetry-harness to testcase class.
Added argument.py and runner.py to implement MarionetteHarness in the test job
Changed test name in manifest.ini

MozReview-Commit-ID: 4XpBvq6Skz6
2017-06-22 18:18:24 -04:00
Wes Kocher
74ae140aad Backed out 3 changesets (bug 1358670) for flake8 failures a=backout
Backed out changeset ab3693949c72 (bug 1358670)
Backed out changeset e04b9716ebad (bug 1358670)
Backed out changeset 0c5cf70baa50 (bug 1358670)

MozReview-Commit-ID: 2kVtLMvs9En
2017-07-20 11:20:00 -07:00
John Dorlus
c7a41b72b6 Bug 1358670 - Implemented MarionetteHarness in telemetry-harness r=whimboo
Added changes to testcase.py for change server root
Added testvar to pass server_root from command line of telemetry-harness to testcase class.
Added argument.py and runner.py to implement MarionetteHarness in the test job
Changed test name in manifest.ini

MozReview-Commit-ID: 4XpBvq6Skz6
2017-06-22 18:18:24 -04:00
John Dorlus
0420df555f Bug 1374863 - Added wait for telemetry to reinitialize after reboot when setting gecko prefs. r=chutten
Added 5 second wait for telemetry to reinitialize.

MozReview-Commit-ID: 7R2QnQQUfKq
2017-07-13 15:13:21 -04:00
Wes Kocher
33849bc3e5 Merge inbound to central, a=merge
MozReview-Commit-ID: CugzaiO4IW1
2017-07-17 17:27:51 -07:00
Michael Brennan
79ca1078c4 Bug 1367125 - Record search cohort using the new annotation API. r=gfritzsche 2017-07-16 14:00:00 -04:00
Bill McCloskey
69b44c007d Bug 1380880 - Use process type to distinguish keyed histograms (r=chutten)
MozReview-Commit-ID: 8pcou7DsU7S
2017-07-14 12:44:54 -07:00
Raajit Raj
443ccbccbe Bug 1368713 - Add test coverage for parsing historical Histograms.json formats r=Dexter
MozReview-Commit-ID: 97r3nIVR0Ky
2017-07-16 22:41:10 +05:30
Alessio Placitelli
b606503a3c Bug 1374828 - Properly initialize/shutdown telemetry in test_TelemetrySession.js. r=chutten
This patch adds TelemetryController.testShutdown() calls to the tests that
were not calling it, relying on TelemetryController.testReset() to do the
full shutdown/restart cycle. Without the shutdown, the telemetry scheduler
was generating rougue daily pings at undesired times.
2017-07-13 09:51:00 +02:00
Alessio Placitelli
0a2700b5f6 Bug 1381490 - Enable sending the shutdown ping with the pingsender on the first session. r=gfritzsche
This will land behind a preference, initially turned off, with the possibility to easily enable it.

MozReview-Commit-ID: InND8Pv35I1
2017-07-26 05:55:00 +02:00
Wes Kocher
ce9a7b8f16 Backed out 4 changesets (bug 1365309) for frequent xpcshell timeouts after 5400 seconds a=backout CLOSED TREE
Backed out changeset 9fc4c6aabd8e (bug 1365309)
Backed out changeset 56850220bd77 (bug 1365309)
Backed out changeset 48f5e0597242 (bug 1365309)
Backed out changeset 39ed96d7b263 (bug 1365309)

MozReview-Commit-ID: 3V0eTL8qeYb
2017-07-12 16:35:14 -07:00
Michael Layzell
f2adbda360 Bug 1365309 - Part 3: Disable ThreadStackHelper on x86 linux due to a LUL crash, r=froydnj
MozReview-Commit-ID: 2kBBFftnJEd
2017-07-12 13:13:07 -04:00
John Dorlus
22387e53c6 Bug 1379292 - Made changes to test to use new harness filtering r=chutten
Self explanatory. Also added some waits for test hardiness.
Used lambdas so that the caller can specify criteria for filtering.

MozReview-Commit-ID: BBQj0TO6kyq
2017-07-10 16:17:19 -04:00
John Dorlus
238ebcfbbb Bug 1379292 - Added filtering for pings based on type and reason r=chutten
Added change to testcase class to filter pings based on type and reason
and also to ensure that only one ping matches the criteria.

MozReview-Commit-ID: 8xyjbX0R8lt
2017-07-10 16:13:37 -04:00
Sebastian Hengst
52597f64d6 Backed out changeset e123b6e47340 (bug 1379292) for linting failures in test_main_tab_scalars.py. r=backout 2017-07-11 19:40:17 +02:00
Sebastian Hengst
cf553de215 Backed out changeset 064f2ad7ca3b (bug 1379292) 2017-07-11 19:39:38 +02:00
John Dorlus
b8bc21c215 Bug 1379292 - Made changes to test to use new harness filtering r=chutten
Self explanatory. Also added some waits for test hardiness.
Used lambdas so that the caller can specify criteria for filtering.

MozReview-Commit-ID: BBQj0TO6kyq
2017-07-10 16:17:19 -04:00
John Dorlus
1dc1e23559 Bug 1379292 - Added filtering for pings based on type and reason r=chutten
Added change to testcase class to filter pings based on type and reason
and also to ensure that only one ping matches the criteria.

MozReview-Commit-ID: 8xyjbX0R8lt
2017-07-10 16:13:37 -04:00
John Dorlus
4e8a61817c Bug 1377346 - Fixed assertion to use local variable r=chutten,rpapa
Changed assertion from using harness class ping variable to local variable in test. That way, popping the ping doesn't affect
outcome of test. Also check that ping is not None.

MozReview-Commit-ID: AEDJmhJHUxv
2017-06-30 23:07:40 -04:00
Andrew Swan
8438182e63 Bug 1358907 Part 3 Avoid reading XPI database at startup r=Dexter,kmag
Switch telemetry and experiments from AddonManager.getAddonsByTypes()
to AddonManager.getActiveAddons() which gives us less detailed information
in the environment during startup but also means we don't need to load the
extensions database until startup is complete.

MozReview-Commit-ID: 4SxdPHSPovB
2017-05-18 13:08:58 -07:00
Rajesh Kathiriya
bfb3762076 Bug 1374670 - Enabled the ESLint no-tabs rule across mozilla-central r=standard8
MozReview-Commit-ID: RT5QTipaOW
2017-07-04 21:30:18 +05:30
djmdev
f7e40f9839 Bug 1344295 - Consolidate Telemetry preferences in TelemetryUtils.Preferences. r=dexter
Moved all Preferences declarations to Preferences object in TelemetryUtils.jsm
and used them in the test files.
2017-04-08 11:31:18 +05:30
Alessio Placitelli
fe22662008 Bug 1369734 - Spin the scheduler tick on idle after sleep-wake or idle-active cycles. r=chutten,florian
This allows to move it out of the user's way, in case we need to gather
telemetry data to build a daily/aborted-session ping.

MozReview-Commit-ID: BrKZHKOJzqk
2017-06-13 16:18:37 +02:00
Wes Kocher
e3b0ffb8d2 Backed out 3 changesets (bug 1358907) for devtools failures in leakcheck a=backout
Backed out changeset 529eccc2bc69 (bug 1358907)
Backed out changeset 5368cc2c4f38 (bug 1358907)
Backed out changeset d112bc46842f (bug 1358907)

MozReview-Commit-ID: D2oHpM7GgrW
2017-07-03 14:43:57 -07:00
Andrew Swan
71ec676492 Bug 1358907 Part 3 Avoid reading XPI database at startup r=Dexter
Switch telemetry and experiments from AddonManager.getAddonsByTypes()
to AddonManager.getActiveAddons() which gives us less detailed information
in the environment during startup but also means we don't need to load the
extensions database until startup is complete.

MozReview-Commit-ID: 4SxdPHSPovB
2017-05-18 13:08:58 -07:00
Sebastian Hengst
ff00959f38 Bug 1376599 - Allow annotating experiments with a type: Fix eslint issues. r=eslint-fix on a CLOSED TREE 2017-06-30 21:26:28 +02:00
Georg Fritzsche
5b44df997a Bug 1376599 - Allow annotating experiments with a type. r=Dexter 2017-06-28 17:18:00 -04:00
Nils M.
f4839c6da3 Bug 1375481 - Removed unnecessary clearings of histograms r=gfritzsche
MozReview-Commit-ID: 3vyJucWa6tq
2017-06-26 22:57:10 +02:00
Bill McCloskey
ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Florian Quèze
c0468168f5 Bug 1368456 - remove Promise.jsm imports in tests, r=mconley. 2017-06-23 11:25:52 +02:00
Florian Quèze
c30094cdf7 Bug 1374282 - script generated patch to remove generators from add_task in browser/ and toolkit/, r=Mossop. 2017-06-22 12:51:43 +02:00
Carsten "Tomcat" Book
568e67b3c6 Backed out changeset f495235291e7 (bug 1369734) backed out for test failures in test_TelemetrySession.js | xpcshell return code: 0 2017-06-21 12:14:05 +02:00
Alessio Placitelli
03e28de90b Bug 1369734 - Spin the scheduler tick on idle after sleep-wake or idle-active cycles. r=chutten,florian
This allows to move it out of the user's way, in case we need to gather
telemetry data to build a daily/aborted-session ping.

MozReview-Commit-ID: BrKZHKOJzqk
2017-06-13 16:18:37 +02:00
Alessio Placitelli
d5cff6ec12 Bug 1373913 - Skip the default browser test on Thunderbird. r=gfritzsche
MozReview-Commit-ID: 41BfL50DLpL
2017-06-19 09:36:09 +02:00
Andrew Swan
187a7be49d Bug 1373453 Part 2 Convert extensions in telemetry unit tests to webextensions r=Dexter
We will no longer load non-webextensions from user profiles starting in
57, so with this patch this test works much more like how browsers in the
field will run.  Note that we will still use legacy extensions for things
like system addons, those remain part of this test.

MozReview-Commit-ID: CEOdRbrWphi
2017-06-15 15:06:16 -07:00
Andrew Swan
cf480aeacd Bug 1373386 Make xpcshell signing shims mark extensions as privileged by default r=rhelmer
MozReview-Commit-ID: B6zFBwbjhax
2017-06-08 12:52:50 -07:00
Alessio Placitelli
394e909ce0 Bug 1367029 - Defer gathering isDefaultBrowser until session restore completes. r=gfritzsche
Gathering this data point takes up to 100ms on reference hardware and might impact
startup performance.

MozReview-Commit-ID: 32sd5uUF08N
2017-06-14 11:57:14 +02:00
Andrew Halberstadt
bce781d9b8 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr
2017-06-15 12:10:59 -04:00
Michael Layzell
69f986faaf Bug 1357829 - Part 2: Use profiler_suspend_sample_thread in the background hang monitor, r=froydnj
This patch uses the profiler_suspend_sample_thread method which was added in
part 1.

With this patch, we no longer manually run code to pause the target thread,
instead using the profiler's provided code to do so. In addition, we no longer
manually walk the stack to collect native stack frames, instead relying on the
profiler's cross-platform stack walking logic.

This helps remove some of the code from ThreadStackHelper which was redundant
with the profiler. Much of the pseudostack code in ThreadStackHelper is also
redundant, and should hopefully be eliminated in a follow-up.

MozReview-Commit-ID: 4RjLHt6inH9
2017-06-14 12:27:49 -04:00
Chris H-C
89b1d30556 Bug 1335343 - Prevent histogram recording in disallowed processes. r=Dexter
Unfortunately it means using FLAG histograms because I need to test that their
"we have a hidden default value" behaviour is appropriately silenced as well.

MozReview-Commit-ID: J8xGXwCTRIg
2017-06-13 07:10:00 -04:00
Kate Ustiuzhanina
d9a5f7bf27 Bug 1367094 - Measure the size of successful and failed pings. r=gfritzsche
MozReview-Commit-ID: KSt07czm7Kt
2017-06-06 16:52:41 +01:00
Vedant Sareen
20ea75b667 Bug 1033860 - Add probes for time needed to load pending & archived pings from disk. r=chutten data-r=bsmedberg
Added "TELEMETRY_PENDING_LOAD_MS" & "TELEMETRY_ARCHIVE_LOAD_MS" as exponential histograms.
Added the functionality to save in these histograms the time it takes to load pending/archived pings respectively.
Added the file |test_TelemetryStorage.js| with tests for the added functionality.
2017-05-29 17:25:39 +05:30
Alessio Placitelli
76d556b978 Bug 1364068 - Enable the 'new-profile' ping. r=gfritzsche
MozReview-Commit-ID: 6DXa20aCOBr
2017-05-22 12:52:19 +02:00
Avikalpa Kundu
6b146f30b8 Bug 1355498 - Refactor commonly used actions in functions within TestHistograms.cpp. r=Dexter 2017-05-25 10:45:00 -04:00
Ryan VanderMeulen
f581b4e399 Merge inbound to m-c. a=merge 2017-05-25 16:34:16 -04:00
Geoff Brown
769248e133 Bug 1285864 - Increase timeout in test_TelemetryControllerShutdown.js; r=gfritzsche
Test has been failing intermittently on Android Debug only.
2017-05-25 11:18:33 -06:00
Alessio Placitelli
14bb71b554 Bug 1359031 - Don't trigger early search service init in Telemetry. r=florian
This patch will make TelemetryEnvironment wait for the
"browser-search-service" topic with "init-complete" before attempting
to query search data.

MozReview-Commit-ID: C0i608eYHmU
2017-05-17 15:04:53 +02:00
Michael Layzell
b9d964735a Bug 1363883 - Share memory maps between BHR native stacks, dr=bsmedberg, r=froydnj
MozReview-Commit-ID: IQ1fMXUD0ch
2017-05-23 13:41:52 -04:00
Georg Fritzsche
940a7067c5 Bug 1361661 - Part 3 - Update the Telemetry core. r=dexter
Updates the core Telemetry code to use the new headers and support the extension process.
TelemetryHistogram is not cleanly refactored here; doing this uncovered a few time consuming issues with the various lookup code paths.
2017-05-23 13:48:13 +07:00