Closed Bug 1651126 Opened 6 years ago Closed 4 years ago

is-public = {default: false, nightly: true} only matches on some Nightly's, and not all

Categories

(Toolkit :: FeatureGate, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1697781

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.

See Also: → 1650790

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.

The severity field is not set for this bug.
:mythmon, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mcooper)

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?

Severity: -- → S3
Flags: needinfo?(mcooper)

(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.

Priority: -- → P3
See Also: → 1699445

Bug 1697781 fixed this.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.