Commit graph

101 commits

Author SHA1 Message Date
Mathieu Leplatre
358c626f9f Bug 1513854 - Read Normandy recipes from Remote Settings on Nightly r=mythmon
Read Normandy recipes from Remote Settings on Nightly

Differential Revision: https://phabricator.services.mozilla.com/D24055

--HG--
extra : moz-landing-system : lando
2019-05-02 13:19:40 +00:00
shindli
c7089180a6 Backed out 2 changesets (bug 1535056, bug 1513854) for linux build bustages and failed Gecko Decision Task CLOSED TREE
Backed out changeset f5eea3706636 (bug 1535056)
Backed out changeset 9b66e9b91074 (bug 1513854)
2019-05-02 12:25:40 +03:00
Mathieu Leplatre
f34404096e Bug 1513854 - Read Normandy recipes from Remote Settings on Nightly r=mythmon
Read Normandy recipes from Remote Settings on Nightly

Differential Revision: https://phabricator.services.mozilla.com/D24055

--HG--
extra : moz-landing-system : lando
2019-04-30 13:51:00 +00:00
Michael Cooper
490749ff91 Bug 1513646 - Remove Normandy remote-action infrastructure r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D28227

--HG--
extra : moz-landing-system : lando
2019-04-23 13:23:07 +00:00
Jan-Erik Rediger
6bc73bc6a2 Bug 1529696 - Rename DATASET_RELEASE_CHANNEL_OPTOUT/OPTIN to DATASET_ALL/PRERELEASE_CHANNELS everywhere r=chutten
Depends on D25934

Differential Revision: https://phabricator.services.mozilla.com/D25935

--HG--
extra : moz-landing-system : lando
2019-04-03 17:12:11 +00:00
Mathieu Leplatre
9ce2e13bcc Bug 1538248 - Verify authenticity of Remote Settings records for Normandy r=mythmon,Gijs
Verify authenticity of Remote Settings records for Normandy

Differential Revision: https://phabricator.services.mozilla.com/D24716

--HG--
extra : moz-landing-system : lando
2019-04-01 17:48:05 +00:00
Mark Banner
dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Ethan Glasser-Camp
cf4788faef Bug 1535962: Introduce a sample rate for reporting uptake telemetry events r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D23814

--HG--
extra : moz-landing-system : lando
2019-03-20 14:30:39 +00:00
Edouard Oger
d391c790bc Bug 1532514 - Update sinon to v7.2.7. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D22046

--HG--
extra : moz-landing-system : lando
2019-03-12 19:32:40 +00:00
Dorel Luca
eb794cd9b8 Backed out changeset 4b280518c7b1 (bug 1532514) for Browser-chrome failures in browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js. CLOSED TREE 2019-03-12 03:59:56 +02:00
Edouard Oger
565385661c Bug 1532514 - Update sinon to v7.2.7. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D22046

--HG--
extra : moz-landing-system : lando
2019-03-12 00:18:16 +00:00
Ethan Glasser-Camp
f1d4f0c483 Bug 1530508: report additional recipe information r=mythmon
Report when recipes don't match the filter. Report when Jexl filters
themselves fail, with an added test.

The existing test for remote-settings usage had a bug, so fix that
too.

Depends on D22017

Differential Revision: https://phabricator.services.mozilla.com/D22018

--HG--
extra : moz-landing-system : lando
2019-03-06 21:12:03 +00:00
Ethan Glasser-Camp
258f52be85 Bug 1530508: report freshness of each recipe r=mythmon
Depends on D22016

Differential Revision: https://phabricator.services.mozilla.com/D22017

--HG--
extra : moz-landing-system : lando
2019-03-06 21:12:01 +00:00
Ethan Glasser-Camp
7d8f7c1313 Bug 1530508: convert reportRecipe to take the recipe, not just its ID r=mythmon
This will make it easier to report recipe freshness.

Differential Revision: https://phabricator.services.mozilla.com/D22016

--HG--
extra : moz-landing-system : lando
2019-03-06 21:11:52 +00:00
rdalal
a1223173fc Bug 1474413 - Update addon studies in place r=mythmon,glasserc
Differential Revision: https://phabricator.services.mozilla.com/D19405

--HG--
rename : toolkit/components/normandy/test/browser/fixtures/addon-fixture/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-1.0/manifest.json
extra : moz-landing-system : lando
2019-03-03 08:25:33 +00:00
Chris H-C
67158f5316 Bug 1527299 - Update callers of assertEvents to new form r=Standard8
Depends on D20866

