Run every test faster, for less.

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

Example run

12 spec files · 4 CI machines · chromium

Run timeline balanced by Currents from duration history. All four machines finish between 4 minutes 49 seconds and 4 minutes 52 seconds. Split with --shard, the same run took 7 minutes 41 seconds.

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 every push pays for it again. Coding agents push more often, so the wait and the bill grow with them.

Now with . Faster runs, smaller bills.

Every run, faster and cheaper

Playwright's --shard splits by file order and leaves machines idle. Currents splits by duration, stops failing runs early and makes cheaper spot machines safe to use.

Balanced Sharding

Split 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.

  • It keeps up with your suite.

    Every run splits by your spec files' recent durations.

Orchestration

Balance every run, live

Currents Orchestration hands each machine the next spec file from a live queue, longest first, the moment it is free.

Live queue4 waiting
Twelve spec files wait in a queue, longest first, and four CI machines take the next one as each comes free, so all four finish together at 4m 52s. At 2m 52s, machine 1 finishes admin/users.spec.ts and takes orders/returns.spec.ts, the longest file left in the queue. The other three took their next file the moment each came free.
  • A late machine takes fewer.

    The others pick up the files still waiting.

  • Whole spec files.

    Balanced per file, so one long file still runs on one machine.

  • 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.
  • Fail fast.

    When failed tests pass the number you set, the run is cancelled 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.

  • Cancel over MCP.

    An agent working a pull request can cancel a run that has already failed.

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.

  • Only the impacted tests.

    Currents detects which tests a change impacts.

  • Not the whole suite.

    The pull request runs those tests and no others.

Quarantine

Keep flakes out of the way

Quarantine a flaky test with a Currents Actions rule, and nobody re-runs the whole suite 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 Currents Tests, and the merge waits until it passes.

  • 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.

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.
  • Spot pricing, no lost files.

    When your CI passes on the eviction notice, Currents moves that machine's spec files to a healthy one.

  • The run carries on.

    Every file still reports.

  • Orchestrated Playwright runs.

    On AWS, Azure or Google Cloud.

CI runs and bills that came down

“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

Four numbers from your pipeline, against our two published figures: up to 40% faster with Currents Orchestration, up to 70% lower CI cost on spot instances.

Less waiting, every monthUp to12,000minEach run up to 8 min sooner.Lower CI cost on spot instances, every monthUp to$840

50 runs × 20 min × 30 days = 30,000 min · 30,000 min × 40% = 12,000 min · 30,000 min × 4 machines × $0.010 × 70% = $840

An estimate. Time saved depends on how unbalanced your suite is today; the cost figure assumes spot instances.

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

Three steps to a faster pipeline

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
    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. Let Currents split the run

    Swap --shard for one command. Currents balances spec files by duration on your own CI machines. Included in every paid plan.

    Read the orchestration guide
    CI test step
    # Before
    npx playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }}
    
    # After
    npx pwc-p run
  3. Gate the merge

    Install the GitHub App and make the Currents check required. GitLab and Bitbucket too.

    GitHub App docs
    Pull request

Questions teams ask

Stop waiting on your slowest shard