is-public = {default: false, nightly: true} only matches on some Nightly's, and not all
Categories
(Toolkit :: FeatureGate, defect, P3)
Tracking
()
People
(Reporter: mconley, Unassigned)
References
Details
I recently went through this when trying to land the patch in bug 1650790. Essentially, there was a test that checked whether or not the new experiment I added was listed in about:preferences when doing search. It seemed like some of the time, the answer was "yes", and other times, the answer was "no".
Tracking this down, the reason for this was because of this line in my Features.toml entry:
is-public = {default = false, nightly = true}
It looks like the matching for nightly uses the MOZ_UPDATE_CHANNEL build time value to determine whether or not to match: https://searchfox.org/mozilla-central/rev/7ec7ee4a9bde171ba195ab46ed6077e4baaef34d/toolkit/components/featuregates/FeatureGate.jsm#222-236
When on try, MOZ_UPDATE_CHANNEL for a mozilla-central try push is "nightly-try". When on autoland, it appears to be "nightly-autoland". So in those cases, the FeatureGate didn't match, and so the test would fail.
This was pretty surprising. I ended up working around this by just setting:
is-public = true
We might either want to make nightly: true more flexible, or make it clearer what it really means.
Comment 1•6 years ago
•
|
||
My understanding from the discussion on matrix around bug 1639383 at the time was that :glandium felt that code should move away from using MOZ_UPDATE_CHANNEL for things. See also this convo on slack.
Doing that does seem like the reasonable solution here.
Comment 2•6 years ago
|
||
The severity field is not set for this bug.
:mythmon, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 3•6 years ago
|
||
Reading that slack conversation, it seems like :glandium didn't really suggest a solution, only requested that people don't use MOZ_UPDATE_CHANNEL. Is there a concrete solution I missed?
Comment 4•4 years ago
|
||
(In reply to Michael Cooper [:mythmon] from comment #3)
Reading that slack conversation, it seems like :glandium didn't really suggest a solution, only requested that people don't use
MOZ_UPDATE_CHANNEL. Is there a concrete solution I missed?
I think nightly should correspond to AppConstants.NIGHTLY_BUILD.
Comment 5•4 years ago
|
||
Bug 1697781 fixed this.
Description
•