Playwright Optimizations

Luke Bowerman · Friday Demos · October 16, 2026 · 2:21

Internal-facing Playwright test optimizations that have cut CI time by \~8%, with open PRs targeting 15%. Includes a nightly self-improving skill that evaluates Playwright tests and…

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. It's probably more for internal use. It was worth mentioning this in the acknowledgments, but I sent a bunch of PRs with Playwright optimization. So sorry to everyone who saw them. But in the last week, we've reduced Playwright's running time by about 7-8% . And with the PRs that are open now, we will reach the level of 15%.

  2. We will be able to remove about a quarter of our PR time or CI time from Playwright. This is the largest part of our calculations in CI and wait time. So, yeah, thank you for checking them out. But we will continue to work on it. This was the result of a self-improving script I wrote that runs every night.

  3. I hope that this tool can be implemented so that when creating a PR, it automatically reports: “Hey, you wrote something for Playwright. Please pay attention to this." We are trying to evaluate the added Playwright test and see if it can be added to the existing one. Also consider Playwright's best practices for productivity . And, finally, try to move your tests from Playwright to integration or module tests, because end-to-end tests are overrated for most tasks.

  4. Of course, there are cases where they are appropriate, but yes. So, there will be more information later. So, yes. Another announcement for engineers: I've been investigating why the GitHub upload indicator hangs forever when you try to merge a PR. It turned out that this was due to an excessive number of open PRs. So I'm going to have a " festival of shame" today or Monday to appeal to everyone to stop this.

  5. I'm definitely part of this problem, so I'll be cleaning up too. We automate this. The main thing is to simply close your outdated PRs. This is bothering everyone. So, yes . We will run a procedure for this based on our data from GitHub. We already have a script, not to be confused with the stale bot, which closes PR every 60 days.

  6. We will reduce this period to 14 days, because PRs are actually aging faster now. But we will also implement a few more useful automations. There are still points that can be improved. We found a few bad patterns, but more on that later. So, excuse me. Steeply. That's all.