Skip to content

Commit 7afa892

Browse files
authored
Disabling code coverage (#1236)
Due to compilation being broken on nightly as described in #1221
1 parent 8772fdf commit 7afa892

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

.github/workflows/coverage.yml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -105,32 +105,37 @@ jobs:
105105
${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.lock') }}
106106
${{ runner.os }}-cargo-test
107107
108-
- uses: actions-rs/toolchain@v1
109-
with:
110-
toolchain: nightly
111-
components: clippy, llvm-tools-preview, rustfmt
112-
113-
- name: Install cargo-llvm-cov
114-
run: |
115-
curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz | \
116-
tar xzf - -C ~/.cargo/bin
117-
118108
- name: Install awslocal
119109
run: pip install awscli-local
120110

121111
- name: Prepare LocalStack S3
122112
run: ./quickwit-cli/tests/prepare_tests.sh
123113

124-
- name: Generate code coverage
125-
run: |
126-
cargo +nightly llvm-cov clean --workspace
127-
cargo +nightly llvm-cov --test failpoints --no-report --features fail/failpoints
128-
cargo +nightly llvm-cov --no-report --all-features
129-
cargo +nightly llvm-cov --no-run --lcov --output-path lcov.info
130-
131-
- name: Upload coverage to Codecov
132-
uses: codecov/[email protected]
114+
- uses: actions-rs/toolchain@v1
133115
with:
134-
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
135-
files: lcov.info
136-
fail_ci_if_error: true
116+
toolchain: stable
117+
profile: minimal
118+
119+
- uses: Swatinem/rust-cache@v1
120+
121+
- name: Compile tests
122+
run: cargo test --no-run --locked
123+
124+
- name: Run tests
125+
run: cargo test --all-features
126+
127+
# Code coverage. Was removed due to #1221
128+
129+
# - name: Generate code coverage
130+
# run: |
131+
# cargo +nightly llvm-cov clean --workspace
132+
# cargo +nightly llvm-cov --test failpoints --no-report --features fail/failpoints
133+
# cargo +nightly llvm-cov --no-report --all-features
134+
# cargo +nightly llvm-cov --no-run --lcov --output-path lcov.info
135+
136+
# - name: Upload coverage to Codecov
137+
# uses: codecov/[email protected]
138+
# with:
139+
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
140+
# files: lcov.info
141+
# fail_ci_if_error: true

0 commit comments

Comments
 (0)