-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[fix][ci] Fix codecov reporting by configuring to wait for all builds sending coverage #19237
[fix][ci] Fix codecov reporting by configuring to wait for all builds sending coverage #19237
Conversation
It would be better to add |
The final codecov result of comparison in PR comment is not accurated because the |
My assumption is that the main reason for the false comparison results have been the missing Let's see if this assumption holds. The codecov upload was still missing from the 10th build job that resides in ci-pulsar-flaky.yaml and that's why the results didn't show up. |
One more attempt. The coverage profile wasn't activated for the BROKER_FLAKY unit test group: pulsar/build/run_unit_group.sh Lines 36 to 40 in f23363c
@yaalsn Do you remember the reason for doing this? In addition, the coverage profile wasn't activated when the install target (maven goal) was used instead of verify. I fixed the issues in the run_unit_group.sh script and also upgraded jacoco-maven-plugin to 0.8.8 . Jacoco 0.8.8 officially supports Java 17: https://github.com/jacoco/jacoco/releases/tag/v0.8.8 |
- ensure that there's enough time to process Jacoco coverage data - https://maven.apache.org/surefire/maven-surefire-plugin/examples/shutdown.html
codecov has a known issue codecov/codecov-action#598 / codecov/feedback#126 where uploading to codecov might fail with this error "Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue."
It's too bad that there isn't a way to retry uploading in this case. |
The flaky test group allows failure when running CI, if any test fails during the flaky test group running, the result will be not accurated. |
A few flaky tests won't contribute several percentage difference in coverage. |
@yaalsn The flaky test group doesn't allow failures when running CI. It's the "quarantine" group. We don't have many tests in that group. I took a look at the reasons for differences. It's caused by builds that fail because of flaky tests in the master branch. That's why the coverage metrics for the base commit will be wrong. |
Motivation
after_n_builds
configuration setting should be used for waiting for all builds to finish before merging the coverage reports from parallel builds.Modifications
Set
after_n_builds
to 10.Documentation
doc
doc-required
doc-not-needed
doc-complete