Skip to content

feat(ci): add cargo-crap check to CI#580

Draft
seqre wants to merge 1 commit into
masterfrom
cargo-crap
Draft

feat(ci): add cargo-crap check to CI#580
seqre wants to merge 1 commit into
masterfrom
cargo-crap

Conversation

@seqre
Copy link
Copy Markdown
Member

@seqre seqre commented May 23, 2026

Related issue or discussion

Description

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / cleanup
  • Performance improvement
  • Other (describe above)

@seqre seqre self-assigned this May 23, 2026
@github-actions github-actions Bot added the A-ci Area: CI (Continuous Integration) label May 23, 2026
Comment on lines +249 to +278
run: cargo llvm-cov report --lcov --output-path lcov.info

- name: Upload lcov artifact
uses: actions/upload-artifact@v4
with:
# Unique per workflow run so concurrent PR runs never collide.
name: lcov-${{ github.run_id }}
path: lcov.info
retention-days: 1

cargo-crap:
if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository

name: CRAP metric gate
runs-on: ubuntu-latest
needs: ["coverage"]
env:
RUSTC_WRAPPER: ""
SCCACHE_GHA_ENABLED: ""
steps:
- name: Checkout source
uses: actions/checkout@v6

- name: Download lcov artifact
uses: actions/download-artifact@v4
with:
name: lcov-${{ github.run_id }}
path: lcov

- name: Install cargo-crap
@github-actions
Copy link
Copy Markdown

🐰 Bencher Report

Branchcargo-crap
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
6,921.20 µs
(+13.25%)Baseline: 6,111.63 µs
7,723.65 µs
(89.61%)
json_api/json_api📈 view plot
🚷 view threshold
1,107.70 µs
(+3.00%)Baseline: 1,075.40 µs
1,324.49 µs
(83.63%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1,002.90 µs
(+0.94%)Baseline: 993.60 µs
1,204.82 µs
(83.24%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
972.76 µs
(+1.72%)Baseline: 956.27 µs
1,168.37 µs
(83.26%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
17,483.00 µs
(-1.14%)Baseline: 17,685.14 µs
21,147.11 µs
(82.67%)
🐰 View full continuous benchmarking report in Bencher

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
rust 90.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ci Area: CI (Continuous Integration)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants