Commit ed5d3c8
ci: fix rust-ci.yml so test/coverage/security actually run
Three jobs (test, coverage, security) were failing in ~5 s on every PR
since before this branch — far too fast to be cargo failures. Three
root causes:
1. `RUSTFLAGS: -Dwarnings` at workflow env level. This applies to ALL
dependency code, not just the workspace. Whenever an upstream crate
emits a deprecation warning, dependency compilation fails. Replaced
with `cargo clippy --workspace ... -D warnings` which is scoped to
workspace code only.
2. `dtolnay/rust-toolchain` pinned to a commit that no longer resolves
on the action runner. Bumped to a current valid commit on the stable
tip.
3. `cargo install cargo-audit` / `cargo install cargo-tarpaulin` build
from source on every CI run — slow and fragile. Replaced with
`taiki-e/install-action` which downloads prebuilt binaries.
Also swapped `cargo-tarpaulin` for `cargo-llvm-cov`. Tarpaulin shells
out to a kernel module that breaks under various Ubuntu kernel updates;
llvm-cov uses Rust's own coverage instrumentation and is the modern
choice. Output is lcov instead of cobertura, codecov-action accepts both.
Local verification:
cargo fmt --all -- --check → pass
cargo clippy --workspace --all-targets --all-features
-- -D warnings → pass
cargo test --workspace --all-features --no-fail-fast → 139/139
https://claude.ai/code/session_012opuP3HehkjDkF1XQ8nFex1 parent d850323 commit ed5d3c8
1 file changed
Lines changed: 41 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | | - | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | | - | |
26 | | - | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | | - | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 | | |
43 | | - | |
44 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
45 | 58 | | |
46 | 59 | | |
47 | 60 | | |
48 | 61 | | |
49 | 62 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
55 | 76 | | |
56 | 77 | | |
57 | | - | |
| 78 | + | |
| 79 | + | |
0 commit comments