-
Notifications
You must be signed in to change notification settings - Fork 10
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
Macos codecov uploader fails on Appveyor #756
Comments
This change replaces the legacy codecov uploader on macos with a specific codecov-cli (the uploader's modern replacement) version that is known to support several CPUs. Fixes datalad#756
I read up some more. Here is a blog post announcing that the codecov bash uploaders will not be maintained anymore outside of critical security releases. Instead, everything migrates to use codecov-cli. I tried replacing the uploader with codecov-cli (and, later, stumbled over datalad/datalad#7649, in which @yarikoptic tried to fix the same issue, and found an uploader that supports the CPU architecture (though isn't invoked correctly at the moment in datalad-core - it lacks the "do-upload" subcommand)). SADLY, while this uploader does not have the "Bad CPU Type" error anymore, it also doesn't upload reports anymore (on any OS), ultimately I believe because we don't seem to have a codecov token (the tokenless upload would be for PRs from forks of repositories, but it relies on a token in the origin project nevertheless I think: https://docs.codecov.com/docs/tokenless-bundle-analysis).
I believe that we would need to pay for codecov, should we want to get one. Keeping the old uploaders for Linux and Windows successfully uploads coverage reports still, so I would propose to keep them. Failed macos builds because of the CPU mismatch are annoying, so we could replace the uploader with an installable but non-functional (won't upload) uploader (or skip the codecov upload entirely). |
I think it is just that token needs to be specified. We do have a token org wide, and use it for github actions: https://github.com/datalad/datalad/blob/maint/.github/workflows/test.yml#L241 . Try adding it to appveyor env |
Ha, I had no clue - thanks for this info! I can't get the secret out of Github, though. Will ask in the chat if someone can send it. |
there also seems to be an unresolved issue on codecov's side: codecov/codecov-action#1548 |
This change replaces the legacy codecov uploader on macos with a specific codecov-cli (the uploader's modern replacement) version that is known to support several CPUs. This does not solve the issue that coverage reports are not uploaded to codecov, but it fixes the issue that the CPU mismatch caused a non-zero exit code that would lead to a CI failure even when all tests passed. Fixes datalad#756
see datalad/datalad-next#756 and datalad/datalad#7649 for background
see datalad/datalad-next#756 and datalad/datalad#7649 for background
Appveyors macos builds recently started failing with
The codecov docs point to using the "codecov-cli", released in 2023, instead of the uploader: https://docs.codecov.com/docs/codecov-uploader
The text was updated successfully, but these errors were encountered: