Implement Merino session IDs
Categories
(Firefox :: Address Bar, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox104 | --- | verified |
People
(Reporter: adw, Assigned: adw)
References
Details
Attachments
(1 file)
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
This implements Merino session IDs and sequence numbers. Please see
https://mozilla-hub.atlassian.net/browse/SUGGEST-295 for details.
In summary, each request to Merino should include a session ID and a per-session
sequence number. Session IDs should be cleared at the end of engagements.
I added two new tests, a browser smoke test to make sure engagements happen as
expected in the browser and an xpcshell test for deeper testing.
| Assignee | ||
Comment 2•3 years ago
•
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fce66f8d101f4f8aa76a2eb258674f18b9dbfdde
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4e17339e247caef167094637382ac69575cb538e
https://treeherder.mozilla.org/#/jobs?repo=try&revision=38f66cbf3ef7609ad7285e02583c7b56c4414227
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e9d6e491fce4490a7a8e60b4c0b08e257fe56621
Comment 4•3 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 5•3 years ago
|
||
STR for QA
- Set
browser.urlbar.quicksuggest.dataCollection.enabledto true - Open the Network tab in the Browser Toolbox and type "merino" in the filter text box to filter in Merino-related logs
- Type a few characters in the urlbar
- In the Browser Toolbox, verify requests were sent to Merino
- Verify the request URLs include
sid=<UUID>andseq=<number>substrings. You can either look at the "File" column or click on individual log entries to see more info about the request including the individualsidandseqvalues. - Verify the "<UUID>" is an actual UUID, a string like "{d3cfe334-000f-46c3-8ca2-2866841a40ff}"
- Verify the UUID values are the same in all URLs
- Verify the "<number>" values are generally increasing in value with each request. You may see some values that are the same, especially if you type quickly. That's expected.
- Switch back to the main browser window. If you did not move the focus to the Browser Toolbox window, then first move the focus out of the urlbar and then back into it.
- Repeat the steps starting from step 3 again. This time the UUID should be different from what it was before and the "<number>" value should start from zero again.
Comment 6•3 years ago
•
|
||
I have verified this bug on the latest Nightly 104.0a1 build (Build ID: 20220629070023) on Windows 10 x64, macOS 12.4 and Ubuntu 20.04 x64.
- In order to verify this bug I have followed the STR described in comment 5.
Description
•