Closed Bug 2048365 Opened 2 months ago Closed 13 days ago

Add some safeguards around the Nimbus C++ API

Categories

(Firefox :: Nimbus Desktop Client, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
firefox156 --- fixed

People

(Reporter: beth, Assigned: beth, NeedInfo)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [nimbus])

Attachments

(1 file)

We just had a case where a feature was misconfigured and could not use the C++ feature API because isEarlyStartup was false. This made it all the way to release without getting caught.

Instead, we should have some klaxons go off if you call into the feature API for an unsupported feature, e.g., a MOZ_DIAGNOSTIC_ASSERT.

Pushed by brennie@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9673e46434c6 https://hg.mozilla.org/integration/autoland/rev/1d3b92a08ba4 MOZ_DIAGNOSTIC_ASSERT when calling the NimbusFeature API with an unsupported feature r=nimbus-reviewers,chumphreys
Pushed by nfay@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/728c86bf6156 https://hg.mozilla.org/integration/autoland/rev/5ec15046ffc9 Revert "Bug 2048365 - MOZ_DIAGNOSTIC_ASSERT when calling the NimbusFeature API with an unsupported feature r=nimbus-reviewers,chumphreys" for causing failures regarding Nimbus , FeatureManifest.yaml

Backed out for causing failures regarding Nimbus , FeatureManifest.yaml

Backout link

Push with failures

Flags: needinfo?(brennie)
Blocks: 1875331
Depends on: 2048587
No longer depends on: 1875331
Flags: needinfo?(brennie)

There is an r+ patch which didn't land and no activity in this bug for 1 week.
:beth, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(chumphreys)
Flags: needinfo?(brennie)
Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3a069da85cf5 https://hg.mozilla.org/integration/autoland/rev/5c1b97d43142 MOZ_DIAGNOSTIC_ASSERT when calling the NimbusFeature API with an unsupported feature r=nimbus-reviewers,chumphreys
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e4ee0947236a https://hg.mozilla.org/integration/autoland/rev/293aca64634c Revert "Bug 2048365 - MOZ_DIAGNOSTIC_ASSERT when calling the NimbusFeature API with an unsupported feature r=nimbus-reviewers,chumphreys" for causing gtest failures related to gtest.NimbusTelemetryFixture

Backed out for causing gtest failures related to gtest.NimbusTelemetryFixture
Backout link
Push with failures
Failure log(s)

Flags: needinfo?(brennie)
Flags: needinfo?(brennie)
Summary: Add some safeaguards around the Nimbus C++ API → Add some safeguards around the Nimbus C++ API
Pushed by brennie@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/52bfbfecf7f7 https://hg.mozilla.org/integration/autoland/rev/a0b54074afd8 MOZ_DIAGNOSTIC_ASSERT when calling the NimbusFeature API with an unsupported feature r=nimbus-reviewers,chumphreys
Status: NEW → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch
QA Whiteboard: [qa-triage-done-c157/b156]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: