Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch coverage data sent to combineCoverage to prevent timeouts #877

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aantes-st
Copy link
Contributor

@aantes-st aantes-st commented Sep 9, 2024

Description

Some users, including myself, have experienced task timeouts when large coverage reports are sent to the Node process. This change uses number of coverage data keys (filenames) as a batching mechanism, sending only up to 500 keys at once.

This may address issue #455

Testing

In the existing full-report scenario, I was experiencing timeouts even when setting taskTimeout to 10+ minutes. With these changes, the coverage report is successfully constructed in seconds.

…keys as the batching mechanism. This is to prevent very large objects being sent across processes all at once. Objects of sufficient size have been causing timeouts during this transition.
@cypress-app-bot
Copy link

@aantes-st
Copy link
Contributor Author

@cacieprins The batching is currently hardcoded at every 500 keys, but this could be configurable, though that would require a lot more changes and is probably outside proper scope. Let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants