ci: disable unpublished coverage check

This commit is contained in:
Dandaedre 2026-09-30 16:33:25 +02:00
parent 6e4e27f774
commit f52f61f4c4
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
3 changed files with 30 additions and 22 deletions

45
Jenkinsfile vendored
View File

@ -8,7 +8,9 @@ pipeline {
CARGO_TERM_COLOR = 'always'
RUST_BACKTRACE = '1'
MSRV = '1.98.1'
TARPAULIN_VERSION = '0.37.4'
// Coverage remains a local release gate while Jenkins does not publish
// its report artifact.
// TARPAULIN_VERSION = '0.37.4'
CARGO_AUDIT_VERSION = '0.22.2'
CARGO_DENY_VERSION = '0.20.2'
}
@ -56,12 +58,13 @@ pipeline {
rustfmt --version
cargo clippy --version
INSTALLED_TARPAULIN="$(cargo tarpaulin --version 2>/dev/null || true)"
if [ "${INSTALLED_TARPAULIN}" != "cargo-tarpaulin-tarpaulin ${TARPAULIN_VERSION}" ]; then
cargo install cargo-tarpaulin \
--locked \
--version "${TARPAULIN_VERSION}"
fi
# Tarpaulin setup is disabled until CI publishes its report.
# INSTALLED_TARPAULIN="$(cargo tarpaulin --version 2>/dev/null || true)"
# if [ "${INSTALLED_TARPAULIN}" != "cargo-tarpaulin-tarpaulin ${TARPAULIN_VERSION}" ]; then
# cargo install cargo-tarpaulin \
# --locked \
# --version "${TARPAULIN_VERSION}"
# fi
INSTALLED_AUDIT="$(cargo audit --version 2>/dev/null || true)"
if [ "${INSTALLED_AUDIT}" != "cargo-audit ${CARGO_AUDIT_VERSION}" ]; then
@ -160,17 +163,19 @@ pipeline {
}
}
stage('Coverage') {
steps {
sh '''
set -eu
echo "Measuring line coverage..."
cargo tarpaulin --config tarpaulin.toml
'''
}
}
// Disabled while Jenkins does not publish the Tarpaulin report artifact.
// Local release validation still uses tarpaulin.toml and its 90% floor.
// stage('Coverage') {
// steps {
// sh '''
// set -eu
//
// echo "Measuring line coverage..."
//
// cargo tarpaulin --config tarpaulin.toml
// '''
// }
// }
stage('Clippy') {
steps {
@ -256,7 +261,7 @@ pipeline {
conclusion: 'SUCCESS',
name: 'Rust CI',
summary: 'JohnSlop passed all CI checks.',
text: 'The Linux MSRV/stable matrix, formatting, feature tests, fixtures, docs, coverage, Clippy, supply-chain policy, and release build completed successfully.',
text: 'The Linux MSRV/stable matrix, formatting, feature tests, fixtures, docs, Clippy, supply-chain policy, and release build completed successfully.',
title: 'Build Successful'
)
@ -268,7 +273,7 @@ pipeline {
conclusion: 'FAILURE',
name: 'Rust CI',
summary: 'JohnSlop failed CI.',
text: 'A toolchain, formatting, test, fixture, documentation, coverage, Clippy, supply-chain, or release check failed. Check the Jenkins log.',
text: 'A toolchain, formatting, test, fixture, documentation, Clippy, supply-chain, or release check failed. Check the Jenkins log.',
title: 'Build Failed'
)

View File

@ -80,8 +80,9 @@ rust_autobadges --high-coverage-percent 0.7 --mid-coverage-percent 0.3
```
Commit `badges/*.svg` and `.run_status.toml`; do not commit the generated
`tarpaulin-report.html`. Jenkins runs both feature configurations and enforces
the Tarpaulin floor before building release binaries.
`tarpaulin-report.html`. Coverage is currently a local release gate: Jenkins
runs both feature configurations, but its Tarpaulin check is disabled while the
job does not publish the report artifact.
## Test scope

View File

@ -711,6 +711,8 @@ and binary versions agree on `0.1.26`.
reproducible.
- [x] Ignore legacy per-package `cargo cyclonedx` intermediates left by earlier
builds so workspace packaging remains clean after SBOM generation is removed.
- [x] Disable Jenkins Tarpaulin installation and execution while the job does
not publish coverage artifacts; retain the local 90% release gate.
Acceptance: release packaging emits archive and binary checksums, and Jenkins
can rebuild the same release commit with an earlier `dist/` bundle or legacy