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

ci: re-enable freebsd coverage #143

Merged
merged 3 commits into from
Aug 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
task:
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_PR != ''
environment:
CODECOV_TOKEN: ENCRYPTED[cfd48b16731c254067ef7b39a7083384127a594c6ad52e51cc32982da2eb8cc67c0a54f69736c29559a28664c615ab99]
matrix:
#- name: FreeBSD 11.3
# freebsd_instance:
# image_family: freebsd-11-3-snap
- name: FreeBSD 12.1
- name: FreeBSD 12.4
freebsd_instance:
image_family: freebsd-12-1-snap
- name: FreeBSD 13.0
image_family: freebsd-12-4
- name: FreeBSD 13.2
freebsd_instance:
image_family: freebsd-13-0-snap
image_family: freebsd-13-2
- name: FreeBSD 14.0
freebsd_instance:
image_family: freebsd-14-0
# Install Rust
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
Expand All @@ -19,9 +21,6 @@ task:
- rustup component add llvm-tools-preview
test_script:
- . $HOME/.cargo/env
- cargo test --all-features
# coverage is disabled for now
# see https://github.com/rust-lang/rust/issues/94616
# - env LLVM_PROFILE_FILE="calloop-%p-%m.profraw" RUSTFLAGS="-Zinstrument-coverage" cargo test --all-features
# - grcov . --binary-path ./target/debug -s . -t lcov --branch --llvm --ignore-not-existing --keep-only "src/sys/*" --excl-br-start "mod tests \{" --excl-start "mod tests \{" --excl-br-line "#\[derive\(" --excl-line "#\[derive\(" -o lcov.info
# - bash -c 'bash <(curl -s https://codecov.io/bash) -f lcov.info'
- env LLVM_PROFILE_FILE="calloop-%p-%m.profraw" RUSTFLAGS="-Zinstrument-coverage" cargo test --all-features
- grcov . --binary-path ./target/debug -s . -t lcov --branch --llvm --ignore-not-existing --keep-only "src/*" --excl-br-start "mod tests \{" --excl-start "mod tests \{" --excl-br-line "#\[derive\(" --excl-line "#\[derive\(" -o lcov.info
- bash -c 'bash <(curl -s https://codecov.io/bash) -f lcov.info' -F freebsd
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ jobs:
path: target
key: ${{ runner.os }}-test-${{ steps.rustcversion.outputs.version }}-${{ hashFiles('**/Cargo.toml') }}

- name: Downgrade log
uses: actions-rs/cargo@v1
if: ${{ matrix.rust == '1.56.0' }}
with:
command: update
args: --package log --precise 0.4.16

- name: Run tests
uses: actions-rs/cargo@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions src/sources/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
interest,
mode,
token: None,
_error_type: PhantomData::default(),
_error_type: PhantomData,
}
}

Expand All @@ -116,7 +116,7 @@
interest,
mode,
token: None,
_error_type: PhantomData::default(),
_error_type: PhantomData,

Check warning on line 119 in src/sources/generic.rs

View check run for this annotation

Codecov / codecov/patch

src/sources/generic.rs#L119

Added line #L119 was not covered by tests
}
}
}
Expand Down
Loading