-
- Notifications
You must be signed in to change notification settings - Fork 8.6k
[grid] ensure all states of StartOrDie are handled #11297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportBase: 52.69% // Head: 52.69% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@ ## trunk #11297 +/- ## ======================================= Coverage 52.69% 52.69% ======================================= Files 82 82 Lines 5545 5545 Branches 198 198 ======================================= Hits 2922 2922 Misses 2425 2425 Partials 198 198 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
| This is the exception i saw before this patch: |
| Here is some code to provoke the DriverService.start will not wait for the port to be opened in some situations: Log output (the number of spins it takes to fail varies for each run): |
fe02fa4 to 51fbc1b Compare
diemol left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @joerg1985!
DriverService.start did not fail, if the execution of the driver process was never started or the process did not bind the port.
51fbc1b to 5259892 Compare | SonarCloud Quality Gate failed. |








Description
DriverService.start did not fail, if the execution of the driver process was never started or the process did not bind the port.
In this case the status was PROCESS_IS_ACTIVE and the execution continued, trying to connect to the not bound port. Now there are meaningful exceptions raised to indicate the issue either "Timed out waiting for driver process to start." or "Timed out waiting for driver server to bind the port."
Motivation and Context
I had some driver/browser startup error with a SessionNotCreatedException caused by a ConnectionException, without a helpful message.
Types of changes
Checklist