Closed Bug 2073118 Opened 2 months ago Closed 1 month ago

[Flaky Test] browser_aitab_validation.js

Categories

(Core :: Machine Learning: General, defect, P1)

defect
Points:
2

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: tetchart, Assigned: jlewis)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(2 external files)

Points: --- → 2
Blocks: 2073116
Assignee: nobody → jlewis
Status: NEW → ASSIGNED
Attachment #9658506 - Attachment description: WIP: Bug 2073118 - Point the Smart Window models browser tests at a local endpoint so a request that escapes the mocks can't reach MLPA. → Bug 2073118 - Stop browser_aitab_generation.js tasks from leaving a generation running after their mocks are restored.
Attachment #9658506 - Attachment description: Bug 2073118 - Stop browser_aitab_generation.js tasks from leaving a generation running after their mocks are restored. → Bug 2073118 - Stop AITab browser tests from leaving a generation running after their mocks are restored.
Attachment #9658506 - Attachment description: Bug 2073118 - Stop AITab browser tests from leaving a generation running after their mocks are restored. → WIP: Bug 2073118 - Stop AITab browser tests from leaving a generation running after their mocks are restored.

The next patch makes rejectAllRequests() async: it will wait for the chat turns MockEngineManager started to settle, and every caller has to await it before cleanupMocks() so no turn outlives the mocks. This patch only adds the awaits (and makes the one synchronous cleanup function that calls it async); rejectAllRequests() is still synchronous here, so no test changes behavior.

Attachment #9658506 - Attachment description: WIP: Bug 2073118 - Stop AITab browser tests from leaving a generation running after their mocks are restored. → Bug 2073118 - Stop AITab browser tests from leaving a generation running after their mocks are restored.
Attachment #9661721 - Attachment description: WIP: Bug 2073118 - Await MockEngineManager.rejectAllRequests() in the Smart Window browser tests. → Bug 2073118 - Await MockEngineManager.rejectAllRequests() in the Smart Window browser tests.
Pushed by jlewis@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/afb7dbd5cbe8 https://hg.mozilla.org/integration/autoland/rev/e430fee30c6a Await MockEngineManager.rejectAllRequests() in the Smart Window browser tests. r=omarg,vazish https://github.com/mozilla-firefox/firefox/commit/5316dd34c335 https://hg.mozilla.org/integration/autoland/rev/de6352c8e6f4 Stop AITab browser tests from leaving a generation running after their mocks are restored. r=omarg,vazish
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
Regressions: 2083304
No longer regressions: 2083304
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: