Commit Graph

81 Commits

Author SHA1 Message Date
Georg Fritzsche
ebd037742b Bug 994727 - Telemetry experiments: Test coverage for disabling the feature. r=bsmedberg 2014-04-11 16:29:29 +02:00
Gregory Szorc
4fba72f1fb Bug 989137 - Part 10: Add a testing-only JSM for common AddonManager operations; r=Unfocused, r=gfritzsche
There is a lot of boilerplate testing code that performs common
AddonManager operations. Some common operations used for testing
Experiments have been refactored into a testing-only JSM that lives as
part of the Add-ons Manager.
2014-04-04 15:58:29 -07:00
Gregory Szorc
7d5c3ab379 Bug 989137 - Part 9: Ensure add-ons are enabled when they should be; r=Unfocused, r=gfritzsche
Experiment add-ons are disabled by default in the Addon Manager. This
patch will manually enable them if necessary.
2014-04-04 15:58:27 -07:00
Gregory Szorc
7e3c378566 Bug 989137 - Part 8: Prevent unknown experiments from being installed; r=Unfocused
The experiments service insists on being in control of experiments.
Before, it wasn't being as assertive as it needed to be: other browser
components could install experiments behind its back. This patch
reasserts the experiments service as king of experiments add-on
management.
2014-04-04 15:58:26 -07:00
Phil Ringnalda
e77a3a02b3 Backed out 3 changesets (bug 989137) for a sudden influx of xpcshell failures
CLOSED TREE

Backed out changeset 831a3ccce100 (bug 989137)
Backed out changeset d3053c4e4c51 (bug 989137)
Backed out changeset 7e410c1d61e6 (bug 989137)
2014-04-05 20:30:24 -07:00
Gregory Szorc
d0ea1efab2 Bug 989137 - Part 10: Add a testing-only JSM for common AddonManager operations; r=Unfocused, r=gfritzsche
There is a lot of boilerplate testing code that performs common
AddonManager operations. Some common operations used for testing
Experiments have been refactored into a testing-only JSM that lives as
part of the Add-ons Manager.
2014-04-04 15:58:29 -07:00
Gregory Szorc
92b7511b40 Bug 989137 - Part 9: Ensure add-ons are enabled when they should be; r=Unfocused, r=gfritzsche
Experiment add-ons are disabled by default in the Addon Manager. This
patch will manually enable them if necessary.
2014-04-04 15:58:27 -07:00
Gregory Szorc
cdfa651283 Bug 989137 - Part 8: Prevent unknown experiments from being installed; r=Unfocused
The experiments service insists on being in control of experiments.
Before, it wasn't being as assertive as it needed to be: other browser
components could install experiments behind its back. This patch
reasserts the experiments service as king of experiments add-on
management.
2014-04-04 15:58:26 -07:00
Benjamin Smedberg
58278a2cdd Bug 992208 - Add Telemetry Experiments to the package so that they are actually used. Also a basic test that the service exists and can be created. r=gfritzsche 2014-04-04 13:03:29 -04:00
Gregory Szorc
30dbad8d70 Bug 989137 - Part 7: Remove unncessary content from test experiments; r=Unfocused
The test experiments had unnecessary content in their install.rdf files.

<targetApplication> does not apply to experiment types and has been
removed.

The bootstrap setting is also implied and has been removed.
2014-03-30 11:06:57 -07:00
Gregory Szorc
2f4ac65cb9 Bug 989137 - Part 6: Create experiment XPIs during the build; r=bsmedberg
Instead of checking in binary .xpi files, we now have the source files
under source control and generate the .xpi as part of the build.

The build system mechanism to generate the .xpi files is hacky. But it's
similar to what existing processes use. Bug 988938 will eventually make
this more sane.

Since the produced .xpi files no longer have stable content, the SHA-1s
of the experiments are now calculated at test run time.
2014-03-29 18:10:11 -07:00
Gregory Szorc
66a1b56284 Bug 989137 - Part 1: Uninstall unknown experiments; r=Unfocused
Before this patch, experiment add-ons may have existed in the Addons
Manager without the Experiments service knowing about them. This detects
these unknown add-ons and uninstalls them. See the in-line comment on
the rationale behind this decision.

