Skip to content

[CODE-1052] Invalid string length while appending coverage files for upload #553

Closed
@drazisil-codecov

Description

@drazisil-codecov

Describe the bug
On Linux: ['error'] There was an error running the uploader: Invalid string length
On MacOS: : Error: Cannot create a string longer than 0x1fffffe8 characters

This occurs when appending large XML coverage reports during the Processing <filename> step.

To Reproduce
Steps to reproduce the behavior:

  1. Download the binary uploader
  2. Visit http://mattmahoney.net/dc/textdata.html
  3. Download http://mattmahoney.net/dc/enwik9.zip from that page (or here)
  4. unzip file
  5. attempt to upload it ./codecov -f ~/Downloads/enwik9
  6. See error

Expected behavior

The uploader is unable to handle large files concatenated together. This appears to be a V8 limit, see GitHub issue in the additional context section.

Additional context
nodejs/node#35973 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions