codecov / engineering-team

This is a general repo to use with GH Projects
1 stars 1 forks source link

Premature Email Notifications from Codecov on Parallel Coverage Reports #1352

Open codecovdesign opened 7 months ago

codecovdesign commented 7 months ago

Problem Description

When running tests in parallel across multiple workers, our project sends several coverage files to Codecov. The current behavior of Codecov triggers an email notification upon processing the first coverage file, often leading to premature and sometimes inaccurate coverage information.

Solution ideation

Explore

giovanni-guidini commented 6 months ago

We already have a better approach for this. The emails come from GitHub when we post a comment to a PR, and I don't think we can prevent them from doing so.

We have a "manual trigger" for notifications that can help with parallel processing though. First you set the codecov.notify.manual_trigger to true in your codecov.yml Then after your CI has completed and all uploads were made you issue a codecovcli send-notifications command to let codecov know the uploads are complete and you can send notifications.

We can probably look into adding this to the codecov action so users don't have to install the CLI to use that feature