Skip to content

currents-dev/currents-playwright-orchestration-example

Repository files navigation

Currents Orchestration Example

Demo video

Configuring Batch Size

It is recommended to set batchSize = workers

  • Use --pwc-batch-size CLI params, e.g.: pwc-p --pwc-batch-size=3
  • Set environment variable CURRENTS_BATCH_SIZE e.g.: CURRENTS_BATCH_SIZE=3
  • Set the values in currents.confg.ts, e.g.: orchestration.batchSize: 3

Suite Composition

  • 40 long-running tests: 110-120s
  • 40 short tests: 10-30s

Playwright Sharding

  • workers: 2
  • machines: 5
  • overall duration: 15m 38s 🐌

currents-2025-04-28-16 38 18@2x

Currents Batched Orchestration

  • batch size: 2
  • workers: 2
  • machines: 5
  • overall duration: 9m 17s (~41% improvement) 🏎️

currents-2025-04-28-16 39 34@2x