Skip to content
Draft
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
97 changes: 0 additions & 97 deletions .codecov.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .codecov_header.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
codecov:
require_ci_to_pass: false

comment:
layout: "condensed_header, diff, flags, components, condensed_footer"
hide_project_coverage: false

coverage:
precision: 2
round: down
range: "70...95"

ignore:
- "bin_tests/**"

components:
individual_components:
30 changes: 0 additions & 30 deletions .github/actions/cache/action.yaml

This file was deleted.

24 changes: 21 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
Expand All @@ -25,19 +26,36 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Install Rust
run: rustup install nightly-2024-12-16 && rustup default nightly-2024-12-16
- name: Cache
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@2c41309d51ede152b6f2ee6bf3b71e6dc9a8b7df # 2.49.27
with:
tool: cargo-llvm-cov@0.6.13,nextest@0.9.96
- name: Cache [rust]
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
- name: Generate code coverage (including doc tests)
run: |
cargo llvm-cov --all-features --workspace --no-report nextest
cargo llvm-cov --all-features --workspace --no-report nextest --exclude bin_tests
cargo llvm-cov --all-features --workspace --no-report --doc
cargo llvm-cov report --doctests --lcov --output-path lcov.info
cargo clean
- name: Generate Codecov components configuration
run: |
cat .codecov_header.yml >| .codecov.yml
find . -name Cargo.toml | cut -c 3- | grep -v "^Cargo.toml\$" | xargs -n 1 dirname | grep -v / | grep -v "^bin_tests$"| sort | \
while read -r name; do echo -e " - component-id: ${name}\n name: ${name}\n paths:\n - ${name}/**" >> .codecov.yml ; done
echo "----- .codecov.yml -----"
cat .codecov.yml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # 5.5.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
7 changes: 6 additions & 1 deletion .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Fuzz test
on:
push:

jobs:
run-fuzz:
runs-on: ubuntu-latest
Expand All @@ -10,6 +9,7 @@ jobs:
directory: [libdd-alloc, libdd-profiling, libdd-common-ffi, libdd-trace-utils]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Set up Rust
Expand All @@ -21,6 +21,11 @@ jobs:
- uses: taiki-e/install-action@2c41309d51ede152b6f2ee6bf3b71e6dc9a8b7df # 2.49.27
with:
tool: cargo-bolero
- name: Cache [rust]
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
- run: |
set -e
# cargo bolero list outputs {"package":"package-name","test":"test-name"}
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ jobs:
shellcheck_opts: '-e SC2086'
rustfmt:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
steps:
- name: Checkout sources
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Cache
uses: ./.github/actions/cache
- name: Install nightly-2024-12-16 toolchain and rustfmt
run: rustup install nightly-2024-12-16 && rustup default nightly-2024-12-16 && rustup component add rustfmt
- name: Cache [rust]
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
- run: cargo fmt --all -- --check
clippy:
name: "clippy #${{ matrix.platform }} ${{ matrix.rust_version }}"
Expand All @@ -35,12 +41,13 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Cache
uses: ./.github/actions/cache
with:
rust_version: ${{ matrix.rust_version }}
- name: Install ${{ matrix.rust_version }} toolchain and clippy
run: rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }} && rustup component add clippy
- name: Cache [rust]
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
- name: Run clippy on ${{ matrix.platform }} ${{ matrix.rust_version }}
shell: bash
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
partition: [1, 2, 3, 4, 5]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
PROPTEST_CASES: 1
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
Expand All @@ -22,6 +23,11 @@ jobs:
- uses: taiki-e/install-action@2c41309d51ede152b6f2ee6bf3b71e6dc9a8b7df # 2.49.27
with:
tool: nextest@0.9.96
- name: Cache [rust]
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
- run: MIRIFLAGS="-Zmiri-disable-isolation" cargo miri nextest run --partition count:${{ matrix.partition }}/5
# We need to disable isolation because
# "unsupported operation: `clock_gettime` with `REALTIME` clocks not available when isolation is enabled"
Loading
Loading