However, I am not able to upload the gcov out file in codecov (that I guess they are correctly generated, since I can see them in a folder when I launch everything locally, and a index.html file is also created).
Two errors are generated in sequence:
“curl: (3) malformed”
→ I do not understand this error, that is, where am I wrong in configuring codecov?
“/dev/fd/63: line 1668: [: 0+1: integer expression expected”
→ looking at the bash script, it is a simple syntax issue. Maybe none enter in this section since the curl error is not so common.
and finally, it does not upload anything to codecov.io
@nicolapedrocchi, thanks for this! We will be deploying some changes to the uploader which should fix this issue. I’ll reply back to this thread when it’s been fixed.
Now the script tries 4 times before to fail, but I guess that I am wrong in using Travis & ros in generating the report files.
This is the output generated in Travis:
Blockquote
curl: (3) malformed
2175 X> Failed to upload
2176 → Sleeping for 30s and trying again…
2177-> Pinging Codecov
2178https://codecov.io/gh/CNR-STIIMA-IRAS/upload/v4?package=bash-20200707-353aa93&token=secret&branch=master&commit=30d0934c0bb13d8441b50d3379dac3665bfe531b&build=109.1&build_url=&name=&tag=&slug=CNR-STIIMA-IRAS%2Fcnr_logger&service=travis&flags=&pr=false&job=706197526&cmd_args=t,X,X
2179-> Uploading to
2180
2181curl: (3) malformed
2182 X> Failed to upload
2183 → Sleeping for 30s and trying again…
2184-> Pinging Codecov
2185https://codecov.io/gh/CNR-STIIMA-IRAS/upload/v4?package=bash-20200707-353aa93&token=secret&branch=master&commit=30d0934c0bb13d8441b50d3379dac3665bfe531b&build=109.1&build_url=&name=&tag=&slug=CNR-STIIMA-IRAS%2Fcnr_logger&service=travis&flags=&pr=false&job=706197526&cmd_args=t,X,X
2186-> Uploading to
2187
2188curl: (3) malformed
2189 X> Failed to upload
2190 → Sleeping for 30s and trying again…
2191-> Pinging Codecov
2192https://codecov.io/gh/CNR-STIIMA-IRAS/upload/v4?package=bash-20200707-353aa93&token=secret&branch=master&commit=30d0934c0bb13d8441b50d3379dac3665bfe531b&build=109.1&build_url=&name=&tag=&slug=CNR-STIIMA-IRAS%2Fcnr_logger&service=travis&flags=&pr=false&job=706197526&cmd_args=t,X,X
2193-> Uploading to
2194
2195curl: (3) malformed
2196 X> Failed to upload
2197 → Sleeping for 30s and trying again…
2198==> Uploading to Codecov
2199 % Total % Received % Xferd Average Speed Time Time Time Current
2200 Dload Upload Total Spent Left Speed
2201100 34156 0 0 100 34156 0 108k --:–:-- --:–:-- --:–:-- 108k
2202 View reports at
I guess the error is in how I generate the report. Despite the script claims:
blockquote
2532=> Searching for coverage reports in:
2533 + .
2534 → Found 1 reports
I’ll dive in the configuration, and I’ll try to figure out what I am missing…
“”"
<! DOCTYPE html>
curl: (3) Host name ‘<! DOCTYPE html >’ contains bad letter
“”"
I did not realize that the string “<! DOCTYPE html>” was filtered in the quotation of the error (I added a space to avoid this issue between “<!” and “DOCTYPE” )