{
  "id": 20114787,
  "title": "GitHub Actions test sharding: how many shards actually pay",
  "url": "https://urgent.news/2026/11/15/github-actions-test-sharding-how-many-shards-actually-pay",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-15T04:59:58.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/kalemi/github-actions-test-sharding-how-many-shards-actually-pay-4e0c"
  },
  "original_language": "en",
  "account": "GitHub Actions test sharding divides a test suite across multiple shards to save time, but not every additional shard provides equal value. A measurement on a Latchkey runner showed a 26.8 second suite divided into two shards completed in 13.8 seconds, while four shards reduced it to 9.25 seconds - a 5.5 second savings. However, the billed time increased from 26.77 to 29.0 seconds, so the fourth shard did not justify its cost. Billed time accumulates across all shards, rounding up to the nearest minute. For a small suite, sharding is a loss that only adds up when run multiple times. The savings scale with the work being done, while the fixed penalty per shard remains constant. To achieve optimal sharding, the test file durations should be balanced across shards, ensuring each shard has roughly equal work. Tools like Vitest, Playwright, Jest, and pytest offer flags to split tests by duration or file count, allowing for more even distribution.",
  "summary": "GitHub Actions test sharding trades money for wall clock, and it stops paying at a point you can calculate from two numbers you already have. On a runner we measured, a 26.8 second suite split two ways finished in 13.8 seconds and four ways in 9.2, while the billed time went the other way, from 26.8 seconds to 27.5 and then 29.0. One twelve-file suite, split three ways, measured on a…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "Hacker News",
        "title": "GitHub Incident with Webhooks, Actions, etc.",
        "url": "https://urgent.news/2026/11/11/github-incident-with-webhooks-actions-etc",
        "published": "2026-11-11T20:54:37.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}