Skip to content

Remove Chrome's temporary files after each run - #2587

Open
soulgalore wants to merge 1 commit into
mainfrom
driver-tmpdir-cleanup
Open

soulgalore wants to merge 1 commit into
mainfrom
driver-tmpdir-cleanup

Conversation

@soulgalore

Copy link
Copy Markdown
Member

Each Chrome or Edge run left about 2.5 MB in the system temp folder: the temporary browser profile, plus small folders that Chrome never removes. Chromedriver deletes the profile a few seconds after the browser closes, but Selenium stops Chromedriver before that happens. When you run many tests on the same machine or in the same container, the disk fills up. One user ran out of disk after a month.

Chromedriver and the browser now get their own temp folder for each run, and Browsertime deletes it when the browser stops.

Fixes sitespeedio/sitespeed.io#4567

Assisted-by: Claude Opus 5.5 noreply@anthropic.com

Each Chrome or Edge run left about 2.5 MB in the system temp folder: the temporary browser profile, plus small folders that Chrome never removes. Chromedriver deletes the profile a few seconds after the browser closes, but Selenium stops Chromedriver before that happens. When you run many tests on the same machine or in the same container, the disk fills up. One user ran out of disk after a month.

Chromedriver and the browser now get their own temp folder for each run, and Browsertime deletes it when the browser stops.

Fixes sitespeedio/sitespeed.io#4567

Assisted-by: Claude Opus 5.5 noreply@anthropic.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.

temp files are not cleanuped

1 participant