Closed Bug 1786647 Opened 2 years ago Closed 2 years ago

Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
106 Branch
Iteration:
106.1 - Aug 22 - Sept 2
Tracking Status
firefox106 --- verified

People

(Reporter: mviar, Assigned: mviar)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

The existing feature callout message should be broken out into five potential messages (n/n refers to step indicator progress):

Shown when colorways active:
- start with first screen 1/3
- start with second screen 2/3
- start with third screen & final CTA 3/3

Show when colorways not active (using new targeting):
- start with first screen 1/2
- start with second screen, but with final CTA 2/2

When the feature callout's parent page loads, is focused, or when the screen of the callout message is advanced, reach out to ASRouter for the next appropriate message, if any. The messages above will need to be assigned appropriate targeting based on the current state of this pref as well as new targeting for whether colorways is active from bug 1786646.

Summary: Split up Feature Callout messages and fetch from ASRouter on page load, focus, or screen advance → Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance
Assignee: nobody → mviar
Iteration: --- → 106.1 - Aug 22 - Sept 2
Priority: -- → P1
Blocks: 1787242
Attachment #9291435 - Attachment description: WIP: Bug 1786647 - Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance → Bug 1786647 - Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance
Pushed by mviar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/56ba242e0732
Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance r=Mardak

Backed out for causing python fxms failures . CLOSED TREE
Backout link
Push with failures
Link to failure log
Failure line : ValueError: Schemas do not match!

Flags: needinfo?(mviar)

Thanks for flagging, I think I understand the issue. Here's a new try push to test that the fix resolves the failure: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f20cb6ec2df08ccd8a51d3b68e627c348881e1d7

Flags: needinfo?(mviar)
Blocks: 1786347
Blocks: 1786341
Pushed by mviar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ba0784c1646a
Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance r=Mardak

Backed out for fxms failures

[task 2022-08-29T16:47:02.486Z]     "localizedText": {
[task 2022-08-29T16:47:02.486Z]       "type": "object",
[task 2022-08-29T16:47:02.486Z]       "properties": {
[task 2022-08-29T16:47:02.486Z]         "string_id": {
[task 2022-08-29T16:47:02.486Z]           "description": "Id of localized string to be rendered.",
[task 2022-08-29T16:47:02.486Z]           "type": "string"
[task 2022-08-29T16:47:02.486Z]         }
[task 2022-08-29T16:47:02.486Z]       },
[task 2022-08-29T16:47:02.486Z]       "required": [
[task 2022-08-29T16:47:02.486Z]         "string_id"
[task 2022-08-29T16:47:02.486Z]       ]
[task 2022-08-29T16:47:02.486Z]     },
[task 2022-08-29T16:47:02.486Z]     "localizableText": {
[task 2022-08-29T16:47:02.486Z]       "description": "Either a raw string or an object containing the string_id of the localized text",
[task 2022-08-29T16:47:02.486Z]       "oneOf": [
[task 2022-08-29T16:47:02.486Z]         {
[task 2022-08-29T16:47:02.486Z]           "type": "string",
[task 2022-08-29T16:47:02.486Z]           "description": "The string to be rendered."
[task 2022-08-29T16:47:02.486Z]         },
[task 2022-08-29T16:47:02.486Z]         {
[task 2022-08-29T16:47:02.486Z]           "$ref": "resource://activity-stream/schemas/MessagingExperiment.schema.json#/$defs/localizedText"
[task 2022-08-29T16:47:02.486Z]         }
[task 2022-08-29T16:47:02.486Z]       ]
[task 2022-08-29T16:47:02.486Z]     }
[task 2022-08-29T16:47:02.486Z]   }
[task 2022-08-29T16:47:02.486Z] }Traceback (most recent call last):
[task 2022-08-29T16:47:02.486Z]   File "make-schemas.py", line 456, in <module>
[task 2022-08-29T16:47:02.486Z]     main(args.check)
[task 2022-08-29T16:47:02.486Z]   File "make-schemas.py", line 437, in main
[task 2022-08-29T16:47:02.486Z]     check_diff(schema_def, schema)
[task 2022-08-29T16:47:02.486Z]   File "make-schemas.py", line 389, in check_diff
[task 2022-08-29T16:47:02.486Z]     raise ValueError("Schemas do not match!")
[task 2022-08-29T16:47:02.486Z] ValueError: Schemas do not match!
[task 2022-08-29T16:47:02.491Z] Creating default state directory: /builds/worker/.mozbuild
[taskcluster 2022-08-29 16:47:02.862Z] === Task Finished ===
[taskcluster 2022-08-29 16:47:02.862Z] Unsuccessful task run with exit code: 1 completed in 21.081 seconds
Flags: needinfo?(mviar)

Apologies @natalia, that was clearly still failing in my treeherder link. Here's a new try for the failing test after adding the message description in both schemas: https://treeherder.mozilla.org/jobs?repo=try&revision=1c085309bf3e7886198b1a9d09ab6be034df1d9a

Flags: needinfo?(mviar)
Pushed by mviar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/225b8bbe0912
Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance r=Mardak

Backed out changeset 225b8bbe0912 (bug 1786647) for causing browser-chrome failures in toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_docs.js CLOSED TREE

Backout link: https://hg.mozilla.org/integration/autoland/rev/da4a79db4d0acba5fd7b7ef2b9debe69ad513072

Push with failures

Failure log

TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_docs.js | Uncaught exception in test - at :0 - SyntaxError: JSON.parse: expected double-quoted property name at line 235 column 15 of the JSON data
Flags: needinfo?(mviar)

I've made updates to address that failure caused my recent changes and will attempt to land again.
Here's the resulting full try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=3f00daa7975b7b535e7ec6204c54194330a1f18c

We're trying to sort out an issue where the failing test cited above is not running on try, even when the job is explicitly selected. We have a discussion open in Matrix. I have tested it locally however, and confirmed that test is now passing.

Flags: needinfo?(mviar)
Pushed by mviar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1688ec45e15f
Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance r=Mardak
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

I have verified this enhancement and I can confirm that the "Feature Callout" screens respect the specification from the received Test Plan.

Verified using the latest Firefox Nightly (106.0a1 Build ID - 20220901095452) installed on Windows 10 x64, macOS 11.6.5, and Linux Mint 20.2 x64.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: