You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Please create a coverage file, many PRs failed because of this. #19931
Codecov report uploader 0.4.0
[2023-03-26T14:20:49.486Z] ['info'] => Project root located at: /home/runner/work/pulsar/pulsar
[2023-03-26T14:20:49.490Z] ['info'] -> No token specified or token is empty
[2023-03-26T14:20:49.490Z] ['verbose'] Start of network processing...
[2023-03-26T14:20:49.491Z] ['verbose'] Searching for files in /home/runner/work/pulsar/pulsar
[2023-03-26T14:20:49.503Z] ['verbose'] coveragepy is not installed
[2023-03-26T14:20:49.503Z] ['info'] Searching for coverage files...
[2023-03-26T14:20:49.976Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-03-26T14:20:49.977Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
**[2023-03-26T14:20:49.977Z] ['error'] There was an error running the uploader: No coverage files located, please try use `-f`, or change the project root with `-R`**
[2023-03-26T14:20:49.978Z] ['verbose'] The error stack is: Error: No coverage files located, please try use `-f`, or change the project root with `-R`
at main (/snapshot/repo/dist/src/index.js)
[2023-03-26T14:20:49.978Z] ['verbose'] End of uploader: 501 milliseconds
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255
@tisonkun I'm currently experimenting a solution which would be more reliable in dumping the Jacoco coverage data to files, WIP commit lhotari@5bd1b74 . I debugged the problem and the Jacoco execution files were empty. One possible reason for that is that another shutdown hook blocks the shutdown sequence. I've worked around that possible problem by using the JMX API for dumping the Jacoco exec data in a TestNG listener.
Activity
tisonkun commentedon Mar 27, 2023
Cross refer to https://lists.apache.org/thread/4kjp5bdct282z6o11jvjvlxkjgmcc4ms
tisonkun commentedon Mar 27, 2023
Upstream issue - https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
@lhotari @BewareMyPower @yaalsn shall we remove/disable the codecov step for now?
BewareMyPower commentedon Mar 27, 2023
My personal answer is to remove it.
lhotari commentedon Mar 27, 2023
Let's discuss the resolution on the mailing list since there's better context. Moving the upload to a separate step is a better solution.
When the flaky test build job fails, it won't block merging the PR, so this isn't really blocking progress.
lhotari commentedon Mar 27, 2023
Removal isn't an acceptable solution. We can make it optional or disabled for PR builds if someone is having a hard time because of this.
tisonkun commentedon Mar 28, 2023
It seems that we don't create the coverage file. It may be a workflow bug.
yaalsn commentedon Mar 28, 2023
Could we use
continue-on-errorfor the flaky test?tisonkun commentedon Mar 28, 2023
@yaalsn I guess the following steps in the current workflow is already run
always:pulsar/.github/workflows/pulsar-ci-flaky.yaml
Lines 168 to 196 in d14e43e
lhotari commentedon Mar 28, 2023
@tisonkun that's right. there seems to be an issue in that.
lhotari commentedon Mar 28, 2023
@tisonkun I'm currently experimenting a solution which would be more reliable in dumping the Jacoco coverage data to files, WIP commit lhotari@5bd1b74 . I debugged the problem and the Jacoco execution files were empty. One possible reason for that is that another shutdown hook blocks the shutdown sequence. I've worked around that possible problem by using the JMX API for dumping the Jacoco exec data in a TestNG listener.
lhotari commentedon Mar 28, 2023
I created #19947 with a fix for this issue.