codecov-action icon indicating copy to clipboard operation
codecov-action copied to clipboard

v2 error on Alpine - gnu_get_libc_version: symbol not found

Open mvorisek opened this issue 2 years ago • 1 comments

I tried to upgrade to v2, but I get the folloving errors when uploading the coverage:

 https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (d8fe17b4f8cf960b7b02a44067aab92681c7a983bdb9542c64624fc8281dfb80  codecov)
==> Running version latest
==> Running version v0.1.5
/__w/_actions/codecov/codecov-action/v2/dist/codecov -n  -Q github-action-2.1.0 -f coverage/merged.xml -C a856cda3bd11ddec392d31e726098c31fbefd87b
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: gnu_get_libc_version: symbol not found
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: backtrace_symbols: symbol not found
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: __register_atfork: symbol not found
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: __strdup: symbol not found
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: setcontext: symbol not found
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: makecontext: symbol not found
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: backtrace: symbol not found
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: getcontext: symbol not found
Error relocating /__w/_actions/codecov/codecov-action/v2/dist/codecov: __libc_stack_end: symbol not found
Warning: Codecov: Failed to properly upload: The process '/__w/_actions/codecov/codecov-action/v2/dist/codecov' failed with exit code 127

full CI pipeline https://github.com/atk4/ui/runs/3826524685?check_suite_focus=true#step:16:15

config:

      - name: Upload coverage logs 1/2 (only for latest Phpunit)
        if: env.LOG_COVERAGE
        run: |
          ls -l coverage | wc -l
          php -d memory_limit=2G vendor/bin/phpcov merge coverage/ --clover coverage/merged.xml

      - name: Upload coverage logs 2/2 (only for latest Phpunit)
        if: env.LOG_COVERAGE
        uses: codecov/codecov-action@v2
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          files: coverage/merged.xml

full CI source https://github.com/atk4/ui/commit/a856cda3bd11ddec392d31e726098c31fbefd87b

with v1, there are no issues https://github.com/atk4/data/runs/3826837442?check_suite_focus=true#step:16:1

mvorisek avatar Oct 07 '21 12:10 mvorisek

I belive it is because linux OS detected instead of Alpine.

Presence of /etc/alpine-release file should be used to check if running on Alpine OS or not.

mvorisek avatar Oct 07 '21 16:10 mvorisek

@mvorisek I'm going to close out due to age, but if this is still an issue for you, please re-open.

thomasrockhu-codecov avatar Oct 23 '23 16:10 thomasrockhu-codecov