Add 'session not created' to Chrome driver retry error snippets#1575
Merged
ilonatommy merged 1 commit intomainfrom Mar 23, 2026
Merged
Add 'session not created' to Chrome driver retry error snippets#1575ilonatommy merged 1 commit intomainfrom
ilonatommy merged 1 commit intomainfrom
Conversation
The retry logic in GetChromiumDriver catches transient Chrome startup
failures and retries up to 3 times. However, the error snippet list
missed the broad 'session not created' pattern, which covers several
Chrome crash variants including:
session not created: Chrome instance exited.
session not created: Chrome failed to start: crashed.
The existing snippets ('exited abnormally', 'failed to start', etc.)
have been added reactively over time as new error messages surfaced.
Adding 'session not created' as a broader pattern covers current and
future variants of this class of transient Chrome startup failure.
Observed in dotnet/runtime#125566 (Chrome 146 bump) where 2 of 202
Helix work items failed with 'session not created: Chrome instance
exited' — the retry never fired because no snippet matched.
Co-authored-by: Copilot <[email protected]>
maraf
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The retry logic in
GetChromiumDrivercatches transient Chrome startup failures and retries up to 3 times, matching error messages against a list of known snippets:exited abnormallyCannot start the driver servicefailed to startDevToolsActivePort file doesn't existHowever, Chrome can also crash during session creation with error messages like:
This error doesn't match any of the existing snippets, so the retry logic never fires and the test fails immediately.
Context
Observed in dotnet/runtime#125566 (Chrome version bump to 146.0.7680.80), where 2 of 202 Helix work items failed with this error but also on the next bump PR and other runtime PRs. The existing snippets have been added reactively over the years as new Chrome crash messages appeared (see #513, #656, #1563).
Fix
Add
session not createdas a broader error snippet. This covers:session not created: Chrome instance exited.(the immediate trigger)session not created: Chrome failed to start: crashed.(already partially covered byfailed to start)session not created: ...variantsThis is intentionally broader than adding just
Chrome instance exitedto avoid the pattern of chasing individual error messages.