This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to fix chromedriver hanging on chrome
Recently we saw the smokey tests were hanging on production (AWS). On investigating the issue, we found that chrome was failing to respond to Chromedriver commands. The interaction between chromedriver and Chrome is done in the context of a session [1]; we were able to get the active session ID by doing an 'strace' of the chrome/driver processes. curl -d '{"url":"https://www.google.com"}' http://localhost:9515/session/27f4262ab044392b05138540055a8fd6/url This provided some clarity on the reason for the smokey tests hanging, and lead to the following issue, which suggests the issue is related to 'dbus': SeleniumHQ/docker-selenium#87. While this seems to be part of the main Chromium distribution [3], it's not clear if this has made it into Chrome itself. This trials implementing the suggested fix for the smokey process. References ========== [1] https://www.pawangaria.com/post/automation/browser-automation-from-command-line/ [2] https://chromium.googlesource.com/chromium/src/+/2fc330d0b93d4bfd7bd04b9fdd3102e529901f91%5E%21/ [3] https://chromium.googlesource.com/chromium/src/+/refs/heads/master/services/service_manager/embedder/main.cc#274
- Loading branch information