34 / 48 · 16 CI/CD Pipelines · Pipeline Optimization← prev⊞ allnext →☰ Read as one page
5.9Hands-On Exercise
- Measure your current pipeline time end-to-end. Write down each stage's duration.
- Add caching for dependencies and Playwright browsers. Measure the improvement.
- Add test sharding with 3-4 shards. Measure the improvement.
- Add path filtering to skip tests when only docs change.
- Set appropriate
fail-fastsettings for each job type. - Set timeouts on all jobs to prevent hung pipelines.
- Compare before and after metrics. Target: 50% reduction in total pipeline time.