{
  "format": 3,
  "id": "5.2",
  "title": "Reporters, shard ZIPs and merge replay",
  "layers": {
    "app": {
      "label": "App"
    },
    "runner": {
      "label": "Runner"
    }
  },
  "lanes": {
    "events": {
      "label": "RECORDED TEST EVENTS",
      "layer": "app",
      "y": 16,
      "h": 72,
      "x": 16,
      "w": 667.5
    },
    "runner": {
      "label": "REPORTERS / MERGE",
      "layer": "runner",
      "y": 116,
      "h": 522.4000000000001,
      "x": 16,
      "w": 667.5
    }
  },
  "frames": {},
  "nodes": {
    "event": {
      "label": "recorded test events",
      "layer": "app",
      "lane": "events",
      "box": [
        108.25,
        40,
        155,
        36
      ]
    },
    "saved": {
      "label": "saved test: failed",
      "layer": "app",
      "lane": "events",
      "box": [
        295.25,
        40,
        132,
        36
      ]
    },
    "list": {
      "label": "list reporter",
      "layer": "runner",
      "lane": "runner",
      "box": [
        227.75,
        252.6,
        98,
        36
      ]
    },
    "blob": {
      "label": "blob reporter",
      "layer": "runner",
      "lane": "runner",
      "box": [
        65,
        252.6,
        107,
        36
      ]
    },
    "callback": {
      "label": "callback error",
      "layer": "runner",
      "lane": "runner",
      "fail": true,
      "box": [
        221.75,
        365.2,
        110,
        36
      ]
    },
    "zip": {
      "label": "shard ZIP",
      "layer": "runner",
      "lane": "runner",
      "box": [
        77,
        365.2,
        83,
        36
      ]
    },
    "resources": {
      "label": "resources/ attachments",
      "layer": "runner",
      "lane": "runner",
      "box": [
        32,
        477.8,
        173,
        36
      ]
    },
    "sorted": {
      "label": "sorted valid blobs",
      "layer": "runner",
      "lane": "runner",
      "box": [
        459.25,
        140,
        136,
        36
      ]
    },
    "ids": {
      "label": "unique test IDs",
      "layer": "runner",
      "lane": "runner",
      "box": [
        467.75,
        252.6,
        119,
        36
      ]
    },
    "workers": {
      "label": "worker index offset",
      "layer": "runner",
      "lane": "runner",
      "box": [
        454.75,
        365.2,
        145,
        36
      ]
    },
    "replay": {
      "label": "replay saved events",
      "layer": "runner",
      "lane": "runner",
      "box": [
        451.75,
        477.8,
        151,
        36
      ]
    },
    "passed": {
      "label": "merge: passed",
      "layer": "runner",
      "lane": "runner",
      "box": [
        553.5,
        590.4000000000001,
        118,
        36
      ]
    },
    "error": {
      "label": "merge: reporter error",
      "layer": "runner",
      "lane": "runner",
      "fail": true,
      "box": [
        362.5,
        590.4000000000001,
        159,
        36
      ]
    }
  },
  "edges": {
    "toList": {
      "from": "event",
      "to": "list",
      "label": {
        "at": [
          205.966,
          186.8
        ],
        "text": "dispatch"
      },
      "path": "M185.75,76 L185.75,164.3 L276.75,164.3 L276.75,252.6",
      "badge": [
        197.125,
        164.3
      ]
    },
    "toBlob": {
      "from": "event",
      "to": "blob",
      "label": {
        "at": [
          110.54000000000002,
          124.35000000000001
        ],
        "text": "same event"
      },
      "path": "M185.75,76 L185.75,164.3 L118.5,164.3 L118.5,252.6",
      "badge": [
        152.125,
        164.3
      ]
    },
    "caught": {
      "from": "list",
      "to": "callback",
      "label": {
        "at": [
          288.75,
          331.09999999999997
        ],
        "text": "caught"
      },
      "path": "M276.75,288.6 L276.75,326.9 L276.75,365.2",
      "badge": [
        276.75,
        326.9
      ]
    },
    "save": {
      "from": "blob",
      "to": "zip",
      "label": {
        "at": [
          130.5,
          331.09999999999997
        ],
        "text": "save"
      },
      "path": "M118.5,288.6 L118.5,326.9 L118.5,365.2",
      "badge": [
        118.5,
        326.9
      ]
    },
    "include": {
      "from": "zip",
      "to": "resources",
      "label": {
        "at": [
          130.49999999999997,
          443.7
        ],
        "text": "include"
      },
      "path": "M118.5,401.2 L118.5,439.5 L118.5,477.8",
      "badge": [
        118.5,
        444.2875
      ]
    },
    "patchIds": {
      "from": "sorted",
      "to": "ids",
      "label": {
        "at": [
          539.25,
          218.5
        ],
        "text": "patch IDs"
      },
      "path": "M527.25,176 L527.25,214.3 L527.25,252.6",
      "badge": [
        527.25,
        214.3
      ]
    },
    "offset": {
      "from": "ids",
      "to": "workers",
      "label": {
        "at": [
          539.25,
          331.09999999999997
        ],
        "text": "offset"
      },
      "path": "M527.25,288.6 L527.25,326.9 L527.25,365.2",
      "badge": [
        527.25,
        326.9
      ]
    },
    "dispatch": {
      "from": "workers",
      "to": "replay",
      "label": {
        "at": [
          539.25,
          443.7
        ],
        "text": "dispatch"
      },
      "path": "M527.25,401.2 L527.25,439.5 L527.25,477.8",
      "badge": [
        527.25,
        439.5
      ]
    },
    "pass": {
      "from": "replay",
      "to": "passed",
      "label": {
        "at": [
          624.5,
          556.3000000000001
        ],
        "text": "no error"
      },
      "path": "M554.5057726465365,513.8 L612.5,552.1 L612.5,590.4000000000001",
      "badge": [
        599.4826396467157,
        543.5031977960128
      ]
    },
    "fail": {
      "from": "replay",
      "to": "error",
      "label": {
        "at": [
          453.99999999999994,
          556.3000000000001
        ],
        "text": "reporter error"
      },
      "path": "M499.9942273534636,513.8 L442,552.1 L442,590.4000000000001",
      "badge": [
        442,
        556.8875
      ]
    }
  },
  "scenarios": [
    {
      "id": "how",
      "label": "How reporters and merge work",
      "display": {
        "counterLabel": false,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "one-event-reaches-every-reporter",
          "title": "One event reaches every reporter",
          "text": "A run sends the same events to every reporter in your list, in order.",
          "show": [
            "event",
            "list",
            "blob"
          ],
          "current": [
            "event",
            "list",
            "blob"
          ],
          "edges": [
            "toList",
            "toBlob"
          ],
          "defs": [
            "delivery"
          ],
          "log": [],
          "sources": [
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "multiplexer.ts:125-132",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L125-L132"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "a-thrown-callback-is-recorded",
          "title": "A thrown callback is recorded",
          "text": "Playwright records the error and goes on with the other reporters.",
          "show": [
            "callback"
          ],
          "current": [
            "callback"
          ],
          "edges": [
            "caught"
          ],
          "defs": [
            "delivery"
          ],
          "log": [],
          "sources": [
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "multiplexer.ts:125-132",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L125-L132"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "each-shard-saves-its-own-zip",
          "title": "Each shard saves its own ZIP",
          "text": "Saved events and existing file attachments go into the same ZIP.",
          "show": [
            "zip"
          ],
          "current": [
            "zip"
          ],
          "edges": [
            "save"
          ],
          "defs": [
            "zip"
          ],
          "code": "ci",
          "log": [],
          "sources": [
            {
              "label": "blob.ts:45-50",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L45-L50"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "attachment-paths-stay-separate",
          "title": "Attachment paths stay separate",
          "text": "A per-run salt avoids clashes between shards.",
          "show": [
            "resources"
          ],
          "current": [
            "resources"
          ],
          "edges": [
            "include"
          ],
          "defs": [
            "resources"
          ],
          "log": [],
          "sources": [
            {
              "label": "blob.ts:45-50",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L45-L50"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "valid-blobs-have-a-deterministic",
          "title": "Valid blobs have a deterministic order",
          "text": "Merge sorts the blobs by metadata name, shard number, then ZIP path.",
          "show": [
            "sorted"
          ],
          "current": [
            "sorted"
          ],
          "edges": [],
          "defs": [
            "sort"
          ],
          "log": [],
          "sources": [
            {
              "label": "merge.ts:213-228",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L213-L228"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "colliding-test-ids-are-renamed",
          "title": "Colliding test IDs are renamed",
          "text": "Each sorted blob supplies its position as salt for IDs used in another blob.",
          "show": [
            "ids"
          ],
          "current": [
            "ids"
          ],
          "edges": [
            "patchIds"
          ],
          "defs": [
            "ids"
          ],
          "log": [],
          "sources": [
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "worker-numbers-are-saved-metadat",
          "title": "Worker numbers are saved metadata",
          "text": "Merge offsets worker indices, patches events and replays them. Tests do not run again.",
          "show": [
            "workers",
            "replay"
          ],
          "current": [
            "workers",
            "replay"
          ],
          "edges": [
            "offset",
            "dispatch"
          ],
          "defs": [
            "workers",
            "replay",
            "events"
          ],
          "log": [],
          "sources": [
            {
              "label": "blob.ts:45-50",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L45-L50"
            },
            {
              "label": "merge.ts:79-89",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L79-L89"
            },
            {
              "label": "merge.ts:96-108",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L96-L108"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "the-merge-result-is-separate",
          "title": "The merge result is separate",
          "text": "After valid inputs complete replay, only reporter errors fail the merge. Saved failed tests remain in the report.",
          "show": [
            "saved",
            "passed",
            "error"
          ],
          "current": [
            "saved",
            "passed",
            "error"
          ],
          "edges": [
            "pass",
            "fail"
          ],
          "defs": [
            "result"
          ],
          "code": "result",
          "log": [],
          "sources": [
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        }
      ]
    },
    {
      "id": "fan-out",
      "label": "Fan out",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "One event, two reporters",
        "text": "reporter: [['list'], ['blob']] · ordinary test-end event"
      },
      "steps": [
        {
          "id": "a-test-end-event-reaches-the-rep",
          "title": "A test-end event reaches the reporters.",
          "text": "reporter: [['list'], ['blob']] · ordinary test-end event",
          "show": [
            "event"
          ],
          "current": [
            "event"
          ],
          "edges": [],
          "defs": [
            "state-fan-out-0"
          ],
          "log": [],
          "sources": [
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "list-receives-the-event-before-b",
          "title": "List receives the event before blob.",
          "text": "reporter: [['list'], ['blob']] · ordinary test-end event",
          "show": [
            "list"
          ],
          "current": [
            "list"
          ],
          "edges": [
            "toList"
          ],
          "defs": [
            "state-fan-out-1"
          ],
          "log": [],
          "sources": [
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "a-thrown-callback-is-recorded-de",
          "title": "A thrown callback is recorded; delivery continues.",
          "text": "reporter: [['list'], ['blob']] · ordinary test-end event",
          "show": [
            "callback"
          ],
          "current": [
            "callback"
          ],
          "edges": [
            "caught"
          ],
          "defs": [
            "state-fan-out-2"
          ],
          "log": [],
          "sources": [
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "multiplexer.ts:125-132",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L125-L132"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "event",
          "step": "a-test-end-event-reaches-the-rep",
          "log": []
        },
        {
          "node": "list",
          "step": "list-receives-the-event-before-b",
          "log": [],
          "edge": "toList"
        },
        {
          "node": "callback",
          "step": "a-thrown-callback-is-recorded-de",
          "log": [],
          "edge": "caught",
          "fail": true
        },
        {
          "node": "blob",
          "step": "a-thrown-callback-is-recorded-de",
          "log": []
        }
      ]
    },
    {
      "id": "save-shards",
      "label": "Save shards",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "Two shards from an unfiltered run",
        "text": "No filters or tags; each shard saves one ZIP. Existing file attachments are included."
      },
      "steps": [
        {
          "id": "each-shard-writes-its-own-blob",
          "title": "Each shard writes its own blob.",
          "text": "No filters or tags; each shard saves one ZIP. Existing file attachments are included.",
          "show": [
            "zip"
          ],
          "current": [
            "zip"
          ],
          "edges": [],
          "defs": [
            "state-save-shards-0"
          ],
          "code": "ci",
          "log": [],
          "sources": [
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "each-zip-holds-saved-events-and",
          "title": "Each ZIP holds saved events and attachments.",
          "text": "No filters or tags; each shard saves one ZIP. Existing file attachments are included.",
          "show": [
            "resources"
          ],
          "current": [
            "resources"
          ],
          "edges": [
            "include"
          ],
          "defs": [
            "state-save-shards-1"
          ],
          "log": [],
          "sources": [
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "matching-attachment-paths-stay-s",
          "title": "Matching attachment paths stay separate.",
          "text": "No filters or tags; each shard saves one ZIP. Existing file attachments are included.",
          "show": [
            "blob"
          ],
          "current": [
            "blob"
          ],
          "edges": [],
          "defs": [
            "state-save-shards-2"
          ],
          "log": [],
          "sources": [
            {
              "label": "blob.ts:45-50",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L45-L50"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "zip",
          "step": "each-shard-writes-its-own-blob",
          "log": []
        },
        {
          "node": "resources",
          "step": "each-zip-holds-saved-events-and",
          "log": [],
          "edge": "include"
        },
        {
          "node": "blob",
          "step": "matching-attachment-paths-stay-s",
          "log": []
        }
      ]
    },
    {
      "id": "merge-replay",
      "label": "Merge replay",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "cumulative"
      },
      "whole": {
        "title": "Replay with example collisions",
        "text": "Two valid inputs: both IDs t, both workers 0. Merge reporter writes no terminal output."
      },
      "steps": [
        {
          "id": "read-two-valid-blobs-in-shard-or",
          "title": "Read two valid blobs in shard order.",
          "text": "Two valid inputs: both IDs t, both workers 0. Merge reporter writes no terminal output.",
          "show": [
            "sorted"
          ],
          "current": [
            "sorted"
          ],
          "edges": [],
          "defs": [
            "state-merge-replay-0"
          ],
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events"
          ],
          "sources": [
            {
              "label": "merge.ts:213-228",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L213-L228"
            },
            {
              "label": "merge.ts:54-58",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L54-L58"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "keep-the-first-t-change-the-seco",
          "title": "Keep the first t; change the second to t1.",
          "text": "Two valid inputs: both IDs t, both workers 0. Merge reporter writes no terminal output.",
          "show": [
            "ids"
          ],
          "current": [
            "ids"
          ],
          "edges": [
            "patchIds"
          ],
          "defs": [
            "state-merge-replay-1"
          ],
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events"
          ],
          "sources": [
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "the-second-worker-gains-an-offse",
          "title": "The second worker gains an offset of 1.",
          "text": "Two valid inputs: both IDs t, both workers 0. Merge reporter writes no terminal output.",
          "show": [
            "workers"
          ],
          "current": [
            "workers"
          ],
          "edges": [
            "offset"
          ],
          "defs": [
            "state-merge-replay-2"
          ],
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events",
            "processing test events"
          ],
          "sources": [
            {
              "label": "merge.ts:96-108",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L96-L108"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "replay-saved-events-tests-do-not",
          "title": "Replay saved events; tests do not run again.",
          "text": "Two valid inputs: both IDs t, both workers 0. Merge reporter writes no terminal output.",
          "show": [
            "replay"
          ],
          "current": [
            "replay"
          ],
          "edges": [
            "dispatch"
          ],
          "defs": [
            "state-merge-replay-3"
          ],
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events",
            "processing test events",
            "building final report"
          ],
          "sources": [
            {
              "label": "merge.ts:79-89",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L79-L89"
            },
            {
              "label": "merge.ts:96-108",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L96-L108"
            },
            {
              "label": "merge.ts:54-58",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L54-L58"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "saved-test-failures-do-not-fail",
          "title": "Saved test failures do not fail this completed merge.",
          "text": "Two valid inputs: both IDs t, both workers 0. Merge reporter writes no terminal output.",
          "show": [
            "passed"
          ],
          "current": [
            "passed"
          ],
          "edges": [
            "pass"
          ],
          "defs": [
            "state-merge-replay-4"
          ],
          "code": "result",
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events",
            "processing test events",
            "building final report",
            "finished building report"
          ],
          "sources": [
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            },
            {
              "label": "merge.ts:54-58",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L54-L58"
            },
            {
              "label": "merge.ts:79-85",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L79-L85"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "sorted",
          "step": "read-two-valid-blobs-in-shard-or",
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events"
          ]
        },
        {
          "node": "ids",
          "step": "keep-the-first-t-change-the-seco",
          "log": [],
          "edge": "patchIds"
        },
        {
          "node": "workers",
          "step": "the-second-worker-gains-an-offse",
          "log": [
            "processing test events"
          ],
          "edge": "offset"
        },
        {
          "node": "replay",
          "step": "replay-saved-events-tests-do-not",
          "log": [
            "building final report"
          ],
          "edge": "dispatch"
        },
        {
          "node": "passed",
          "step": "saved-test-failures-do-not-fail",
          "log": [
            "finished building report"
          ],
          "edge": "pass"
        }
      ]
    },
    {
      "id": "reporter-error",
      "label": "Reporter error",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "cumulative"
      },
      "whole": {
        "title": "A reporter fails during onEnd",
        "text": "Same valid inputs; the merge reporter throws in onEnd and writes no terminal output."
      },
      "steps": [
        {
          "id": "read-two-valid-blobs-in-shard-or",
          "title": "Read two valid blobs in shard order.",
          "text": "Same valid inputs; the merge reporter throws in onEnd and writes no terminal output.",
          "show": [
            "sorted"
          ],
          "current": [
            "sorted"
          ],
          "edges": [],
          "defs": [
            "state-reporter-error-0"
          ],
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events"
          ],
          "sources": [
            {
              "label": "merge.ts:213-228",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L213-L228"
            },
            {
              "label": "merge.ts:54-58",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L54-L58"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "keep-the-first-t-change-the-seco",
          "title": "Keep the first t; change the second to t1.",
          "text": "Same valid inputs; the merge reporter throws in onEnd and writes no terminal output.",
          "show": [
            "ids"
          ],
          "current": [
            "ids"
          ],
          "edges": [
            "patchIds"
          ],
          "defs": [
            "state-reporter-error-1"
          ],
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events"
          ],
          "sources": [
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "the-second-worker-gains-an-offse",
          "title": "The second worker gains an offset of 1.",
          "text": "Same valid inputs; the merge reporter throws in onEnd and writes no terminal output.",
          "show": [
            "workers"
          ],
          "current": [
            "workers"
          ],
          "edges": [
            "offset"
          ],
          "defs": [
            "state-reporter-error-2"
          ],
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events",
            "processing test events"
          ],
          "sources": [
            {
              "label": "merge.ts:96-108",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L96-L108"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "replay-saved-events-tests-do-not",
          "title": "Replay saved events; tests do not run again.",
          "text": "Same valid inputs; the merge reporter throws in onEnd and writes no terminal output.",
          "show": [
            "replay"
          ],
          "current": [
            "replay"
          ],
          "edges": [
            "dispatch"
          ],
          "defs": [
            "state-reporter-error-3"
          ],
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events",
            "processing test events",
            "building final report"
          ],
          "sources": [
            {
              "label": "merge.ts:79-89",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L79-L89"
            },
            {
              "label": "merge.ts:96-108",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L96-L108"
            },
            {
              "label": "merge.ts:54-58",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L54-L58"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        },
        {
          "id": "a-reporter-error-fails-this-comp",
          "title": "A reporter error fails this completed merge.",
          "text": "Same valid inputs; the merge reporter throws in onEnd and writes no terminal output.",
          "show": [
            "error"
          ],
          "current": [
            "error"
          ],
          "edges": [
            "fail"
          ],
          "defs": [
            "state-reporter-error-4"
          ],
          "code": "result",
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events",
            "processing test events",
            "building final report",
            "finished building report"
          ],
          "sources": [
            {
              "label": "multiplexer.ts:135-141",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L135-L141"
            },
            {
              "label": "merge.ts:114-117",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
            },
            {
              "label": "merge.ts:54-58",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L54-L58"
            },
            {
              "label": "merge.ts:79-85",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L79-L85"
            },
            {
              "label": "multiplexer.ts:73-76",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
            },
            {
              "label": "blob.ts:87-96",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
            },
            {
              "label": "blob.ts:126-138",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
            },
            {
              "label": "blob.ts:115-123",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L115-L123"
            },
            {
              "label": "merge.ts:235-244",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L235-L244"
            },
            {
              "label": "merge.ts:473-487",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
            },
            {
              "label": "merge.ts:633-641",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
            }
          ],
          "deeper": [
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.4 A retry is a new attempt in a new worker",
              "href": "/4-runner/4-4-retries-and-flaky/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "sorted",
          "step": "read-two-valid-blobs-in-shard-or",
          "log": [
            "merging reports from /work/blob-report",
            "extracting: blob-report/report-1.zip",
            "extracting: blob-report/report-2.zip",
            "merging events"
          ]
        },
        {
          "node": "ids",
          "step": "keep-the-first-t-change-the-seco",
          "log": [],
          "edge": "patchIds"
        },
        {
          "node": "workers",
          "step": "the-second-worker-gains-an-offse",
          "log": [
            "processing test events"
          ],
          "edge": "offset"
        },
        {
          "node": "replay",
          "step": "replay-saved-events-tests-do-not",
          "log": [
            "building final report"
          ],
          "edge": "dispatch"
        },
        {
          "node": "error",
          "step": "a-reporter-error-fails-this-comp",
          "log": [
            "finished building report"
          ],
          "edge": "fail",
          "fail": true
        }
      ]
    }
  ],
  "definitions": {
    "events": {
      "term": "Saved events",
      "text": "The blob reporter collects emitted events. Replay dispatches them without running tests again."
    },
    "delivery": {
      "term": "Reporter list",
      "text": "Test-end events go to every configured reporter in order. Caught callback errors do not stop delivery."
    },
    "zip": {
      "term": "Shard ZIP",
      "text": "Each shard saves its own ZIP with report.jsonl events and existing file attachments."
    },
    "resources": {
      "term": "Attachment resources",
      "text": "Attachment paths use a hash of the original path and a per-run salt to avoid shard clashes."
    },
    "sort": {
      "term": "Sorted blobs",
      "text": "Merge sorts by metadata name, shard number, then ZIP path."
    },
    "ids": {
      "term": "Test IDs",
      "text": "Sorted blob position supplies a salt; IDs already used in another blob are mapped to unique IDs."
    },
    "workers": {
      "term": "Worker metadata",
      "text": "Saved worker indices gain the previous reports’ offset; this renumbers metadata, not live workers."
    },
    "replay": {
      "term": "Replay",
      "text": "Merge patches saved events and dispatches them through the receiver, including failed test events."
    },
    "result": {
      "term": "Merge result",
      "text": "After valid replay, reporter errors fail merge; saved test failures do not change its result."
    },
    "state-fan-out-0": {
      "term": "Example state",
      "text": "test-end → list → blob / delivery follows the configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t · worker 0 · saved test: failed / merge: pending"
    },
    "state-fan-out-1": {
      "term": "Example state",
      "text": "list: receives test-end / blob: receives the same test-end · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t · worker 0 · saved test: failed / merge: pending"
    },
    "state-fan-out-2": {
      "term": "Example state",
      "text": "list throws → error recorded / blob still receives test-end · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t · worker 0 · saved test: failed / merge: pending"
    },
    "state-save-shards-0": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · shard 1/2 → report-1.zip / shard 2/2 → report-2.zip · report-1.zip: t · worker 0 / report-2.zip: t · worker 0 · saved test: failed / merge: pending"
    },
    "state-save-shards-1": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t · worker 0 · saved test: failed / merge: pending"
    },
    "state-save-shards-2": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · shard 1: screenshot → own resource / shard 2: screenshot → own resource · report-1.zip: t · worker 0 / report-2.zip: t · worker 0 · saved test: failed / merge: pending"
    },
    "state-merge-replay-0": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t · worker 0 · saved test: failed / merge: pending"
    },
    "state-merge-replay-1": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t1 · worker 0 · saved test: failed / merge: pending"
    },
    "state-merge-replay-2": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t1 · worker 1 · saved test: failed / merge: pending"
    },
    "state-merge-replay-3": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t1 · worker 1 · saved test: failed / merge: pending"
    },
    "state-merge-replay-4": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t1 · worker 1 · saved test: failed / merge: passed"
    },
    "state-reporter-error-0": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t · worker 0 · saved test: failed / merge: pending"
    },
    "state-reporter-error-1": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t1 · worker 0 · saved test: failed / merge: pending"
    },
    "state-reporter-error-2": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t1 · worker 1 · saved test: failed / merge: pending"
    },
    "state-reporter-error-3": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t1 · worker 1 · saved test: failed / merge: pending"
    },
    "state-reporter-error-4": {
      "term": "Example state",
      "text": "test-end → list → blob / same event, configured order · report.jsonl: saved events / resources/: file attachments · report-1.zip: t · worker 0 / report-2.zip: t1 · worker 1 · saved test: failed / merge: failed (reporter error)"
    }
  },
  "code": {
    "ci": {
      "title": "In your test · sharded CI",
      "lines": [
        "// ✗ Each shard writes its own HTML report",
        "export default defineConfig({",
        "  reporter: 'html',",
        "});",
        "// ✓ Save blobs on CI; merge them later",
        "export default defineConfig({",
        "  reporter: process.env.CI",
        "    ? 'blob'",
        "    : 'html',",
        "});"
      ]
    },
    "result": {
      "title": "Inside Playwright · merge.ts",
      "source": {
        "label": "merge.ts:114-114",
        "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114"
      },
      "lines": [
        "await dispatchEvents(eventData.epilogue);",
        "// The merged report status is intentionally",
        "// not surfaced as a failure - the merge",
        "// command only fails when a reporter itself",
        "// errors.",
        "return multiplexer.hasReporterErrors()",
        "  ? 'failed' : 'passed';"
      ]
    }
  },
  "conceptScenario": "how",
  "concepts": [
    {
      "label": "Recorded test events",
      "layer": "app",
      "items": [
        {
          "definition": "events",
          "short": "The blob reporter collects emitted events.",
          "nodes": [
            "event"
          ],
          "step": {
            "step": "one-event-reaches-every-reporter"
          },
          "source": {
            "label": "blob.ts:45-50",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L45-L50"
          }
        }
      ]
    },
    {
      "label": "Reporter and merge code",
      "layer": "runner",
      "items": [
        {
          "definition": "delivery",
          "short": "Test-end events reach each reporter in configured order.",
          "nodes": [
            "list",
            "blob"
          ],
          "step": {
            "step": "one-event-reaches-every-reporter"
          },
          "source": {
            "label": "multiplexer.ts:73-76",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/multiplexer.ts#L73-L76"
          }
        },
        {
          "definition": "zip",
          "short": "ZIPs contain saved events and existing attachment files.",
          "nodes": [
            "zip"
          ],
          "step": {
            "step": "each-shard-saves-its-own-zip"
          },
          "source": {
            "label": "blob.ts:87-96",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L87-L96"
          }
        },
        {
          "definition": "resources",
          "short": "Run salts keep attachment paths separate across shards.",
          "nodes": [
            "resources"
          ],
          "step": {
            "step": "attachment-paths-stay-separate"
          },
          "source": {
            "label": "blob.ts:126-138",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/blob.ts#L126-L138"
          }
        },
        {
          "definition": "sort",
          "short": "Blobs sort by name, shard, then ZIP path.",
          "nodes": [
            "sorted"
          ],
          "step": {
            "step": "valid-blobs-have-a-deterministic"
          },
          "source": {
            "label": "merge.ts:213-228",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L213-L228"
          }
        },
        {
          "definition": "ids",
          "short": "IDs already used in another blob receive a salt.",
          "nodes": [
            "ids"
          ],
          "step": {
            "step": "colliding-test-ids-are-renamed"
          },
          "source": {
            "label": "merge.ts:473-487",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L473-L487"
          }
        },
        {
          "definition": "workers",
          "short": "Saved worker indices gain the previous reports’ offset.",
          "nodes": [
            "workers"
          ],
          "step": {
            "step": "worker-numbers-are-saved-metadat"
          },
          "source": {
            "label": "merge.ts:633-641",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L633-L641"
          }
        },
        {
          "definition": "replay",
          "short": "Merge patches and dispatches saved events.",
          "nodes": [
            "replay"
          ],
          "step": {
            "step": "worker-numbers-are-saved-metadat"
          },
          "source": {
            "label": "merge.ts:96-108",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L96-L108"
          }
        },
        {
          "definition": "result",
          "short": "Reporter errors determine the completed merge result.",
          "nodes": [
            "passed",
            "error"
          ],
          "step": {
            "step": "the-merge-result-is-separate"
          },
          "source": {
            "label": "merge.ts:114-117",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/reporters/merge.ts#L114-L117"
          }
        }
      ]
    }
  ],
  "callouts": {
    "1": [
      "event",
      "list",
      "blob",
      "callback"
    ],
    "2": [
      "zip",
      "resources"
    ],
    "3": [
      "sorted",
      "ids",
      "workers",
      "replay"
    ],
    "4": [
      "saved",
      "passed",
      "error"
    ]
  },
  "deeper": [
    {
      "title": "4.3 Workers take groups, shards keep them whole",
      "href": "/4-runner/4-3-workers-and-parallel/",
      "why": "How workers take groups and shards keep them whole."
    },
    {
      "title": "4.4 A retry is a new attempt in a new worker",
      "href": "/4-runner/4-4-retries-and-flaky/",
      "why": "A retry is a new attempt in a new worker."
    }
  ],
  "viewBox": [
    699.5,
    654.4000000000001
  ],
  "measurement": {
    "name": "font-table",
    "labels": {
      "toList": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "toBlob": {
        "width": 63.20999999999999,
        "height": 12.6
      },
      "caught": {
        "width": 37.925999999999995,
        "height": 12.6
      },
      "save": {
        "width": 25.284,
        "height": 12.6
      },
      "include": {
        "width": 44.24699999999999,
        "height": 12.6
      },
      "patchIds": {
        "width": 56.88899999999999,
        "height": 12.6
      },
      "offset": {
        "width": 37.925999999999995,
        "height": 12.6
      },
      "dispatch": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "pass": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "fail": {
        "width": 88.49399999999999,
        "height": 12.6
      }
    }
  }
}
