Skip to content

ci: debug chromedriver#1290

Closed
straker wants to merge 8 commits into
developfrom
debug-chromedriver
Closed

ci: debug chromedriver#1290
straker wants to merge 8 commits into
developfrom
debug-chromedriver

Conversation

@straker
Copy link
Copy Markdown
Contributor

@straker straker commented Mar 4, 2026

Chromedriver is constantly failing with what I believe is the v146 update (both axe-core and axe-core-npm are now failing constantly to create chromedriver sessions). Adding verbose logging so I can see what's going on.

No QA required

@straker straker force-pushed the debug-chromedriver branch from f5d26e2 to b8f1a43 Compare March 4, 2026 21:32
@straker
Copy link
Copy Markdown
Contributor Author

straker commented Mar 6, 2026

I tried adding verbose logging to selenium-webdriver using enableVerboseLogging() and loggingTo() a file, but the verbose logs just show chrome failing to start with message: RESPONSE InitSession ERROR session not created: Chrome instance exited. Examine ChromeDriver verbose log to determine the cause. which isn't helpful because these are the logs.... Looking around the web and no one has reported anything about 146 causing problems yet.

Also tried to add disable-dev-shim and disable-gpu but those didn't do anything either.

Closing since this isn't showing anything we can work with.

2026-03-04T21:00:32.6763925Z ====== cli --dir should save a JSON report to the provided directory ======
2026-03-04T21:00:32.6764680Z [1772657986.383][INFO]: Starting ChromeDriver 146.0.7680.31 (4d3225104176d18430bb7bef9f67394686316c2f-refs/branch-heads/7680@{#1274}) on port 34739
2026-03-04T21:00:32.6765645Z [1772657986.383][INFO]: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
2026-03-04T21:00:32.6766341Z [1772657986.386][INFO]: ChromeDriver was started successfully on port 34739
2026-03-04T21:00:32.6766841Z [1772657986.410][INFO]: [ea58a3271a6526c3a473cb86f1053aa3] COMMAND InitSession {
2026-03-04T21:00:32.6767186Z    "capabilities": {
2026-03-04T21:00:32.6767380Z       "alwaysMatch": {
2026-03-04T21:00:32.6767608Z          "browserName": "chrome",
2026-03-04T21:00:32.6767870Z          "goog:chromeOptions": {
2026-03-04T21:00:32.6768148Z             "args": [ "headless", "no-sandbox" ],
2026-03-04T21:00:32.6768634Z             "binary": "/home/runner/.browser-driver-manager/chrome/linux-146.0.7680.31/chrome-linux64/chrome"
2026-03-04T21:00:32.6769200Z          }
2026-03-04T21:00:32.6769369Z       },
2026-03-04T21:00:32.6769551Z       "firstMatch": [ {
2026-03-04T21:00:32.6769749Z       } ]
2026-03-04T21:00:32.6769911Z    }
2026-03-04T21:00:32.6770074Z }
2026-03-04T21:00:32.6770349Z [1772657986.410][INFO]: Populating Preferences file: {
2026-03-04T21:00:32.6770642Z    "alternate_error_pages": {
2026-03-04T21:00:32.6770862Z       "enabled": false
2026-03-04T21:00:32.6771055Z    },
2026-03-04T21:00:32.6771225Z    "autofill": {
2026-03-04T21:00:32.6771411Z       "enabled": false
2026-03-04T21:00:32.6771591Z    },
2026-03-04T21:00:32.6771754Z    "browser": {
2026-03-04T21:00:32.6771966Z       "check_default_browser": false
2026-03-04T21:00:32.6772197Z    },
2026-03-04T21:00:32.6772358Z    "distribution": {
2026-03-04T21:00:32.6772578Z       "import_bookmarks": false,
2026-03-04T21:00:32.6772826Z       "import_history": false,
2026-03-04T21:00:32.6773075Z       "import_search_engine": false,
2026-03-04T21:00:32.6773348Z       "make_chrome_default_for_user": false,
2026-03-04T21:00:32.6773674Z       "skip_first_run_ui": true
2026-03-04T21:00:32.6773922Z    },
2026-03-04T21:00:32.6774093Z    "dns_prefetching": {
2026-03-04T21:00:32.6774289Z       "enabled": false
2026-03-04T21:00:32.6774474Z    },
2026-03-04T21:00:32.6774639Z    "profile": {
2026-03-04T21:00:32.6774831Z       "content_settings": {
2026-03-04T21:00:32.6775044Z          "pattern_pairs": {
2026-03-04T21:00:32.6775264Z             "https://*,*": {
2026-03-04T21:00:32.6775504Z                "media-stream": {
2026-03-04T21:00:32.6775753Z                   "audio": "Default",
2026-03-04T21:00:32.6776002Z                   "video": "Default"
2026-03-04T21:00:32.6776249Z                }
2026-03-04T21:00:32.6776455Z             }
2026-03-04T21:00:32.6776625Z          }
2026-03-04T21:00:32.6776783Z       },
2026-03-04T21:00:32.6776988Z       "default_content_setting_values": {
2026-03-04T21:00:32.6777235Z          "geolocation": 1
2026-03-04T21:00:32.6777432Z       },
2026-03-04T21:00:32.6777623Z       "default_content_settings": {
2026-03-04T21:00:32.6777861Z          "geolocation": 1,
2026-03-04T21:00:32.6778075Z          "mouselock": 1,
2026-03-04T21:00:32.6778283Z          "notifications": 1,
2026-03-04T21:00:32.6778491Z          "popups": 1,
2026-03-04T21:00:32.6778693Z          "ppapi-broker": 1
2026-03-04T21:00:32.6778971Z       },
2026-03-04T21:00:32.6779177Z       "password_manager_enabled": false
2026-03-04T21:00:32.6779401Z    },
2026-03-04T21:00:32.6779569Z    "safebrowsing": {
2026-03-04T21:00:32.6779763Z       "enabled": false
2026-03-04T21:00:32.6779966Z    },
2026-03-04T21:00:32.6780135Z    "search": {
2026-03-04T21:00:32.6780354Z       "suggest_enabled": false
2026-03-04T21:00:32.6780578Z    },
2026-03-04T21:00:32.6780756Z    "translate": {
2026-03-04T21:00:32.6780941Z       "enabled": false
2026-03-04T21:00:32.6781131Z    }
2026-03-04T21:00:32.6781295Z }
2026-03-04T21:00:32.6781560Z [1772657986.410][INFO]: Populating Local State file: {
2026-03-04T21:00:32.6781831Z    "background_mode": {
2026-03-04T21:00:32.6782035Z       "enabled": false
2026-03-04T21:00:32.6782222Z    },
2026-03-04T21:00:32.6782384Z    "ssl": {
2026-03-04T21:00:32.6782551Z       "rev_checking": {
2026-03-04T21:00:32.6782753Z          "enabled": false
2026-03-04T21:00:32.6782952Z       }
2026-03-04T21:00:32.6783109Z    }
2026-03-04T21:00:32.6783262Z }
2026-03-04T21:00:32.6783770Z [1772657986.410][INFO]: ChromeDriver supports communication with Chrome via pipes. This is more reliable and more secure.
2026-03-04T21:00:32.6784716Z [1772657986.410][INFO]: Use the --remote-debugging-pipe Chrome switch instead of the default --remote-debugging-port to enable this communication mode.
2026-03-04T21:00:32.6788156Z [1772657986.410][INFO]: Launching chrome: /home/runner/.browser-driver-manager/chrome/linux-146.0.7680.31/chrome-linux64/chrome --allow-pre-commit-input --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-client-side-phishing-detection --disable-default-apps --disable-features=IgnoreDuplicateNavs,Prewarm --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-logging --headless --log-level=0 --no-first-run --no-sandbox --no-service-autorun --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/org.chromium.Chromium.scoped_dir.XHIsax data:,
2026-03-04T21:00:32.6791310Z [1772657986.996][INFO]: [ea58a3271a6526c3a473cb86f1053aa3] RESPONSE InitSession ERROR session not created: Chrome instance exited. Examine ChromeDriver verbose log to determine the cause.
2026-03-04T21:00:32.6792135Z [1772657986.996][DEBUG]: Log type 'driver' lost 0 entries on destruction
2026-03-04T21:00:32.6792615Z [1772657986.996][DEBUG]: Log type 'browser' lost 0 entries on destruction

straker added a commit that referenced this pull request Mar 9, 2026
It appears chrome/driver v146 has issues and is consistently crashing or
failing to create a session in our webdriverjs & cli tests (which uses
webdriverjs). Trying to [figure out the problem didn't result in
figuring out what went
wrong](#1290) so I'm just
pinning to v145 which still passes the tests. Hopefully this will be
resolved in future versions, but I'll create a tech-debt ticket to look
back at this.

This also brings in @Garbee changes [to fix the
lockfile](#1289) as both
problems are blocking tests.

No QA required

---------

Co-authored-by: Jonathan Garbee <jonathan.garbee@deque.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants