diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7da355fe3c16..7a2890c98b9f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -321,39 +321,43 @@ jobs: # Ignore MIRI errors until we can get a clean run cargo miri test || true - coverage: - name: Coverage - runs-on: ubuntu-latest - strategy: - matrix: - arch: [amd64] - rust: [stable] - steps: - - uses: actions/checkout@v2 - with: - submodules: true - - name: Cache Cargo - uses: actions/cache@v2 - with: - path: /home/runner/.cargo - # this key is not equal because the user is different than on a container (runner vs github) - key: cargo-coverage-cache- - - name: Cache Rust dependencies - uses: actions/cache@v2 - with: - path: /home/runner/target - # this key is not equal because coverage uses different compilation flags. - key: ${{ runner.os }}-${{ matrix.arch }}-target-coverage-cache-${{ matrix.rust }}- - - name: Run coverage - run: | - export ARROW_TEST_DATA=$(pwd)/testing/data - export PARQUET_TEST_DATA=$(pwd)/parquet-testing/data +# Coverage job was failing. https://github.com/apache/arrow-datafusion/issues/590 tracks re-instating it - cargo install --version 0.18.0-alpha3 cargo-tarpaulin - cargo tarpaulin --out Xml - env: - CARGO_HOME: "/home/runner/.cargo" - CARGO_TARGET_DIR: "/home/runner/target" - - name: Report coverage - continue-on-error: true - run: bash <(curl -s https://codecov.io/bash) + # coverage: + # name: Coverage + # runs-on: ubuntu-latest + # strategy: + # matrix: + # arch: [amd64] + # rust: [stable] + # steps: + # - uses: actions/checkout@v2 + # with: + # submodules: true + # - name: Cache Cargo + # uses: actions/cache@v2 + # with: + # path: /home/runner/.cargo + # # this key is not equal because the user is different than on a container (runner vs github) + # key: cargo-coverage-cache- + # - name: Cache Rust dependencies + # uses: actions/cache@v2 + # with: + # path: /home/runner/target + # # this key is not equal because coverage uses different compilation flags. + # key: ${{ runner.os }}-${{ matrix.arch }}-target-coverage-cache-${{ matrix.rust }}- + # - name: Run coverage + # run: | + # export ARROW_TEST_DATA=$(pwd)/testing/data + # export PARQUET_TEST_DATA=$(pwd)/parquet-testing/data + + # # 2020-11-15: There is a cargo-tarpaulin regression in 0.17.0 + # # see https://github.com/xd009642/tarpaulin/issues/618 + # cargo install --version 0.16.0 cargo-tarpaulin + # cargo tarpaulin --out Xml + # env: + # CARGO_HOME: "/home/runner/.cargo" + # CARGO_TARGET_DIR: "/home/runner/target" + # - name: Report coverage + # continue-on-error: true + # run: bash <(curl -s https://codecov.io/bash)