Closed Bug 1830041 Opened 3 years ago Closed 2 years ago

Nimbus integration with Search Service should have protection for invalid values

Categories

(Firefox :: Search, defect, P2)

defect

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [snt-])

Attachments

(5 files)

I set up a test Nimbus experiment with incorrect extra parameter values. These caused the code to throw and stop initialisation of the search service.

Due to the level of QA that we have I think it would be unlikely to happen in reality. However, I would still be concerned that something could get changed in newer versions of Firefox, and the impacts not realised for older versions.

I think we should have protections in place so that a broken Nimbus experiment cannot stop initialisation/use of the search service.

We should review all Nimbus points, to make sure that we handle exceptions appropriately, and maybe see if there's a way to report back via Nimbus about the experiment not being applied (maybe unenroll with a flag?)

The incorrect branch value was:

{
  "extraParams": {
      "google_channel_row" : "bar"
    }
  ]
}

This should have been:

{
  "extraParams": [
    {
      "key": "google_channel_row",
      "value": "bar"
    }
  ]
}

This caused this function to throw, which then stopped the search service initialising.

Severity: N/A → S4
Type: task → defect
Whiteboard: [snt-]
Assignee: nobody → standard8

These are mainly previous copy/paste of items that are not needed for the specific tests. Params tests are covered in other tests.

Depends on D180965

This avoids skipping the whole test and provides a better indication of why it is skipped.

Depends on D181068

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/09f429a2a3d9 Remove unnecessary setting of search url params in search tests. r=search-reviewers,jteow https://hg.mozilla.org/integration/autoland/rev/e96fa65a3ba3 Rename test_pref.js and test_purpose.js to provide a better indication of which parts of search they are testing. r=search-reviewers,jteow https://hg.mozilla.org/integration/autoland/rev/1e710f8aee6d Change skipping of test_getSubmission_params_pref.js for nightly builds. r=search-reviewers,jteow https://hg.mozilla.org/integration/autoland/rev/f5d8c994b0ce Clean up the test_getSubmission_* tests. r=search-reviewers,jteow https://hg.mozilla.org/integration/autoland/rev/163eab9d0e76 Ensure that an incorrect structure received from Nimbus would not stop the search service starting up. r=search-reviewers,jteow
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: