JuliaCI/Coverage.jl

submit to Codecov from Azure pipelines fails

Closed this issue · 2 comments

babaq commented

Hi,
I recently switched from Travis to Azure pipelines, all the test have been working, but CI failed at Codecov.submit(precess_folder()). The repository is public, so no upload token needed for submitting from Azure pipeline to Codecov. The error message are :

[ Info: Submitting data to Codecov...
ERROR: HTTP.Exceptions.StatusError(404, "POST", "/upload/v4?branch=master&pull_request=&service=azure_pipelines&job=Experica.NeuroAnalysis.jl&build=27&commit=33b7462d12cde30365a80e13fa5b41db141cfce5&slug=Experica/NeuroAnalysis.jl&", HTTP.Messages.Response:
"""
HTTP/1.1 404 Not Found
server: envoy
date: Wed, 30 Nov 2022 21:41:37 GMT
content-type: text/plain; charset=utf-8
vary: Accept, Origin, Cookie
allow: GET, POST, HEAD, OPTIONS
X-Frame-Options: SAMEORIGIN
content-length: 152
x-content-type-options: nosniff
referrer-policy: same-origin
x-envoy-upstream-service-time: 20
Via: 1.1 google
Strict-Transport-Security: max-age=3104000
Content-Security-Policy-Report-Only: default-src 'self' codecov-cdn.storage.googleapis.com
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000

{'detail': ErrorDetail(string='Missing "project" argument. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}""")
Stacktrace:


The submit function have code to handle azure pipeline, i don't have a clue where it goes worng.

Thanks,
Alex

Sounds like it wants you to set CODECOV_TOKEN in your secrets, or figure out how we should now be deriving and setting a project argument automaticaly

babaq commented

I switched to GitHub Actions, and everything works fine. So i can not provide more on this