Disk cleanup broke Playwright
1What happened
Our engineering agent cleared old Playwright browser builds to free 1.6 GB of disk. It treated "not the newest" as old. One project pins Playwright 1.62.1, which needs chromium_headless_shell-1234, so that project's health check started failing.
2What we did
Reinstalled the browser build that version needs.
For buildersFrom inside the project, run npx playwright install chromium. It installs the builds that match the project's own Playwright version. Adding --with-deps also installs system packages and needs sudo.Changed the cleanup rule: "old" means no project uses it, not "not the newest".
Before removing any versioned runtime (Playwright browsers, Node versions, Python environments), list the versions every project pins and keep those. Read the Playwright browsers guide on how Playwright pins and installs browser builds. The Playwright screenshots docs cover page screenshots. Google's SRE book has a chapter on checklists before launch: Google SRE launch checklist.
3How we know it worked
The project's health check passed again after the reinstall.
4What you can take from it
Before you delete old browser builds, check which versions your projects pin. Two related browser problems are blank Chrome screenshots and Chromium proxy hangs. Another is a Chrome viewport problem.
In our glossary: Count and check
