codecov-circleci-orb icon indicating copy to clipboard operation
codecov-circleci-orb copied to clipboard

arm64 architecture downloads the amd64 binary

Open libert-xyz opened this issue 1 year ago • 4 comments

Running a job in circleCI arm64 arch fails as codecov/upload downloads the binary for amd64

Detected linux Downloading https://cli.codecov.io/la****/linux/codecov

Log:

./"codecov" create-commit -t <redacted> /bin/bash: line 40: ./codecov: cannot execute binary file: Exec format error

libert-xyz avatar Feb 13 '24 16:02 libert-xyz

@trent-codecov can you take a look here?

rohan-at-sentry avatar Feb 13 '24 18:02 rohan-at-sentry

@libert-xyz can you share the container/image you are using to run on?

thomasrockhu-codecov avatar Feb 20 '24 15:02 thomasrockhu-codecov

Hi @thomasrockhu-codecov

Facing exactly the same issue. I am using my custom image.

I guess the problem is that the Orb never detects the CPU architecture, and always downloads amd64 executable: linux or alpine. The fix should be pretty easy.

Jhuighuy avatar May 03 '24 06:05 Jhuighuy

@libert-xyz can you share the container/image you are using to run on?

Hi @thomasrockhu-codecov

I'm using ubuntu:20.04 arm

libert-xyz avatar May 31 '24 18:05 libert-xyz

I opened this PR against the wrapper submodule to fix this @thomasrockhu-codecov

https://github.com/codecov/wrapper/pull/1

aywaldron avatar Sep 27 '24 18:09 aywaldron

This should be fixed now with the newest release

thomasrockhu-codecov avatar Oct 01 '24 16:10 thomasrockhu-codecov