Closed Bug 2041274 Opened 4 months ago Closed 4 months ago

Make test_migration_firefoxLabsEnrollments deterministic about feature pref defaults

Categories

(Firefox :: Nimbus Desktop Client, task)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: tnikkel, Assigned: tnikkel)

References

Details

Attachments

(1 obsolete file)

No description provided.

test_migration_firefoxLabsEnrollments only set the feature enable-prefs
it was about to enroll, leaving every other feature's enable-pref at
its channel default. That was fine while every labs feature defaulted
to false, but image.jxl.enabled is going to default to true on Nightly
(Bug 2040074), so the migration would enroll firefox-labs-jpeg-xl during
the doTest([]) iteration even though the test asserts no enrollment.

Force every feature in LABS_MIGRATION_FEATURE_MAP to true or false
explicitly at the start of each iteration (based on whether it appears
in features) and clear the user-branch values at the end so each
iteration starts clean.

The post-unenroll "user branch should be cleared" assertion has a
related but separate dependency on channel defaults: the migration
overwrites originalValue=false, so Nimbus's restore on a default-true
pref has to leave false on the user branch to override the default,
while on a default-false pref it can clean up the user branch
entirely. Make the assertion conditional on the default branch value
and add the inverse assertion for the default-true case so we cover
both shapes.

We're doing bug 2041397 instead of this.

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → WONTFIX
Attachment #9588393 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: