← All projects
Project record1 mention
Originally shared on Hacker News

SALT

A shard balancing capability for Playwright Test that uses the new API released in Playwright v1.62 together with historical test durations to balance tests across shards. It implements SALT, a specialized variant of the LPT job scheduling algorithm tailored to Playwright test suites; in WordPress's Gutenberg project it cut test runtime from 35 minutes to 23.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. SALT

    A shard balancing capability for Playwright Test that uses the new API released in Playwright v1.62 together with historical test durations to balance tests across shards. It implements SALT, a specialized variant of the LPT job scheduling algorithm tailored to Playwright test suites; in WordPress's Gutenberg project it cut test runtime from 35 minutes to 23.

    Posted by @aslushnikov · Original source ↗

    Source text · @aslushnikov · · Source ↗

    I've been working on shard balancing for Playwright Test. The idea is to use the new API released in Playwright v1.62 together with historical test durations to balance tests across shards. I ended up designing a specialized variant of LPT that works well for Playwright test suites. It's now used in WordPress's Gutenberg project, where it cut test runtime from 35 minutes to 23. The algorithm is called SALT.