From e9a2e497ae28f8b8179c00796efc6e7671afc23c Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Thu, 17 Sep 2026 01:24:20 +0200 Subject: [PATCH] Run only Cargo tests in Jenkins pipelines --- Jenkinsfile | 51 +++++++-------------------------------------- target_test_project | 2 +- 2 files changed, 8 insertions(+), 45 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1b3264a..6f5aaad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,6 @@ // Add this webhook in Gitea: // http://192.168.1.37:8080/gitea-webhook/post -// Skeleton checks only; release behavior remains in the Python implementation. pipeline { agent { label 'rust_no_docker' } @@ -16,47 +15,11 @@ pipeline { } } - stage('Rust Toolchain') { - steps { - sh ''' - set -eu - rustc --version - cargo --version - cargo fmt --version - cargo clippy --version - ''' - } - } - - stage('Format') { - steps { - sh 'cargo fmt --check' - } - } - - stage('Clippy') { - steps { - sh 'cargo clippy --locked --offline --all-targets --all-features -- -D warnings' - } - } - - stage('Tests') { + stage('Cargo Tests') { steps { sh 'cargo test --locked --offline --all' } } - - stage('Build') { - steps { - sh 'cargo build --locked --offline --release' - } - } - - stage('Inspect Smoke Test') { - steps { - sh 'cargo run --locked --offline --release -- . --stop-after inspect' - } - } } post { @@ -64,8 +27,8 @@ pipeline { publishChecks( conclusion: 'SUCCESS', name: 'Rust CI', - summary: 'Rust inspect milestone passed all CI checks.', - text: 'Formatting, strict Clippy, Cargo tests, release build, and local project inspection passed. Release functionality is still being ported.', + summary: 'Cargo tests passed.', + text: 'Rust tests passed without cross compilation.', title: 'CI Successful' ) } @@ -74,8 +37,8 @@ pipeline { publishChecks( conclusion: 'FAILURE', name: 'Rust CI', - summary: 'Rust skeleton failed CI.', - text: 'Check the Jenkins log for toolchain, formatting, Clippy, test, build, or startup failures.', + summary: 'Cargo tests failed.', + text: 'Check the Jenkins log for the Cargo test failure.', title: 'CI Failed' ) } @@ -84,8 +47,8 @@ pipeline { publishChecks( conclusion: 'ACTION_REQUIRED', name: 'Rust CI', - summary: 'Rust skeleton CI is unstable.', - text: 'The Jenkins build completed with an unstable status.', + summary: 'Rust CI is unstable.', + text: 'The Cargo test build completed with an unstable status.', title: 'CI Unstable' ) } diff --git a/target_test_project b/target_test_project index 6dc2882..627a2ef 160000 --- a/target_test_project +++ b/target_test_project @@ -1 +1 @@ -Subproject commit 6dc28828ccfaefa71215b154ba8b7420190760b3 +Subproject commit 627a2efe3ee0cc451c3afab1689d896f631d8c9b