Skip to content

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

Draft
seqre wants to merge 3 commits into
masterfrom
cargo-crap
Draft

seqre wants to merge 3 commits into
masterfrom
cargo-crap

Conversation

@seqre

@seqre seqre commented May 23, 2026

Copy link
Copy Markdown
Member

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

github-actions Bot commented May 23, 2026 •

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,818.00 µs
(+11.56%)Baseline: 6,111.63 µs
7,723.65 µs
(88.27%)
json_api/json_api📈 view plot
🚷 view threshold
1,122.50 µs
(+4.38%)Baseline: 1,075.40 µs
1,324.49 µs
(84.75%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1,023.10 µs
(+2.97%)Baseline: 993.60 µs
1,204.82 µs
(84.92%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
977.62 µs
(+2.23%)Baseline: 956.27 µs
1,168.37 µs
(83.67%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
17,469.00 µs
(-1.22%)Baseline: 17,685.14 µs
21,147.11 µs
(82.61%)
🐰 View full continuous benchmarking report in Bencher

@codecov

codecov Bot commented May 24, 2026 •

Copy link
Copy Markdown

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.

This branch has not been deployed

No deployments
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