Back to changelog

@currents/playwright 1.3.0

What if you could run E2E tests on spot instances?

@currents/playwright 1.3.0

What if you could run E2E tests on spot instances?

  • Spot Instances can reduce CI costs by up to 90% 🤩
  • However, spot instances can be terminated at any time, which can cause the loss of the test results 😞

Currents Orchestration for Playwright automatically reassigns the tests from to-be-terminated spot instances to another CI machine.

How it works?

@currents/playwright@1.3.0 introduces a new flag --pwc-reset-signal SIGUSR1|SIGUSR2.

After receiving an eviction / termination notifications from your cloud provider, you can send the POSIX signal to pwc-p process to reassign the affected tests to a different machine.

  • ✅ no need to rerun the whole testing suite
  • ✅ no loss of tests results
  • ✅ enjoy the reduced cost of spot instances
  • ✅ can be used for other scenarios - e.g. move tests to a different machine based on any event / condition.

Read more