servo: Intermittent "session is already started" error for bluetooth tests

Traceback (most recent call last):
  File "/Users/servo/buildbot/slave/mac-rel-wpt4/build/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/protocol.py", line 48, in setup
    self.connect()
  File "/Users/servo/buildbot/slave/mac-rel-wpt4/build/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/executorservodriver.py", line 100, in connect
    self.session.start()
  File "/Users/servo/buildbot/slave/mac-rel-wpt4/build/tests/wpt/web-platform-tests/tools/webdriver/webdriver/client.py", line 421, in start
    value = self.send_command("POST", "session", body=body)
  File "/Users/servo/buildbot/slave/mac-rel-wpt4/build/tests/wpt/web-platform-tests/tools/webdriver/webdriver/client.py", line 472, in send_command
    raise err
SessionNotCreatedException: session not created (500): Session is already started


  ▶ ERROR [expected OK] /bluetooth/characteristic/getDescriptors/gen-characteristic-is-removed.https.html
  └   → ''

I recall seeing this in #21370 as well.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (17 by maintainers)

Commits related to this issue

Most upvoted comments

Good news! Once we update web-platform-tests to include this commit, this issue will be fixed! (As noted here there is still a small chance of getting this error, but the probability of it happening is quite low)

This can be closed now!

It should be possible to reproduce by running ./mach test-wpt --processes 8 --headless --product=servodriver bluetooth. We should file a separate issue for the Illegal constructor exceptions triggered by https://github.com/web-platform-tests/wpt/blob/e45bda7edddd2cffb4169efe2f61812537b09abd/bluetooth/resources/bluetooth-helpers.js#L177.

I have not figured out why yet. I believe it should be possible to add support for multiple sessions to the server, though.