Differential Revision: https://phabricator.services.mozilla.com/D21252

--HG--
extra : moz-landing-system : lando
2019-02-26 21:20:03 +00:00
Michael Cooper
72c2ff437c Bug 1519276 - Use Feature Gates for Remote Settings integration r=leplatrem,mossop
Differential Revision: https://phabricator.services.mozilla.com/D19723

--HG--
extra : moz-landing-system : lando
2019-02-19 22:41:23 +00:00
Ethan Glasser-Camp
41a995b3bf Bug 1443560: Convert checks to examine snapshotted events r=Gijs
Because the mock no longer checks whether the format of events is
correct, check the events that Telemetry actually records, in order to
make sure we conform to the event schema.

Some uses check that *no* calls were made to the stub. Although this
is technically still valid (because we don't care about the format of
events in this case), convert even these to check events for
consistency.

TelemetryTestUtils.assertEvents doesn't allow us to pass a message,
but most of these messages don't add anything useful and at least one
is just wrong so it's not a big loss.

Depends on D19540

Differential Revision: https://phabricator.services.mozilla.com/D19831

--HG--
extra : moz-landing-system : lando
2019-02-15 15:48:58 +00:00
Ethan Glasser-Camp
8686e22b58 Bug 1443560: register telemetry events statically r=Gijs
This also means we no longer have direct access to the event schema,
so rely on Telemetry to throw when we send an invalid event.

Differential Revision: https://phabricator.services.mozilla.com/D19540

--HG--
extra : moz-landing-system : lando
2019-02-15 15:48:51 +00:00
Valentin Gosu
6457cf92c8 Bug 1517025 - Use mock API server so fetchSignedObjects doesn't fail because of BAD URL r=Gijs
We now disallow the % sign in the hostname of a URL.
If the app.normandy.api_url pref isn't set explicitly, it'll remain the default set in xpcshell/user.js: https://%(server)s/selfsupport-dummy/. As you can see, this one has a % sign in it; and the test will fail.
Otherwise, the error we catch is not a NormandyApi.InvalidSignatureError, but NS_ERROR_MALFORMED_URI.

Differential Revision: https://phabricator.services.mozilla.com/D16695

--HG--
extra : moz-landing-system : lando
2019-02-11 21:50:56 +00:00
Andrew Swan
f527f0e6ff Bug 1504056 Part 1: Refactor AddonManager.getInstallForURL() arguments r=kmag
AddonManagergetInstallForURL() has a number of optional arguments, most
of which are passed infrequently.  Convert them from positional arguments
to a single options object.

Differential Revision: https://phabricator.services.mozilla.com/D18475

--HG--
extra : rebase_source : 503c09b54fab90cefe69286b05def43ef70074df
2019-02-01 15:23:55 -08:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Ethan Glasser-Camp
549ac75f78 Bug 1518292: use env instead of environment in JEXL context r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D15951

--HG--
extra : moz-landing-system : lando
2019-01-08 23:52:35 +00:00
Ethan Glasser-Camp
2bff1b287f Bug 1477255: offer context.environment as well as context.normandy r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D15530

--HG--
extra : moz-landing-system : lando
2019-01-02 17:34:35 +00:00
Ethan Glasser-Camp
033e4d9c99 Bug 1440779: shut off experiments when the optoutstudies pref is disabled r=mythmon,Gijs
I think this should have been here before but it wasn't.

To make it easier to distinguish recipes generated by
preferenceStudyFactory, give them a unique name with the unused
_preferenceStudyFactoryId.

Depends on D13574

Differential Revision: https://phabricator.services.mozilla.com/D13575

--HG--
extra : moz-landing-system : lando
2018-12-13 16:02:31 +00:00
Ethan Glasser-Camp
4c48bf7e4d Bug 1440779: Add PreferenceExperimentAction r=mythmon,Gijs
Depends on D13573

Differential Revision: https://phabricator.services.mozilla.com/D13574

--HG--
extra : moz-landing-system : lando
2018-12-13 16:02:29 +00:00
Ethan Glasser-Camp
f79f8291f3 Bug 1440779: preserve function name through decoration r=mythmon,Gijs
Reading test logs is a bit baffling because all tests are called
"wrappedTestFunction". Try to imitate a Pythonic decorator and
make the returned function have the same name as the old one.

