-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodecov.yml
More file actions
154 lines (140 loc) · 3.85 KB
/
codecov.yml
File metadata and controls
154 lines (140 loc) · 3.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Codecov configuration for Meow Decoder
# Monitors Rust crypto coverage (crypto_core + rust_crypto)
# Python coverage is local-only (pytest-cov / .coveragerc)
#
# Coverage targets (per-file baselines from tarpaulin):
# rust_crypto/src/handles.rs 93.5% (534/571)
# rust_crypto/src/pure.rs 98.7% (151/153)
# crypto_core/src/pure_crypto.rs 98.4% (185/188)
# crypto_core/src/aead_wrapper.rs 95.8% (68/71)
# crypto_core/src/nonce.rs 98.2% (55/56)
# crypto_core/src/types.rs 96.6% (28/29)
# crypto_core/src/verus_proofs.rs 100% (10/10)
# crypto_core/src/verus_kdf_proofs.rs 97.9% (47/48)
codecov:
require_ci_to_pass: yes
notify:
wait_for_ci: yes
coverage:
status:
project:
# Overall: both crates combined
default:
target: 93%
threshold: 2%
if_ci_failed: error
paths:
- "crypto_core/src/"
- "rust_crypto/src/"
# Per-crate status checks
crypto_core:
target: 95%
threshold: 2%
if_ci_failed: error
flags:
- rust
paths:
- "crypto_core/src/"
rust_crypto:
target: 93%
threshold: 2%
if_ci_failed: error
flags:
- rust
paths:
- "rust_crypto/src/handles.rs"
- "rust_crypto/src/pure.rs"
patch:
default:
target: 90%
threshold: 5%
paths:
- "crypto_core/src/"
- "rust_crypto/src/"
precision: 2
round: down
range: 50..100
flags:
rust:
paths:
- crypto_core/src/
- rust_crypto/src/
carryforward: true
component_management:
default_rules:
statuses:
- type: project
target: auto
threshold: 2%
individual_components:
- component_id: crypto_core_primitives
name: "crypto_core: Pure Crypto Primitives"
paths:
- crypto_core/src/pure_crypto.rs
- crypto_core/src/aead_wrapper.rs
- crypto_core/src/nonce.rs
- crypto_core/src/types.rs
flag_regexes:
- rust
- component_id: crypto_core_verification
name: "crypto_core: Verus Proofs"
paths:
- crypto_core/src/verus_proofs.rs
- crypto_core/src/verus_kdf_proofs.rs
flag_regexes:
- rust
- component_id: rust_crypto_handles
name: "rust_crypto: Opaque Handle Registry"
paths:
- rust_crypto/src/handles.rs
flag_regexes:
- rust
- component_id: rust_crypto_pure
name: "rust_crypto: Pure Crypto Functions"
paths:
- rust_crypto/src/pure.rs
flag_regexes:
- rust
# Ignore everything except Rust crypto source
ignore:
# Python
- "meow_decoder/"
- "tests/"
- "examples/"
- "docs/"
- "scripts/"
- "assets/"
- "formal/"
- "mobile/"
- "fuzz/"
- "web_demo/"
- "htmlcov/"
# Rust non-source (test files, benchmarks, build artifacts)
- "crypto_core/benches/"
- "crypto_core/tests/"
- "crypto_core/htmlcov/"
- "crypto_core/pkg/"
- "rust_crypto/tests/"
- "rust_crypto/benches/"
- "rust_crypto/fuzz/"
- "target/"
# Non-testable Rust source (hardware-dependent / WASM / PyO3 FFI)
- "rust_crypto/src/lib.rs" # PyO3 bindings (requires Python interpreter)
- "crypto_core/src/wasm.rs" # WASM bindings (requires wasm32 target)
- "crypto_core/src/hsm.rs" # Hardware Security Module (requires PKCS#11)
- "crypto_core/src/tpm.rs" # TPM 2.0 (requires tpm2-tss)
- "crypto_core/src/yubikey_piv.rs" # YubiKey PIV (requires hardware)
- "crypto_core/src/secure_alloc.rs" # Platform-dependent (50% is #[cfg(windows)] untestable on Linux + OS error paths)
# Misc
- "*.md"
- "*.py"
- "*.js"
- "*.html"
- ".github/"
comment:
layout: "reach,diff,flags,components,tree,footer"
behavior: default
require_changes: false
require_base: no
require_head: yes
show_carryforward_flags: true