microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
65.04k stars 3.54k forks source link

[Question] on leftover files tmp #5332

Closed kababoom closed 2 years ago

kababoom commented 3 years ago

Moved from playwright-sharp

First of all thanks again for this great piece of work!!!

I do have question, after each session we have leftover files in /tmp starting with playwright_* After a few weeks this piles up and although I can easily clean them I'm wondering if this is intentionally?

Cheers, -M

dgozman commented 3 years ago

Could you please share the list of files in one of these leftover folders? We are creating temporary folders and then removing them. Something seems to be stuck there, so I'd like to know what in particular, to fix the issue.

kababoom commented 3 years ago

Thanks Dmitry,

Below is a list of files in one of the playwright_chromiumdev_profile folders.

/tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6407/crl-set /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6407/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6407/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6407/LICENSE /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6407/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6406/crl-set /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6406/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6406/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6406/LICENSE /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6406/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6408/crl-set /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6408/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6408/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6408/LICENSE /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6408/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6405/crl-set /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6405/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6405/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6405/LICENSE /tmp/playwright_chromiumdev_profile-xqXaHU/CertificateRevocation/6405/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/Local State /tmp/playwright_chromiumdev_profile-xqXaHU/SafetyTips/2559/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/SafetyTips/2559/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/SafetyTips/2559/safety_tips.pb /tmp/playwright_chromiumdev_profile-xqXaHU/SafetyTips/2559/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/SafetyTips/2560/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/SafetyTips/2560/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/SafetyTips/2560/safety_tips.pb /tmp/playwright_chromiumdev_profile-xqXaHU/SafetyTips/2560/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/ShaderCache/GPUCache/data_1 /tmp/playwright_chromiumdev_profile-xqXaHU/Default/Network Persistent State /tmp/playwright_chromiumdev_profile-xqXaHU/Default/Preferences /tmp/playwright_chromiumdev_profile-xqXaHU/GrShaderCache/GPUCache/data_1 /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-be.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-hr.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-es.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-cu.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-bn.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-la.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-fr.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-hu.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-ga.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-or.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-gu.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-sl.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-da.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-nn.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-kn.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-de-ch-1901.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-hy.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-ta.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-und-ethi.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-hi.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-et.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-ml.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-bg.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-eu.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-tk.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-as.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-cy.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-te.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-pt.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-de-1901.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-mn-cyrl.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-en-gb.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-pa.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-de-1996.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-mr.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-en-us.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.5/hyph-nb.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-be.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-hr.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-es.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-cu.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-bn.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-la.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-fr.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-hu.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-ga.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-or.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-gu.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-sl.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-da.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-nn.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-kn.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-de-ch-1901.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-hy.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-ta.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-und-ethi.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-hi.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-et.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-ml.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-bg.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-eu.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-tk.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-as.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-cy.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-te.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-pt.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-de-1901.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-mn-cyrl.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-en-gb.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-pa.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-de-1996.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-mr.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-en-us.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/hyphen-data/90.0.4408.4/hyph-nb.hyb /tmp/playwright_chromiumdev_profile-xqXaHU/Crowd Deny/2021.2.1.1201/manifest.fingerprint /tmp/playwright_chromiumdev_profile-xqXaHU/Crowd Deny/2021.2.1.1201/_metadata/verified_contents.json /tmp/playwright_chromiumdev_profile-xqXaHU/Crowd Deny/2021.2.1.1201/manifest.json /tmp/playwright_chromiumdev_profile-xqXaHU/Crowd Deny/2021.2.1.1201/Preload Data

JoelEinbinder commented 3 years ago

Looks like we are leaving behind chromium profiles, which I'd guess is somewhat expected if we can't gracefully close the browser. @dgozman is this a wont fix? Maybe we could try to clean up old profiles the next time we launch?

kababoom commented 3 years ago

It's not only chromium, there are firefox profiles too. Since we run multiple scripters at the same time 'cleanup on next launch' needs to make sure it does not clean in use profiles which might be troublesome. We now auto remove these folders when older then 1 or 2 hours.

mxschmitt commented 2 years ago

Closing as part of the triage process since it seemed stale or did not get enough upvotes in the past. Please create a new issue with a detailed reproducible or feature request if you still face issues.