Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Broken on Alpine #235

Open
chipshort opened this issue Feb 20, 2025 · 4 comments
Open

[BUG] Broken on Alpine #235

chipshort opened this issue Feb 20, 2025 · 4 comments
Assignees
Labels
Area: Report Upload Issues with pre-ingest report uploading bug Something isn't working Eng Area: CircleCI Orb Low Low Priority Issues (to be fixed or re-evaluated in 12 months

Comments

@chipshort
Copy link

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/[email protected]

Commit and CI link

CosmWasm/cosmwasm@593199d

Additional context

The problem seems very similar to this issue: #8

@chipshort chipshort added the bug Something isn't working label Feb 20, 2025
@thomasrockhu-codecov
Copy link
Contributor

@chipshort can you run this with verbose: true?

@thomasrockhu-codecov thomasrockhu-codecov self-assigned this Feb 20, 2025
@thomasrockhu-codecov thomasrockhu-codecov added Low Low Priority Issues (to be fixed or re-evaluated in 12 months Area: Report Upload Issues with pre-ingest report uploading Eng Area: CircleCI Orb labels Feb 20, 2025
@chipshort
Copy link
Author

Hi, verbose produces the same output: https://app.circleci.com/pipelines/github/CosmWasm/cosmwasm/8531/workflows/fd14d111-8b54-4573-84a4-a349aa5dfc7a/jobs/138206

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

Exited with code exit status 2

Corresponding commit: CosmWasm/cosmwasm@78e360e

@thomasrockhu-codecov
Copy link
Contributor

@chipshort the wrapper is not meant to be run like this. I would suggest either running the CLI as is or use the orb

@chipshort
Copy link
Author

I tried using the CLI directly first, but couldn't get it to work. I'll try again soon. I would use the orb if it was working, but it's not. That's the point of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Report Upload Issues with pre-ingest report uploading bug Something isn't working Eng Area: CircleCI Orb Low Low Priority Issues (to be fixed or re-evaluated in 12 months
Projects
None yet
Development

No branches or pull requests

2 participants