codecov / codecov-action

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

Coverage upload failure "Failed to properly create commit" #1554

Open efenderbosch-atg opened 3 weeks ago

efenderbosch-atg commented 3 weeks ago
Run codecov/codecov-action@v4
  with:
    flags: service
  env:
    JAVA_HOME: /home/runner/_work/_tool/Java_Temurin-Hotspot_jdk/21.0.4-7.0.LTS/arm64
    JAVA_HOME_21_ARM64: /home/runner/_work/_tool/Java_Temurin-Hotspot_jdk/21.0.4-7.0.LTS/arm64
    AWS_DEFAULT_REGION: us-east-1
    AWS_REGION: us-east-1
    AWS_ACCESS_KEY_ID: ***
    AWS_SECRET_ACCESS_KEY: ***
    CODECOV_TOKEN: ***
evenName: pull_request
baseRef: example:main | headRef: example:WBPR-1620
evenName: pull_request
baseRef: example:main | headRef: example:WBPR-1620
evenName: pull_request
baseRef: example:main | headRef: example:WBPR-1620
==> linux OS detected
https://cli.codecov.io/latest/linux/codecov.SHA256SUM
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 Fri Aug 16 23:23:14 2024 UTC
gpg:                using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
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: 2703 4E7F DB85 0E0B BC2C  62FF 806B B28A ED77 9869
==> Uploader SHASUM verified (eb902009cb800fdefbce291c1357953f80e29382f43c7a98cce3b57d2b4d8cec  codecov)
==> Running version latest
==> Running version v0.7.4
==> Running git config --global --add safe.directory /home/runner/_work/example/example
/usr/bin/git config --global --add safe.directory /home/runner/_work/example/example
==> 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 -C 48fefbb8713de766eca21d52c2b3d2aff1cdc5ba
/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

We've recently moved to building on arm64 and the timing of this failure seems to line up.

efenderbosch-atg commented 3 weeks ago

I broke out the use of codecov/codecov-action to a new job that uses amd64 GHA runners and this went away. So this looks like a bug w/ arm64 compatibility.

efenderbosch-atg commented 1 week ago

Looks like this is sort of a known issue: https://github.com/codecov/codecov-action/issues/1531