Faster Playwright runs. Smaller CI bills.

Currents balances Playwright spec files by duration on the CI machines you already run. Up to 40% faster runs with Currents Orchestration. Up to 70% lower CI cost on spot instances.

Example run · 12 spec files · 4 CI machines

Run timeline split with --shard in file order. Machine 1 gets the three longest spec files and runs for 7 minutes 41 seconds. The other three finish within 4 minutes 9 seconds and sit idle for 11 minutes 21 seconds in total.

Example run: 12 spec files on 4 CI machines. Same spec files, same machines. Only the split changes.

  • Cursor
  • Red Hat
  • Autodesk
  • Snowflake
  • n8n
  • ServiceNow
  • LangChain
  • US EPA
  • Palo Alto Networks
  • Canadian Red Cross

CI is now the slowest step to ship

Every pull request waits on the whole suite, and on the slowest machine while the others sit idle.

Every push pays for the run again. Coding agents push more often, so the wait and the bill grow with them.

Now with . Every run, optimized.

Less idle time, fewer wasted runs

Playwright's --shard splits tests by count and file order, not duration, so machines sit idle waiting on the slowest one. Currents splits by duration, stops failing runs early and makes cheaper spot machines safe to use.

Balanced Sharding

Shard by duration, not file order

Four spec files, two machines. In file order: 20 minutes. Balanced by duration: 13.

Two CI machines run four spec files of 10, 10, 3 and 2 minutes. Split with --shard in file order, machine 1 runs spec01 and spec02 for 20 minutes. Machine 2 finishes spec03 and spec04 in 5 minutes and sits idle for 15. Balanced by duration, machine 1 runs spec01 and spec03 in 13 minutes and machine 2 runs spec02 and spec04 in 12.
  • Keep your --shard jobs.

    Balanced Sharding is one line in your Currents config.

  • An estimated 15% shorter median run.

    From replaying 900+ real sharded Playwright runs. Orchestration goes further: up to 40%.

  • It keeps up with your suite.

    Every run splits by your spec files' recent durations.

Orchestration

Currents Orchestration keeps every machine busy

Balanced Sharding plans the split before the run. Currents Orchestration hands each machine the next spec file the moment it's free, longest first, so a late or slow machine doesn't hold up the run.

Live queue0 waiting
Twelve spec files wait in a queue, longest first, and four CI machines take the next one as each comes free. The queue empties and all 4 machines finish within 3 seconds of each other, 2m 49s (37%) sooner than with --shard.
  • Up to 40% faster.

    Same tests, same machines.

  • Late machines don't hold up the run.

    If one starts late, the others take its share of the spec files.

  • Your CI machines.

    Tests run where they run today. Included in every paid plan.

Fail fast

Stop early, re-run less

Stop a failing run on every machine, then run again only the tests that broke.

catalog/search fails at 2m, and fail fast cancels the run on all 4 machines. The 3 spec files already running finish and keep their results; the 8 still waiting never start. The machines stop early: 9m 42s of machine time the full run would have billed.
  • Fail fast.

    When failures go over the limit you set, Currents cancels the run on every machine.

  • Re-run only what failed.

    The passed tests stay out of it. On an orchestrated run, the failed ones spread over every machine.

  • Agents stop lost runs too.

    Over MCP, an agent can cancel a run that has already failed before it pushes the next fix.

Quarantine

Stop re-running for known flakes

Quarantine a flaky test with a Currents Actions rule, and nobody pays for a whole-suite re-run to get past it.

  • Quarantined, not blocking.

    The flake still runs and reports. With Playwright, its failure no longer fails the run.

  • Failed, blocking.

    Any other failure fails the required Currents Tests check, and the merge waits.

  • No code change.

    Once the Currents fixture is in place, a rule needs no pull request.

Spot instances

Pay less per minute

On spot instances CI cost is up to 70% lower, and an eviction no longer loses tests.

This run’s machines−69% on spot
On demand$0.23
On spot$0.07
Machine 3 is evicted 2m 30s in. Its 2 unfinished spec files move to machines 2 and 4, and all 12 pass in 6m 43s. At an illustrative $0.72 an hour on demand and 70% off on spot, the run's machines cost $0.07 instead of $0.23, 69% less.
  • Spot pricing, no lost files.

    When a machine is evicted, Currents moves its spec files to a healthy one.

  • The run carries on.

    Every file still reports.

  • Runs where you do.

    On AWS, Azure or Google Cloud.

Smart Test Selection

Coming soon

Run only the tests a change impacts

Currents detects the tests a pull request impacts and runs only those, not the whole suite.

  • Shorter runs on every pull request.

    A change to the cart runs the cart's tests.

  • Unsure? It runs everything.

    When Currents can't tell what a change touches, the whole suite runs.

Teams that cut CI time and cost

“We have a fixed amount of time to make sure a code change does not regress our product. As the cadence of changes grew and the product features expanded this became more of a challenge, especially when taking costs into account.”
Gilad Dayagi / Director of Web Platform Engineering at FundGuard

See what your CI could save

Enter three numbers from your pipeline and pick your runner. Runs finish up to 40% faster with Currents Orchestration, and GitHub Actions bills by the minute, so the bill comes down with them.

GitHub Actions Linux runner$0.006/min
Faster, every runUp to8 min20 min → 12 min
Saved on CI, every monthUp to$288$720 → $432 a month

An estimate, and a ceiling: what you save depends on how uneven your shards are today. Prices are GitHub’s list rates for hosted Linux runners. Spot instances need self-hosted runners in your own cloud.

Try it free on your own suite (opens in a new tab)

Set up in three steps

Minutes from signup to your first recorded run.

  1. Record every run

    Start a trial, then add the reporter and your project's keys to CI.

    Start a 14-day free trialRead the setup guide (opens in a new tab)
    Prompt for your agent
    Set up this repository to report test results to Currents. Read https://docs.currents.dev/getting-started/setup-with-an-agent.md and follow it.
  2. Balance your shards

    Keep your --shard jobs and add one line to your Currents config. Each shard gets its spec files by recorded duration.

    Read the Balanced Sharding guide (opens in a new tab)
    currents.config.ts
    // added to the config
      balancedSharding: true,
  3. Go further with orchestration

    Swap --shard for one command. Currents hands each machine the next spec file the moment it's free, and makes spot instances safe to use. Included in every paid plan.

    Read the orchestration guide (opens in a new tab)
    CI test step
    # Before
    npx playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }}
    
    # After
    npx pwc-p run

Questions teams ask

Stop waiting on your slowest shard