Function.prototype.name is a readonly property, but MDN says you can
set a function's name using Object.defineProperty, so that's what we
do.

Depends on D13572

Differential Revision: https://phabricator.services.mozilla.com/D13573

--HG--
extra : moz-landing-system : lando
2018-12-13 16:02:27 +00:00
Ethan Glasser-Camp
428ab05ab2 Bug 1440779: BaseAction: move _preExecute call out of constructor r=mythmon,Gijs
Having _preExecute be called in the constructor makes it hard to test
it, but because it's a lifecycle hook that subclasses are intended to
override, testing it is very natural.

While we're here, move the initialization of AddonStudyAction from
_preExecute to the constructor, since it doesn't really make sense for
AddonStudyAction to be constructed without all members initialized.

Differential Revision: https://phabricator.services.mozilla.com/D13572

--HG--
extra : moz-landing-system : lando
2018-12-13 16:02:25 +00:00
Mathieu Leplatre
2bc67b2afd Bug 1506175 - Fetch recipes from Remote Settings r=mythmon,Gijs
Instead of obtaining the recipes from the Normandy server, obtain them from RemoteSettings

Differential Revision: https://phabricator.services.mozilla.com/D11490

--HG--
extra : moz-landing-system : lando
2018-12-11 16:10:21 +00:00
Michael Cooper
73e93fdb96 Bug 1440778 - Implement show-heartbeat as internal Normandy action r=Gijs
The original, server-side implementation of this action was at
68d3e55a9d/client/actions/show-heartbeat/index.js

Differential Revision: https://phabricator.services.mozilla.com/D12345

--HG--
extra : moz-landing-system : lando
2018-12-12 21:39:00 +00:00
Bogdan Tara
f1dd32d581 Backed out changeset 24657145bfd4 (bug 1440778) on request by dev mythmon CLOSED TREE 2018-11-28 23:22:07 +02:00
Michael Cooper
8afcdbd07c Bug 1440778 - Implement show-heartbeat as internal Normandy action r=Gijs
The original, server-side implementation of this action was at
68d3e55a9d/client/actions/show-heartbeat/index.js

Differential Revision: https://phabricator.services.mozilla.com/D12345

--HG--
extra : moz-landing-system : lando
2018-11-27 21:42:44 +00:00
Cosmin Sabou
1f285bb075 Backed out changeset dd482dcb9a31 (bug 1440778) for browser chrome failures on browser_EventEmitter. CLOSED TREE 2018-11-27 22:36:09 +02:00
Michael Cooper
d652beb76a Bug 1440778 - Implement show-heartbeat as internal Normandy action r=Gijs
The original, server-side implementation of this action was at
68d3e55a9d/client/actions/show-heartbeat/index.js

Differential Revision: https://phabricator.services.mozilla.com/D12345

--HG--
extra : moz-landing-system : lando
2018-11-27 19:22:19 +00:00
Michael Cooper
931c45e92e Bug 1506816 - Check for action errors in Normandy tests, and fix revealed problems. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D12156

--HG--
extra : moz-landing-system : lando
2018-11-19 18:23:54 +00:00
Razvan Maries
6c55ab0f9e Merge mozilla-inbound to mozilla-central a=merge 2018-11-15 00:16:46 +02:00
Michael Cooper
6a3aad884b Bug 1502410 - Don't use deleteBranch in Normandy r=Gijs,adw
nsIPrefBranch.deleteBranch doesn't work as documented when the preference's
default value was set very early after Firefox has started, such as when
Normandy sets startup branches. This is filed as bug 1505941. In order to work
around this problem, this patch makes Normandy never use deleteBranch, except
in tests where it is safe to do so.

With this patch, an experiment that is run on the default branch for a
preference that does not have a default value in the tree cannot be promptly
unenrolled, instead we must wait until the preference is naturally cleared when
Firefox restarts. This is better than never unenrolling though.

Differential Revision: https://phabricator.services.mozilla.com/D11383

--HG--
extra : moz-landing-system : lando
2018-11-14 16:47:14 +00:00
Paolo Amadini
f6b106efb2 Bug 1496827 - Remove the "notification" binding. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D11650

