Bug 1238802 - Back it out because we'll no longer run this experiment on 44
authorFelipe Gomes <felipc@gmail.com>
Wed, 13 Jan 2016 15:20:12 -0200
changeset 68 7b8a1908c85e9bfc8c19ef9731a1a9e9409f5956
parent 67 ab54b1891657aa7d20560406ce79ce81a9c92922
child 69 b5ddc65fd53618c2bc5758c8c8c64238d831a75b
push id52
push userfelipc@gmail.com
push dateWed, 13 Jan 2016 17:21:57 +0000
bugs1238802
Bug 1238802 - Back it out because we'll no longer run this experiment on 44
experiments/e10s-beta44-secondrun/code/bootstrap.js
experiments/e10s-beta44-secondrun/code/install.rdf
experiments/e10s-beta44-secondrun/experiment.xpi
experiments/e10s-beta44-secondrun/filter.js
experiments/e10s-beta44-secondrun/manifest.json
deleted file mode 100644
--- a/experiments/e10s-beta44-secondrun/code/bootstrap.js
+++ /dev/null
@@ -1,114 +0,0 @@
-let {classes: Cc, interfaces: Ci, utils: Cu} = Components;
-
-Cu.import("resource:///modules/experiments/Experiments.jsm");
-Cu.import("resource://gre/modules/Task.jsm");
-Cu.import("resource://gre/modules/Preferences.jsm");
-Cu.import("resource://gre/modules/Services.jsm");
-Cu.import("resource://gre/modules/TelemetryLog.jsm");
-Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-
-const SELF_ID = "e10s-beta44-20160112@experiments.mozilla.org";
-const BRANCH = "browser.tabs.remote.";
-// Default e10s value, aka "trial pref". This pref should not exist on Beta
-const PREF = BRANCH + "autostart.2";
-// Whether the user eagerly opted into e10s
-const OPTIN_PREF = BRANCH + "autostart";
-const A11Y_WAS_USED_PREF = BRANCH + "disabled-for-a11y";
-
-var gStarted = false;
-
-function startup() {
-  // Seems startup() function is launched twice after install, we're
-  // unsure why so far. We only want it to run once.
-  if (gStarted) {
-    return;
-  }
-  gStarted = true;
-
-  Task.spawn(function*() {
-    let branch = yield Experiments.instance().getExperimentBranch(SELF_ID);
-    let expected = null;
-
-    switch (branch) {
-      case null:
-        // Profile is ineligible if either of the two e10s prefs is non-default
-        if (Preferences.isSet(OPTIN_PREF) || Preferences.isSet(PREF)) {
-          TelemetryLog.log(SELF_ID, ["Setting branch to 'user-disabled' because e10s prefs have non-default values."]);
-          yield Experiments.instance().setExperimentBranch(SELF_ID, "user-disabled");
-          return;
-        }
-
-        if (Math.random() >= 0.5) {
-          TelemetryLog.log(SELF_ID, ["Setting branch to 'first-session-control' (disable e10s next session)."]);
-          yield Experiments.instance().setExperimentBranch(SELF_ID, "first-session-control");
-          Preferences.set(PREF, false);
-        } else {
-          TelemetryLog.log(SELF_ID, ["Setting branch to 'first-session-experiment' (enable e10s next session)."]);
-          yield Experiments.instance().setExperimentBranch(SELF_ID, "first-session-experiment");
-          Preferences.set(PREF, true);
-        }
-        return;
-
-      case "first-session-control":
-        TelemetryLog.log(SELF_ID, ["Second session, setting branch to 'control'."]);
-        yield Experiments.instance().setExperimentBranch(SELF_ID, "control");
-        expected = false;
-        break;
-
-      case "first-session-experiment":
-        TelemetryLog.log(SELF_ID, ["Second session, setting branch to 'experiment'."]);
-        yield Experiments.instance().setExperimentBranch(SELF_ID, "experiment");
-        expected = true;
-        break;
-
-      case "control":
-        expected = false;
-        break;
-
-      case "experiment":
-        expected = true;
-        break;
-
-      case "user-disabled":
-      case "force-disabled":
-      case "a11y-disabled":
-        return;
-
-      default:
-        throw new Error("Unexpected experiment branch: " + branch);
-    }
-
-    if (expected != Preferences.get(PREF)) {
-      TelemetryLog.log(SELF_ID, ["Setting branch to 'user-disabled' because PREF != expected."]);
-      yield Experiments.instance().setExperimentBranch(SELF_ID, "user-disabled");
-    } else if(Preferences.isSet(OPTIN_PREF)) {
-      TelemetryLog.log(SELF_ID, ["Setting branch to 'user-disabled' because OPTIN_PREF != expected."]);
-      yield Experiments.instance().setExperimentBranch(SELF_ID, "user-disabled");
-      restoreConfig();
-    } else if(expected != Services.appinfo.browserTabsRemoteAutostart) {
-      TelemetryLog.log(SELF_ID, ["Setting branch to 'force-disabled' because browserTabsRemoteAutostart != expected."]);
-      yield Experiments.instance().setExperimentBranch(SELF_ID, "force-disabled");
-      restoreConfig();
-    } else if(Preferences.get(A11Y_WAS_USED_PREF)) {
-      TelemetryLog.log(SELF_ID, ["Setting branch to 'a11y-disabled' because accesibility had been used in this profile."]);
-      yield Experiments.instance().setExperimentBranch(SELF_ID, "a11y-disabled");
-      restoreConfig();
-    }
-  }).then(
-    () => Services.prefs.savePrefFile(null),
-    e => Cu.reportError("Got error during bootstrap startup: " + e)
-  );
-}
-
-function restoreConfig() {
-  Preferences.reset(PREF);
-}
-
-function uninstall() {
-  Task.spawn(function*() {
-    let branch = yield Experiments.instance().getExperimentBranch(SELF_ID);
-    if (branch == "control" || branch == "experiment" || branch.substr(0, 14) == "first-session-") {
-      restoreConfig();
-    }
-  });
-}
deleted file mode 100644
--- a/experiments/e10s-beta44-secondrun/code/install.rdf
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
-  <Description about="urn:mozilla:install-manifest">
-    <em:id>e10s-beta44-20160112@experiments.mozilla.org</em:id>
-    <em:version>1.0.0</em:version>
-    <em:type>128</em:type>
-    <em:bootstrap>true</em:bootstrap>
-    <em:unpack>false</em:unpack>
-
-    <!-- Firefox -->
-    <em:targetApplication>
-      <Description>
-        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
-        <em:minVersion>44.0</em:minVersion>
-        <em:maxVersion>44.0</em:maxVersion>
-      </Description>
-    </em:targetApplication>
-
-    <!-- Front End MetaData -->
-    <em:name>Multi-process Firefox A/B Test</em:name>
-    <em:description>Measure the effect of multi-process Firefox</em:description>
-    <em:aboutURL>https://bugzilla.mozilla.org/show_bug.cgi?id=1238802</em:aboutURL>
-  </Description>
-</RDF>
deleted file mode 100644
index 9ff19466708c4fb5d32607f8143330a8e8f60491..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
--- a/experiments/e10s-beta44-secondrun/filter.js
+++ /dev/null
@@ -1,3 +0,0 @@
-function filter(c) {
-  return c.telemetryEnvironment.settings.telemetryEnabled;
-}
deleted file mode 100644
--- a/experiments/e10s-beta44-secondrun/manifest.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "publish"     : true,
-  "priority"    : 2,
-  "name"        : "Multi-process Firefox A/B test",
-  "description" : "Measure the effect of multi-process Firefox",
-  "info"        : "<p><a href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=1238802\">Related bug</a></p>",
-  "manifest"    : {
-    "id"               : "e10s-beta44-20160112@experiments.mozilla.org",
-    "startTime"        : 1450051200,
-    "endTime"          : 1453773600,
-    "maxActiveSeconds" : 2592000,
-    "appName"          : ["Firefox"],
-    "channel"          : ["beta"],
-    "minVersion"       : "44.0",
-    "maxVersion"       : "44.0",
-    "minBuildID"       : "20160107144911",
-    "sample"           : 0.15
-  }
-}