ci(M0.2): enforce workspace feature matrix

Run locked default, no-default-features, and all-features checks and tests in Jenkins, and build both the default workspace and all-feature release. Keep M0.2 open pending a real provisioned-worker run.

Tests: local Jenkins-equivalent check/test/build matrix with --locked (passed)

Tests: scripts/test-ci.sh; git diff --check (passed)
This commit is contained in:
Dandaedre 2026-10-05 07:49:53 +02:00
parent 9711e6024c
commit bccc948ebd
2 changed files with 6 additions and 0 deletions

5
Jenkinsfile vendored
View File

@ -96,6 +96,8 @@ pipeline {
steps {
sh '''
set -eu
cargo check --workspace --all-targets --locked
cargo check --workspace --all-targets --no-default-features --locked
cargo check --workspace --all-targets --all-features --locked
'''
}
@ -105,6 +107,8 @@ pipeline {
steps {
sh '''
set -eu
cargo test --workspace --all-targets --locked
cargo test --workspace --all-targets --no-default-features --locked
cargo test --workspace --all-targets --all-features --locked
: >"coverage/.tests-passed-${BUILD_NUMBER}"
'''
@ -153,6 +157,7 @@ pipeline {
steps {
sh '''
set -eu
cargo build --workspace --locked
cargo build --workspace --release --all-features --locked
BINARY="${CARGO_TARGET_DIR}/release/fader_master"

View File

@ -19,6 +19,7 @@ Dependencies: planning.
- [x] **M0.1 Toolchain and build:** select/test an MSRV and pinned toolchain, centralize workspace metadata/dependencies, track Cargo.lock for the executable, document native build prerequisites. Acceptance: a fresh supported Linux checkout builds and tests reproducibly with `--locked`; the chosen MSRV builds the chosen dependency set.
- [ ] **M0.2 CI gates:** align Jenkins with AGENTS.md, including doctests, Clippy `-D warnings`, release build and later backend feature matrix. Acceptance: representative formatting/lint/test failures fail the pipeline; default and full-feature builds pass with provisioned dependencies.
Repository configuration now runs locked default, no-default-features, and all-features checks/tests plus warning-strict documentation, Clippy, and release gates. Keep this open until a real Jenkins run on the provisioned worker passes.
- [x] **M0.2a Coverage badges:** measure locked all-target line coverage with a pinned tool, enforce the documented 20% scaffold floor, and generate/archive the version, test, and coverage badges on every build. Publish atomically only from `main`, with fresh-build markers preventing stale test or coverage values. Acceptance: renderer, coverage lifecycle, finalization, and publication fixture tests pass; the real local measurement is above the floor. Jenkins publication and public retrieval remain deployment checks.
- [ ] **M0.3 Domain boundary:** add `fader-core` and `fader-config`, wire current crates inward, remove placeholder arithmetic tests as real contracts replace them. Acceptance: core tests run without a terminal, sound daemon, native device connection, or Tokio runtime; dependency graph has no cycles.