Closed Bug 1742359 Opened 3 years ago Closed 3 years ago

Stale WebDriverBiDiConnection instances cause extra submission for registered events

Categories

(Remote Protocol :: WebDriver BiDi, defect, P2)

defect
Points:
2

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [bidi-m2-mvp])

Attachments

(1 file)

As seen recently for log.entryAdded events related Wdspec tests the WebDriver BiDi connections are not getting correctly closed in-between (parameterized) tests, which means that a lot of subscriptions for events will remain and clutter the log until Firefox gets restarted due to eg. a change to capabilities.

Here an example of a newly added test that runs 10 parameterized variations and causing 10 log.entryAdded events to be submitted:

https://treeherder.mozilla.org/logviewer?job_id=358821989&repo=autoland&lineNumber=4133-4160

What's actually happening here is that for each test we drop the connection in the client, and reconnect for the next test. Hereby we do not create a new WebDriver session and as such re-connect to the previously created one.

The problem is that even we detect the closing of the WebSocket connection, we do not remove it from the list of connections for the given WebDriver session.

Proposing for M2 to help investigating wdspec test failures which right now is very hard due to the amount of unnecessary log messages.

Whiteboard: [bidi-m2-mvp]
Whiteboard: [bidi-m2-mvp] → [webdriver:triage]
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/af594fce1140 [webdriver-bidi] Remove closed WebSocket connection from Session. r=webdriver-reviewers,jdescottes

Given that the fix on this bug got already landed we have to add it to M2.

Points: --- → 2
Whiteboard: [webdriver:triage] → [bidi-m2-mvp]
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Priority: P3 → P2
Summary: [wdspec] Stale WebDriverBiDiConnection instances cause extra submission for registered events → Stale WebDriverBiDiConnection instances cause extra submission for registered events
See Also: → 1732611
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: