Skip to content
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

submit to Codecov from Azure pipelines fails #336

Closed
babaq opened this issue Dec 1, 2022 · 2 comments
Closed

submit to Codecov from Azure pipelines fails #336

babaq opened this issue Dec 1, 2022 · 2 comments

Comments

@babaq
Copy link

babaq commented Dec 1, 2022

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

@vtjnash
Copy link
Member

vtjnash commented Dec 12, 2022

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
Copy link
Author

babaq commented Dec 15, 2022

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

@babaq babaq closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants