Closed Bug 1900963 Opened 4 months ago Closed 4 months ago

[Thunderbird] Intermittent toolkit/components/featuregates/test/unit/test_FeatureGate.js | Thunderbird failure

Categories

(Toolkit :: FeatureGate, defect, P5)

defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox126 --- unaffected
firefox127 --- unaffected
firefox128 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: Gijs)

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression, Whiteboard: [stockwell disable-recommended])

Attachments

(1 file)

Filed by: martin [at] humanoids.be
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=461257161&repo=comm-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/cT0Ci1dCSam7ZYFTDaCg4A/runs/0/artifacts/public/logs/live_backing.log


It seems the patch https://hg.mozilla.org/mozilla-central/rev/1974e2a74ac39c641354390e542c0280c843380b#l4.22 added an import for Targeting.sys.mjs in messaging-system, which is only included in browser builds: https://searchfox.org/mozilla-central/rev/fa86401b80f19afb6ed9bfca127ecc5e3a6f0cdc/toolkit/components/moz.build#133-134

Set release status flags based on info from the regressing bug 1896187

:Gijs, since you are the author of the regressor, bug 1896187, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(gijskruitbosch+bugs)

Do featuregates actually need to work in thunderbird? Does Nimbus work in TB? Nimbus already depends on this code and is also unconditionally built as part of toolkit ( https://searchfox.org/mozilla-central/rev/59d854a90e036cfa77f3c5b70c8c6ef1d60ebb98/toolkit/components/moz.build#136 ). I just copied part of it, and filed bug 1898012 about exactly this general issue - but I didn't think there was concrete breakage that I was creating that didn't previously exist.

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(martin)

Nimbus isn't used in Thunderbird (not sure how much of it would just-work). It is included mostly since tests depend on it. (And we might want to utilize nimbus in the future.)

(In reply to :Gijs (he/him) from comment #2)

Do featuregates actually need to work in thunderbird?

We do depend on the masonry grid being available: https://searchfox.org/mozilla-central/rev/d3fea1aa852bb3a353a0a4a875c3685da11ce39b/toolkit/components/featuregates/Features.toml#20 and there's probably places in toolkit we use that are using feature gates - even if we don't care about flipping them.

Does Nimbus work in TB? Nimbus already depends on this code and is also unconditionally built as part of toolkit ( https://searchfox.org/mozilla-central/rev/59d854a90e036cfa77f3c5b70c8c6ef1d60ebb98/toolkit/components/moz.build#136 ).

I wonder if that code just isn't hit in tests then...

Flags: needinfo?(martin)

(In reply to Martin Giger [:freaktechnik] from comment #5)

(In reply to :Gijs (he/him) from comment #2)

Do featuregates actually need to work in thunderbird?

We do depend on the masonry grid being available: https://searchfox.org/mozilla-central/rev/d3fea1aa852bb3a353a0a4a875c3685da11ce39b/toolkit/components/featuregates/Features.toml#20

The value of the feature being enabled depends purely on the pref's value, which is not controlled directly by featuregates. You don't need featuregates for that.

and there's probably places in toolkit we use that are using feature gates - even if we don't care about flipping them.

I don't think there are - there's only about:support because it lists enabled/disabled features, and that already bails out on android. It could be made to feature-detect instead, or also bail out on Thunderbird.

Does Nimbus work in TB? Nimbus already depends on this code and is also unconditionally built as part of toolkit ( https://searchfox.org/mozilla-central/rev/59d854a90e036cfa77f3c5b70c8c6ef1d60ebb98/toolkit/components/moz.build#136 ).

I wonder if that code just isn't hit in tests then...

The tests are disabled in Thunderbird... https://searchfox.org/mozilla-central/rev/d3fea1aa852bb3a353a0a4a875c3685da11ce39b/toolkit/components/nimbus/test/unit/xpcshell.toml#6-9

So would an appropriate solution here be to just disable the featuregate tests too? And/or, unship featuregates entirely on thunderbird?

Flags: needinfo?(martin)

(In reply to :Gijs (he/him) from comment #6)

The value of the feature being enabled depends purely on the pref's value, which is not controlled directly by featuregates. You don't need featuregates for that.

Ah great, so the feature gates infrastructure is to flip prefs.

I don't think there are - there's only about:support because it lists enabled/disabled features, and that already bails out on android. It could be made to feature-detect instead, or also bail out on Thunderbird.

We don't use the experimentalFeatures snapshot, but yeah our about:support test is failing because the snapshot is currently being gathered.

So would an appropriate solution here be to just disable the featuregate tests too? And/or, unship featuregates entirely on thunderbird?

We would have to at least also bail out in about:support, at which point I guess it might make sense to match the state of it on android? I think because we don't intentionally consume it whatever makes the most sense from a toolkit perspective is the best way forward.

Flags: needinfo?(martin)
See Also: → 1901074

Well, the long-term fix is to architect this set of things better... but that's a substantial project and even at the end of this it sounds like TB doesn't benefit from shipping this code so it might as well not?

Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/601df0d20931 only ship featuregates on desktop firefox and avoid calling it in aboutSupport in other apps, r=freaktechnik
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
See Also: → 1901662
Regressions: 1901662
See Also: 1901662
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: