https://github.com/currents-dev/currents-playwright-orchestration-example
Example of speeding up Playwright in CI using Orchestration
https://github.com/currents-dev/currents-playwright-orchestration-example
orchestration playwright playwright-ci playwright-tests
Last synced: 5 months ago
JSON representation
Example of speeding up Playwright in CI using Orchestration
- Host: GitHub
- URL: https://github.com/currents-dev/currents-playwright-orchestration-example
- Owner: currents-dev
- Created: 2025-04-28T06:25:42.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-05-14T01:19:19.000Z (9 months ago)
- Last Synced: 2025-07-17T22:32:28.989Z (7 months ago)
- Topics: orchestration, playwright, playwright-ci, playwright-tests
- Language: TypeScript
- Homepage: https://docs.currents.dev/guides/ci-optimization/playwright-parallelization
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Currents Orchestration Example
[Demo video](https://www.loom.com/share/e2a4ec0167d74e69b9f07d45707cf0f4?sid=b003d756-0e5d-400d-b2a8-3279b63804f2)
### 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 Batched Orchestration
- batch size: 2
- workers: 2
- machines: 5
- overall duration: **9m 17s** (~41% improvement) 🏎️
