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

Codecov after_n_builds=5 #2468

Merged
merged 2 commits into from
Jun 16, 2024
Merged

Codecov after_n_builds=5 #2468

merged 2 commits into from
Jun 16, 2024

Conversation

neubig
Copy link
Contributor

@neubig neubig commented Jun 16, 2024

What is the problem that this fixes or functionality that this introduces? Does it fix any open issues?

Fixes #2369

Basically, codecov uploads results incrementally for larger projects, and if the intermediate result is not good coverage then tests are listed as failing temporarily.

Give a brief summary of what the PR does, explaining any non-trivial design decisions

This uses the codecov after_n_builds option to only report after the five are finished: https://docs.codecov.com/docs/notifications#section-preventing-notifications-until-after-n-builds

Currently our project is large enough that it uploads 6 reports, so I set this to only update after sending 5/6 (this seems to usually be more than enough to pass our thresholds).

I have confirmed that this does indeed only show codecov after 5 jobs finish, and that that is sufficient to pass tests

Other references

SupersedeS #2462

@neubig neubig marked this pull request as draft June 16, 2024 19:43
@neubig neubig changed the title Codecov after_n_builds=2 Codecov after_n_builds=5 Jun 16, 2024
@neubig neubig marked this pull request as ready for review June 16, 2024 20:11
@neubig neubig enabled auto-merge (squash) June 16, 2024 20:14
Copy link
Contributor

@xingyaoww xingyaoww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks for this!

@neubig neubig merged commit 798921c into main Jun 16, 2024
2 checks passed
@neubig neubig deleted the neubig/codecov_after_n_builds branch June 16, 2024 20:40
@SmartManoj
Copy link
Contributor

SmartManoj commented Jun 16, 2024

Will simultaneous tests across different PRs affect this?

Would an alternate solution be merging the reports in the pipeline and upload at once?

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.

[Bug]: CodeCov shows "failed" when it's still working
3 participants