<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/playwright-ci-at-scale-what-works-in-github-and-gitlab-42ykbvp0e" -->

---
title: Playwright CI at Scale: What Works in GitHub and GitLab
description: A deep-dive comparison of running Playwright test suites at scale on GitHub Actions versus GitLab CI, covering shard imbalance, report merging, retry...
canonical: https://daily.dev/posts/playwright-ci-at-scale-what-works-in-github-and-gitlab-42ykbvp0e
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Playwright CI at Scale: What Works in GitHub and GitLab | daily.dev
og:description: A deep-dive comparison of running Playwright test suites at scale on GitHub Actions versus GitLab CI, covering shard imbalance, report merging, retry...
og:url: https://daily.dev/posts/playwright-ci-at-scale-what-works-in-github-and-gitlab-42ykbvp0e
og:image: https://api.daily.dev/og/posts/42YKBvp0E.png
og:image:alt: Playwright CI at Scale: What Works in GitHub and GitLab
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Playwright CI at Scale: What Works in GitHub and GitLab

**[Currents](https://daily.dev/sources/currents)** · 20 min read · 0 upvotes · 0 comments

## Summary

A deep-dive comparison of running Playwright test suites at scale on GitHub Actions versus GitLab CI, covering shard imbalance, report merging, retry inflation, cache invalidation, artifact handling, billing, and runner reliability. Both platforms distribute test shards statically at configuration time, which breaks down as suites grow because execution time is not uniform across shards. The piece walks through platform-specific mitigations (dynamic matrix generation, blob reporters, DAG-based artifact control, cache policies, /dev/shm tuning) and a decision framework based on measured shard duration variance for when to introduce external test orchestration instead of tuning native CI configuration further.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://currents.dev/posts/playwright-ci-at-scale-github-gitlab>

## Questions this post answers

### What does Playwright's --test-list flag do and which version added it?

Playwright v1.56 introduced the --test-list flag, which lets you feed a custom, pre-computed list of tests to each CI shard instead of relying on the built-in --shard count-based splitting. This enables bin-packing strategies (e.g., Longest Processing Time First) using historical test durations to balance shard execution time more evenly, rather than just balancing test counts. Version 1.58 later added an experimental PWTEST_SHARD_WEIGHTS env var for manual weight assignment.

_Teams tuning Playwright CI performance can track version-specific flags like this via daily.dev._

### Why do my Playwright CI shards finish at very different times even with fullyParallel enabled?

Shard imbalance persists because fullyParallel distributes individual tests by count, not by execution duration, so a shard with five 30-second tests finishes much later than one with fifty 2-second tests despite equal test counts. Real-world data from the playwright-orchestrator project showed shard durations of 31, 15, 22, and 11 minutes in a 4-shard setup, a 182% gap between slowest and fastest shard.

_Anyone debugging flaky CI timing can compare sharding strategies and fixes surfaced on daily.dev._

### How many times can a single Playwright test actually run when both Playwright retries and CI job retries are configured?

A test with Playwright's retries: 2 running inside a CI job configured with retry: max: 2 can execute up to 9 times total, since each of the 3 job attempts allows 3 Playwright attempts (1 original plus 2 retries). Each attempt generates its own trace and video artifacts, which inflates storage costs and can waste hours of compute daily across many pull requests with flaky tests.

_Engineers designing CI retry policies can dig into these tradeoffs through daily.dev._

## Similar posts on daily.dev

- [Best Test Reporting Tools for Playwright in CI, Compared](https://daily.dev/posts/best-test-reporting-tools-for-playwright-in-ci-compared-pmsifgk90) · Currents · 0 upvotes · 0 comments
- [Scaling Testing Agents Across the Enterprise](https://daily.dev/posts/scaling-testing-agents-across-the-enterprise-r0sqtkbrj) · Mabl Engineering Blog · 1 upvotes · 0 comments
- [Leapwork Play Reaches GA with Governance for Playwright Tests](https://daily.dev/posts/leapwork-play-reaches-ga-with-governance-for-playwright-tests-ndntw7k8d) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#cicd](https://daily.dev/tags/cicd), [#github-actions](https://daily.dev/tags/github-actions), [#gitlab-ci](https://daily.dev/tags/gitlab-ci)

[View this post on daily.dev](https://daily.dev/posts/playwright-ci-at-scale-what-works-in-github-and-gitlab-42ykbvp0e)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Playwright CI at Scale: What Works in GitHub and GitLab","url":"https://daily.dev/posts/playwright-ci-at-scale-what-works-in-github-and-gitlab-42ykbvp0e","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/playwright-ci-at-scale-what-works-in-github-and-gitlab-42ykbvp0e"},"datePublished":"2026-09-06T08:56:39.036Z","dateModified":"2026-09-06T13:06:54.572Z","description":"A deep-dive comparison of running Playwright test suites at scale on GitHub Actions versus GitLab CI, covering shard imbalance, report merging, retry...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/41537cc5529ea43811586e6500bf5894?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/41537cc5529ea43811586e6500bf5894?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Currents","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Currents","logo":"https://media.daily.dev/image/upload/s--RxsiMZ1S--/f_auto,q_auto/v1788684994/logos/currents?_a=BAMAMicg0","url":"https://daily.dev/sources/currents"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/playwright-ci-at-scale-what-works-in-github-and-gitlab-42ykbvp0e","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cicd,github-actions,gitlab-ci","timeRequired":"PT20M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Currents","item":"https://daily.dev/sources/currents"},{"@type":"ListItem","position":3,"name":"Playwright CI at Scale: What Works in GitHub and GitLab"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/playwright-ci-at-scale-what-works-in-github-and-gitlab-42ykbvp0e#faq","mainEntity":[{"@type":"Question","name":"What does Playwright's --test-list flag do and which version added it?","acceptedAnswer":{"@type":"Answer","text":"Playwright v1.56 introduced the --test-list flag, which lets you feed a custom, pre-computed list of tests to each CI shard instead of relying on the built-in --shard count-based splitting. This enables bin-packing strategies (e.g., Longest Processing Time First) using historical test durations to balance shard execution time more evenly, rather than just balancing test counts. Version 1.58 later added an experimental PWTEST_SHARD_WEIGHTS env var for manual weight assignment. Teams tuning Playwright CI performance can track version-specific flags like this via daily.dev."}},{"@type":"Question","name":"Why do my Playwright CI shards finish at very different times even with fullyParallel enabled?","acceptedAnswer":{"@type":"Answer","text":"Shard imbalance persists because fullyParallel distributes individual tests by count, not by execution duration, so a shard with five 30-second tests finishes much later than one with fifty 2-second tests despite equal test counts. Real-world data from the playwright-orchestrator project showed shard durations of 31, 15, 22, and 11 minutes in a 4-shard setup, a 182% gap between slowest and fastest shard. Anyone debugging flaky CI timing can compare sharding strategies and fixes surfaced on daily.dev."}},{"@type":"Question","name":"How many times can a single Playwright test actually run when both Playwright retries and CI job retries are configured?","acceptedAnswer":{"@type":"Answer","text":"A test with Playwright's retries: 2 running inside a CI job configured with retry: max: 2 can execute up to 9 times total, since each of the 3 job attempts allows 3 Playwright attempts (1 original plus 2 retries). Each attempt generates its own trace and video artifacts, which inflates storage costs and can waste hours of compute daily across many pull requests with flaky tests. Engineers designing CI retry policies can dig into these tradeoffs through daily.dev."}}]}
```

