Closed Bug 1725683 Opened 3 years ago Closed 3 years ago

[wdspec] Session fixtures silently ignore SessionNotCreated exceptions

Categories

(Testing :: geckodriver, defect, P2)

Default
defect
Points:
2

Tracking

(firefox94 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

Details

(Whiteboard: [bidi-m1-mvp], [wptsync upstream])

Attachments

(1 file)

Both fixtures for session and bidi_session silently ignore the SessionNotCreatedException in case the session_id is valid:

https://searchfox.org/mozilla-central/rev/36904ac58d2528fc59f640db57cc9429103368d3/testing/web-platform/tests/webdriver/tests/support/fixtures.py#116-121,162-167

Instead we should assert for a valid sessionId and capabilities when starting the session, but pass-through all other exceptions.

Right now we ignore all the possible thrown "session not created"
errors unless the session id is not set. This is specifically
problematic for the BiDi session creation, which would fail
silently in case it cannot be created.

Related to BiDi work. Maybe we should consider for M1?

Whiteboard: [webdriver:triage]
Points: --- → 2
Priority: P3 → P2
Whiteboard: [webdriver:triage] → [bidi-m1-mvp]
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aca153106940
[wdspec] Session fixtures should not ignore "session not created" errors. r=webdriver-reviewers,jgraham
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/30360 for changes under testing/web-platform/tests
Whiteboard: [bidi-m1-mvp] → [bidi-m1-mvp], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch

(In reply to Web Platform Test Sync Bot (Matrix: #interop:mozilla.org) from comment #4)

Created web-platform-tests PR
https://github.com/web-platform-tests/wpt/pull/30360 for changes under
testing/web-platform/tests

James, could you please manually merge the PR? The test failures are all about the global timeout of test jobs. Thanks.

Flags: needinfo?(james)
Upstream PR merged by jgraham
Flags: needinfo?(james)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: