Skip to content

Reporters data is bloated compared to v3.1.x #9216

@idanen

Description

@idanen

Describe the bug

Hey.
We found that using a newer version than 3.1.4 creates larger reporters data which fails some reporters.
On 3.2.4, this created a situation for us that the html reporter failed (RangeError: Invalid string length), and on 4.0.15 it failed with the blob reporter (on the same reason).
In the repro we only see small increase, but in large projects (we have ~10,000 tests in ~15 projects), this can go as high as 20 times (this is not a mistake, 20 times larger) difference.
When sharding, blob reporter did finish successfully, but merging failed silently (we found that the html reporter swallows the exception).

Reproduction

Blob size with v3.1.4 (stackblitz):
Image
Blob size with v4.0.15 (stackblitz):
Image

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 20.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vitest/ui: 4.0.15 => 4.0.15 
    vite: latest => 6.4.1 
    vitest: 4.0.15 => 4.0.15

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions