codecov / codecov-action

GitHub Action that uploads coverage to Codecov :open_umbrella:
https://www.codecov.io
MIT License
1.43k stars 198 forks source link

ARM github runner is not working for codecov@v4.1.0 #1335

Open slice-mrityunjoy opened 4 months ago

slice-mrityunjoy commented 4 months ago

Description

I have tried to run codecov/codecov-action@v4.1.0 action using arm64 runner and got error while execution.

Test 1

Config

- name: Codecov Report
  uses: codecov/codecov-action@v4.1.0
  with:
    token: ${{ secrets.CODECOV_TOKEN }}
    url: ${{ vars.CODECOV_HOST_URL}}
    slug: ${{github.repository}}
    os: aarch64

Output

==> linux OS detected
https://cli.codecov.io/latest/linux/codecov.SHA256SUM
==> Running version latest
gpg: directory '/home/runner/.gnupg' created
gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
gpg: /home/runner/.gnupg/trustdb.gpg: trustdb created
gpg: key 80########69: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: Signature made Wed Feb 28 18:01:04 2024 UTC
gpg:                using RSA key 27#################69
gpg: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 270#######################9
==> Uploader SHASUM verified (5c8d8ce377f84c043d0ce41bebdc870ee6fb29c47791338899ddbe05bde97df0  codecov)
==> Running version v0.4.8
==> Running git config --global --add safe.directory /home/runner/_work/user-identity/user-identity
/usr/bin/git config --global --add safe.directory /home/runner/_work/user-identity/user-identity
==> Running command '/home/runner/_work/_actions/codecov/codecov-action/v4.1.0/dist/codecov --enterprise-url https://app.codecov.sliceit.com create-commit'
/home/runner/_work/_actions/codecov/codecov-action/v4.1.0/dist/codecov --enterprise-url https://app.codecov.sliceit.com create-commit --git-service github -C d8###############18 --slug Buddy-Git/user-identity
/home/runner/_work/_actions/codecov/codecov-action/v4.1.0/dist/codecov: 1: Syntax error: "(" unexpected
Warning: Codecov: Failed to properly create commit: The process '/home/runner/_work/_actions/codecov/codecov-action/v4.1.0/dist/codecov' failed with exit code 2

Test 2

Config

- name: Codecov Report
  uses: codecov/codecov-action@v4.1.0
  with:
    token: ${{ secrets.CODECOV_TOKEN }}
    url: ${{ vars.CODECOV_HOST_URL}}
    slug: ${{github.repository}}
    os: linux-arm64

Output

==> linux-arm64 OS provided
https://cli.codecov.io/latest/linux-arm64/codecov.SHA256SUM
==> Running version latest
gpg: directory '/home/runner/.gnupg' created
gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
gpg: /home/runner/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg:               imported: 1

gpg: Signature made Wed Feb 28 18:01:11 2024 UTC
gpg:                using RSA key 270###################9869
gpg: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 27###################69

==> Uploader SHASUM verified (382#################################0a6ff7  codecov)
==> Running version v0.4.8
==> Running git config --global --add safe.directory /home/runner/_work/user-identity/user-identity
/usr/bin/git config --global --add safe.directory /home/runner/_work/user-identity/user-identity
==> Running command '/home/runner/_work/_actions/codecov/codecov-action/v4.1.0/dist/codecov --enterprise-url https://app.codecov.sliceit.com create-commit'
/home/runner/_work/_actions/codecov/codecov-action/v4.1.0/dist/codecov --enterprise-url https://app.codecov.sliceit.com create-commit --git-service github -C 3a6c3b1bf3d5668a13e9b44963eb69526b5b087d --slug Buddy-Git/user-identity
Traceback (most recent call last):
  File "codecov_cli/main.py", line 16, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "codecov_cli/commands/staticanalysis.py", line 10, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "codecov_cli/services/staticanalysis/__init__.py", line 15, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "codecov_cli/services/staticanalysis/analyzers/__init__.py", line 2, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "codecov_cli/services/staticanalysis/analyzers/javascript_es6/__init__.py", line 5, in <module>
ImportError: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /tmp/_MEIsfxgSf/libstdc++.so.6)
[21863] Failed to execute script 'main' due to unhandled exception!
Warning: Codecov: Failed to properly create commit: The process '/home/runner/_work/_actions/codecov/codecov-action/v4.1.0/dist/codecov' failed with exit code 1
thomasrockhu-codecov commented 3 months ago

@slice-mrityunjoy, just curious, what OS are you running to help us debug?

tania-pets commented 2 months ago

Having the same issue on arm with Debian 12.

NAME="Debian GNU/Linux"
VERSION_ID="12"
==> Running command '/__w/_actions/codecov/codecov-action/v4/dist/codecov -v create-commit'
/__w/_actions/codecov/codecov-action/v4/dist/codecov -v create-commit --git-service github -Z
/__w/_actions/codecov/codecov-action/v4/dist/codecov: 1: Syntax error: ")" unexpected
Error: Codecov: Failed to properly create commit: The process '/__w/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 2
karl-sjogren commented 1 month ago

I just noticed the same on the new github hosted ARM runners (Ubuntu 22.04).

==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit --git-service github
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov: 1: Syntax error: ")" unexpected
Warning: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 2

This if how the runner was setup.

image

vfilter commented 1 week ago

4.5.0 has the same issue and it's preventing us from using codecov for many of our repos currently. We're on a paid plan and would appreciate if this could be fast tracked.