The added unit test fails without the Experiments.jsm change.
2014-03-26 22:20:23 -07:00
Georg Fritzsche
05042e7668 Bug 986040 - Telemetry experiments: Assure that no experiment addon is running yet before starting an experiment. r=Unfocused 2014-03-27 14:26:59 -07:00
Georg Fritzsche
4d4108e83e Bug 973992 - Telemetry experiments: Make the experiments code use the new experiments addon type. r=Unfocused 2014-03-27 14:25:04 -07:00
Georg Fritzsche
fa565ea435 Bug 986261 - Telemetry experiments unit tests hang when they fail. r=felipe 2014-03-27 14:55:36 +01:00
Georg Fritzsche
e87a4523ad Bug 983231 - Telemetry experiments: test manifest condition evaluation. r=felipe 2014-03-26 16:35:59 +01:00
Georg Fritzsche
a336a5bb08 Bug 987207 - Telemetry experiments - Assure proper saving & loading from the cache. r=felipe 2014-03-25 17:50:24 +01:00
Benjamin Smedberg
1ca53d56af Bug 987225 - Combine the various tasks in Experiments.jsm to a single serial task. r=gfritzsche (delegated from felipe). Also fixes:
* no need to pass an addon/experiment ID to .disableExperiment()
* fix multiple-logging when multiple Experiments() objects are created as in tests
* ensures that all dirty writes actually get written
2014-03-25 13:50:34 -04:00
Georg Fritzsche
08719d86dc Bug 983360 - Telemetry experiments: add monitoring data to Telemetry payload. r=bsmedberg 2014-03-24 09:58:57 +01:00
Georg Fritzsche
128f183671 Bug 985670 - Telemetry experiments: Decouple experiment and addon ids. r=felipe 2014-03-24 09:58:57 +01:00
Georg Fritzsche
48f8d0b008 Bug 985670 - Telemetry experiments: Don't schedule incorrect timer when there is no pending experiment. r=felipe 2014-03-24 09:58:57 +01:00
Georg Fritzsche
b203565edc Bug 984387 - Telemetry experiments: test coverage for disabling and removal of experiments via manifest. r=felipe 2014-03-24 09:58:56 +01:00
Gregory Szorc
49ac0afc11 Bug 974024 - Add FHR recording of Telemetry Experiments activity; r=bsmedberg 2014-03-20 14:16:00 -07:00
Georg Fritzsche
a0d9f076c3 Bug 984014 - Telemetry experiments - Test experiment update. r=felipe 2014-03-18 22:52:30 +01:00
Georg Fritzsche
61a6fabe2d Bug 979474 - Disable certificate checks for telemetry experiment checks. r=felipe 2014-03-18 22:52:30 +01:00
Benjamin Smedberg
bce0f2b04e Bug 983226 - Set up jsfilter with proper healthreport/telemetry payloads, r=felipe 2014-03-18 22:52:29 +01:00
Georg Fritzsche
fd19428b8f Bug 974009 - Telemetry experiments - Tests 4 - Experiments API. r=felipe 2014-03-18 22:52:29 +01:00
Georg Fritzsche
8b037af3c4 Bug 974009 - Telemetry experiments - Tests 3 - Experiment activation. r=felipe 2014-03-18 22:52:29 +01:00
Georg Fritzsche
9ae2de2d1e Bug 974009 - Telemetry experiments - Tests 2 - Experiment activation. r=felipe 2014-03-18 22:52:29 +01:00
Georg Fritzsche
45b71de93d Bug 974009 - Telemetry experiments - Tests 1 - Condition evaluation. r=felipe 2014-03-18 22:52:28 +01:00
Georg Fritzsche
0042d40cb7 Bug 974009 - Telemetry experiments: test experiment conditions and enable experiments. r=felipe,unfocused 2014-03-18 22:52:28 +01:00