--HG--
rename : browser/components/customizableui/content/.eslintrc.js => browser/components/translation/content/.eslintrc.js
rename : browser/components/translation/jar.mn => browser/components/translation/content/jar.mn
rename : browser/components/translation/microsoft-translator-attribution.png => browser/components/translation/content/microsoft-translator-attribution.png
rename : browser/components/customizableui/content/moz.build => browser/components/translation/content/moz.build
rename : browser/components/translation/translation-infobar.xml => browser/components/translation/content/translation-notification.js
extra : rebase_source : 598396d2da96b04782413946976f7bb9fb6be75f
2018-11-13 12:56:42 +00:00
Paolo Amadini
cdb5b4eb19 Bug 1471403 - Part 4 - Convert "notificationbox" to a custom class. r=bgrins
As part of the conversion, support for notificationsHidden and children that are not notifications is also removed.

Differential Revision: https://phabricator.services.mozilla.com/D10894

--HG--
rename : toolkit/content/widgets/notification.xml => toolkit/content/widgets/notificationbox.js
extra : rebase_source : 36a5412e1e9a9dc591fd486d1123c1f763a6f173
2018-11-09 14:58:18 +00:00
Paolo Amadini
ce13039af3 Bug 1471403 - Part 2 - Lazify the creation of "notificationbox" elements. r=dao,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D10892

--HG--
extra : rebase_source : f66fe90d780c3d446f4a065c0397cbb37f43cb0c
2018-11-09 14:38:49 +00:00
Michael Cooper
5538808771 Bug 1502182 - In Normandy, never close IndexedDB databases, and be explicit about objectStore modes r=Gijs,asuth
I suspect that the root cause of bug 1502182 is that we try open a database
connection before the old one is fully closed. Instead of dealing with
complicatedasync bookkeeping to make sure this doesn't happen, this patch
simply never closes the database connection.  I don't think any of the
benefits of closing IndexedDB databases apply to Normandy, and it isn't
a significant cost to simply keep them open.

Additionally, the patch distinguishes between readonly and readwrite
transactions with the database. This was originally done to try and fix
the bug. When it didn't help, I decided to leave the change in because
it is a beneficial change anyways.

Differential Revision: https://phabricator.services.mozilla.com/D10629

--HG--
extra : moz-landing-system : lando
2018-11-07 23:21:52 +00:00
Dorel Luca
a4d4907a6d Backed out changeset cdc6d97f0b14 (bug 1502182) for ESLint failures in builds/worker/checkouts/gecko/toolkit/components/normandy/lib/RecipeRunner 2018-11-07 03:17:10 +02:00
Michael Cooper
0f54c58c53 Bug 1502182 - In Normandy, never close IndexedDB databases, and be explicit about objectStore modes r=Gijs,asuth
I suspect that the root cause of bug 1502182 is that we try to create multiple
readwrite stores on a given database at the same time, and that we don't wait
for databases to fully close before reopening them. I don't think any of the
benefits of closing IndexedDB databases apply to Normandy, and I don't think it
is a significant cost to simply keep them open.

Differential Revision: https://phabricator.services.mozilla.com/D10629

--HG--
extra : moz-landing-system : lando
2018-11-07 00:42:47 +00:00
Michael Cooper
8b2abe6f37 Bug 1502169 - about:studies: wait for more elements before interacting with them in tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D10630

--HG--
extra : moz-landing-system : lando
2018-11-02 16:40:18 +00:00
Michael Cooper
e74056eacb Bug 1498940 - Reflect study opt-out in about:studies when Normandy is generally enabled. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D9738

--HG--
extra : moz-landing-system : lando
2018-10-29 17:50:51 +00:00
Michael Cooper
d2bd355768 Bug 1500965 - Fix todo_is in toolkit/components/normandy/test/browser/browser_PreferenceExperiments.js r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D10100

--HG--
extra : moz-landing-system : lando
2018-10-29 19:17:36 +00:00
Michael Cooper
e903ce5cb2 Bug 1502169 - Wait for learn more link before clicking it in about:Studies tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D9855

--HG--
extra : moz-landing-system : lando
2018-10-26 09:54:46 +00:00
Michael Cooper
151a62df72 Bug 1501877 - Remove errant .only() from about:studies tests. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D9737

--HG--
extra : moz-landing-system : lando
2018-10-29 17:50:05 +00:00
Ciure Andrei
2c53ceb546 Backed out 2 changesets (bug 1501877, bug 1498940) for failing browser_about_studies.js CLOSED TREE
Backed out changeset f0ed99b29aaf (bug 1498940)
Backed out changeset ae8cdf156f9a (bug 1501877)
2018-10-25 21:24:45 +03:00