Skip to content
Merged

200 #212

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
8 changes: 4 additions & 4 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ coverage:
# Only post status if coverage changes
if_ci_failed: error
# Informational only, don't block PR
informational: false
informational: true
# Compare against base commit
base: auto

Expand All @@ -45,8 +45,8 @@ coverage:
threshold: 5%
# Only check if patch has changes
if_not_found: success
# Only check new lines
only_pulls: false
# Informational only, don't block PR
informational: true

# Changes status (diff between head and base)
changes:
Expand All @@ -64,7 +64,7 @@ coverage:

# Pull request comment configuration
comment:
# Layout for PR comments (modern condensed format)
# Layout for PR comments (Free tier compatible)
layout: "condensed_header, condensed_files, condensed_footer"
# Update existing comment instead of creating new ones
behavior: default
Expand Down
27 changes: 22 additions & 5 deletions .github/workflows/reusable-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -402,32 +402,49 @@ jobs:
with:
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Generate coverage with nextest
- name: Generate coverage for all tests
run: |
cargo llvm-cov nextest --all-features --workspace --lcov --output-path lcov.info

- name: Validate coverage file
run: |
set -euo pipefail
echo "=== Validating LCOV file ==="
if [ ! -f "lcov.info" ]; then
echo "ERROR: lcov.info not found"
exit 1
fi
size=$(wc -c < "lcov.info")
lines=$(wc -l < "lcov.info")
echo "✓ lcov.info: ${size} bytes, ${lines} lines"
if [ "$size" -eq 0 ]; then
echo "ERROR: lcov.info is empty"
exit 1
fi
echo "First 10 lines:"
head -10 "lcov.info"

- name: Generate JUnit XML test results
if: success() || failure()
run: |
mkdir -p target/nextest/ci
cargo nextest run --all-features --workspace --profile ci --no-fail-fast || true

- name: "Codecov: Upload code coverage"
- name: "Codecov: Upload coverage"
uses: codecov/codecov-action@v5
with:
files: ./lcov.info
fail_ci_if_error: false
use_oidc: true
flags: unittests
name: codecov-coverage
verbose: true

- name: "Codecov: Upload test results"
if: success() || failure()
uses: codecov/test-results-action@v1
with:
files: ./target/nextest/ci/junit.xml
use_oidc: true
flags: unittests
name: codecov-test-results

- name: Generate HTML coverage report
Expand All @@ -449,7 +466,7 @@ jobs:
echo "### Code Coverage" >> $GITHUB_STEP_SUMMARY
echo "- LCOV report: \`lcov.info\`" >> $GITHUB_STEP_SUMMARY
echo "- HTML report: \`target/llvm-cov/html/\`" >> $GITHUB_STEP_SUMMARY
echo "- [View Coverage Dashboard](https://codecov.io/gh/RAprogramm/masterror)" >> $GITHUB_STEP_SUMMARY
echo "- [View Coverage Dashboard](https://app.codecov.io/gh/RAprogramm/masterror)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Test Analytics" >> $GITHUB_STEP_SUMMARY
echo "- JUnit XML: \`target/nextest/ci/junit.xml\`" >> $GITHUB_STEP_SUMMARY
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,4 +489,3 @@ assert_eq!(problem.grpc.expect("grpc").name, "UNAUTHENTICATED");

MSRV: **1.90** · License: **MIT OR Apache-2.0** · No `unsafe`


Loading