codecov / codecov/codecov-circleci-orb

[BUG] Broken on Alpine

Open
#235 4 comments 0 reactions 1 assignee View on GitHub

@thomasrockhu-codecov is already working on this.

Since Feb 20, 2025.

[Product] Report Upload Area: Report Upload bug codecov/codecov-circleci-orb
Dominant language
Python
Stars
26
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

The orb doesn't work if it's run inside an Alpine Linux Docker image.

     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/
                            Wrapper-0.1.0
                                  
==> Bypassing validation...
/bin/sh: syntax error: unexpected "("

Exited with code exit status 2

To Reproduce

Use this job definition on the https://github.com/CosmWasm/cosmwasm repo.

  coverage:
    docker:
      - image: rust:1.84.1-alpine3.21
    environment:
      # Limit the number of parallel jobs to avoid OOM crashes during doc testing
      RUST_TEST_THREADS: 8
    resource_class: medium+
    steps:
      - checkout
      - run:
          name: Install necessary packages
          command: |
            apk update
            apk add mold clang curl coreutils llvm19-dev zlib-static clang19-static
      - run:
          name: Install grcov
          command: |
            rustup component add llvm-tools-preview
            cargo install grcov --locked
      - run:
          name: Install codecov uploader
          command: |
            #download Codecov CLI
            curl -Os https://cli.codecov.io/v10.1.0/alpine/codecov
            chmod +x codecov
            ./codecov --help
      - run:
          name: Run tests with coverage
          command: |
            mkdir -p reports
            cargo test -p cosmwasm-crypto --all-features

            grcov . -s packages/crypto --binary-path ./target/debug -t lcov -o ./reports/crypto.info
          environment:
            RUSTFLAGS: "-Clinker=clang -Clink-arg=-fuse-ld=/usr/bin/mold -Cinstrument-coverage"
            LLVM_PROFILE_FILE: "cosmwasm-%p-%m.profraw"
      - codecov/upload:
          binary: ./codecov
          files: reports/crypto.info
          disable_search: true
          flags: cosmwasm-crypto

Regression

This used to work with orb version 4.1.0

Versions

See the job definition.
Use the latest version of the orb:

orbs:
  codecov: codecov/codecov@5.2.1

Commit and CI link

https://github.com/CosmWasm/cosmwasm/pull/2391/commits/593199dc91078f1335b7ad0f959398563e36999d

Additional context

The problem seems very similar to this issue: https://github.com/codecov/codecov-circleci-orb/issues/8

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.