-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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][build] Dump Jacoco coverage data to file with JMX interface in TestNG listener #19947
[fix][build] Dump Jacoco coverage data to file with JMX interface in TestNG listener #19947
Conversation
…TestNG listener - sometimes the default Jacoco shutdown hook doesn't run and there's no coverage data
d7a38e5
to
3d25ba9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems personal CI failed before upload the report - https://github.com/lhotari/pulsar/actions/runs/4540821034/jobs/8002229561?pr=145
@tisonkun it didn't fail because of the changes made in the PR. The building step took 55 minutes and the workflow timed out because of that. I don't see what changes you are requesting. |
Yes, that's the case. Are your going to rerun the workflow in your fork and notify here once it passed, or we tag this PR as ready-to-test and rerun here? |
@tisonkun re-running it. in progress at https://github.com/lhotari/pulsar/actions/runs/4540821034/jobs/8006055251?pr=145 . This time build step completed properly. Waiting for the whole build job to complete. |
…s have been executed
@tisonkun I revisited the dumping logic once more. It turns out that with maven-surefire-plugin each test is run in it's own TestNG suite. TestNG has a separate listener interface for the completion of all tests. |
/pulsarbot rerun-failure-checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
this PR doesn't improve upload at all. It's just about dumping the Jacoco exec data. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #19947 +/- ##
=============================================
+ Coverage 58.92% 72.81% +13.89%
- Complexity 25921 31385 +5464
=============================================
Files 1846 1859 +13
Lines 136607 136808 +201
Branches 15033 15047 +14
=============================================
+ Hits 80498 99623 +19125
+ Misses 48645 29273 -19372
- Partials 7464 7912 +448
Flags with carried forward coverage won't be shown. Click here to find out more. |
@lhotari the error info says "not_found" and I read it as file not created. But it seems different from the previous one. Do we now always dump the file, but the upload action itself is still unstable? IIRC there is an upstream issue for the latter one. |
Exactly. For the upload issue, it seems that Codecov suggests to not consider the upload token as a secret:
I think we need to ask ASF infra to create the token. |
Fixes #19931
Motivation
See #19931. Sometimes the default Jacoco shutdown hook doesn't run and there's no coverage data. This causes the Codecov upload to fail since there's no Jacoco coverage report available.
Modifications
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: lhotari#145