]> git.ipfire.org Git - location/libloc.git/commitdiff
jenkins: Remove extra tests we currently don't support
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Mar 2025 14:44:42 +0000 (14:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Mar 2025 14:44:42 +0000 (14:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index b90dea826012eb56ca7dbd569f763a52018cf3ba..ad6706631a830cc2c3d6322d32f9938f486bbd9b 100644 (file)
@@ -125,84 +125,8 @@ pipeline {
 
                stage("Coverage Tests") {
                        parallel {
-                               stage("Address Sanitizer") {
-                                       agent {
-                                               docker {
-                                                       image "debian:trixie"
-
-                                                       // Run as root inside the containers to install dependencies
-                                                       args "-u root"
-
-                                                       customWorkspace "${JOB_NAME}/${BUILD_ID}/asan"
-                                               }
-                                       }
-
-                                       stages {
-                                               stage("Install Dependencies") {
-                                                       steps {
-                                                               script {
-                                                                       installBuildDepsDebian("trixie", "gcc", "amd64")
-                                                               }
-                                                       }
-                                               }
-
-                                               stage("Configure") {
-                                                       steps {
-                                                               sh "./autogen.sh"
-                                                               sh """
-                                                                       ./configure \
-                                                                               --prefix=/usr \
-                                                                               --enable-asan \
-                                                                               --enable-debug
-                                                               """
-                                                       }
-                                               }
-
-                                               stage("Build") {
-                                                       steps {
-                                                               sh "make -j\$(nproc)"
-                                                       }
-                                               }
-
-                                               stage("Check") {
-                                                       steps {
-                                                               script {
-                                                                       try {
-                                                                               sh "make check"
-                                                                       } catch (Exception e) {
-                                                                               unstable("Address Sanitizer checks failed")
-                                                                       }
-                                                               }
-                                                       }
-
-                                                       post {
-                                                               unstable {
-                                                                       // Copy test logs into a special directory
-                                                                       sh """
-                                                                               mkdir -pv asan
-                                                                               find tests -name "*.log" | xargs --no-run-if-empty \
-                                                                                       cp --verbose --parents --target-directory=asan/
-                                                                       """
-
-                                                                       // Archive the logs only if the stage fails
-                                                                       archiveArtifacts artifacts: "asan/**/*"
-
-                                                                       echo "The test logs have been archived"
-                                                               }
-                                                       }
-                                               }
-                                       }
-
-                                       // Cleanup the workspace afterwards
-                                       post {
-                                               always {
-                                                       cleanWs()
-                                               }
-                                       }
-                               }
-
                                /*
-                                       Run Pakfire through Clang's Static Analyzer...
+                                       Run through Clang's Static Analyzer...
                                */
                                stage("Clang Static Analyzer") {
                                        agent {
@@ -228,101 +152,29 @@ pipeline {
                                                        }
                                                }
 
-                                               stage("Configure") {
-                                                       steps {
-                                                               sh "./autogen.sh"
-                                                               sh "scan-build ./configure --prefix=/usr --enable-debug"
-                                                       }
-                                               }
-
-                                               stage("Build") {
-                                                       steps {
-                                                               sh "scan-build -o scan-build-output make -j\$(nproc)"
-                                                       }
-                                               }
-
-                                               stage("Publish Report") {
-                                                       steps {
-                                                               archiveArtifacts artifacts: "scan-build-output/**/*"
-                                                       }
-                                               }
-                                       }
-
-                                       // Cleanup the workspace afterwards
-                                       post {
-                                               always {
-                                                       cleanWs()
-                                               }
-                                       }
-                               }
-
-                               stage("LCOV") {
-                                       agent {
-                                               docker {
-                                                       image "debian:bookworm"
-
-                                                       // Run as root inside the containers to install dependencies
-                                                       args "-u root"
-
-                                                       customWorkspace "${JOB_NAME}/${BUILD_ID}/lcov"
-                                               }
-                                       }
-
-                                       stages {
-                                               stage("Install Dependencies") {
-                                                       steps {
-                                                               script {
-                                                                       installBuildDepsDebian("bookworm", "gcc", "amd64")
-
-                                                                       // Install lcov
-                                                                       sh "apt-get install -y lcov"
-                                                               }
-                                                       }
-                                               }
-
                                                stage("Configure") {
                                                        steps {
                                                                sh "./autogen.sh"
                                                                sh """
+                                                                       scan-build \
                                                                        ./configure \
                                                                                --prefix=/usr \
-                                                                               --enable-coverage \
-                                                                               --enable-debug
+                                                                               --enable-debug \
+                                                                               --enable-lua \
+                                                                               --enable-perl
                                                                """
                                                        }
                                                }
 
                                                stage("Build") {
                                                        steps {
-                                                               sh "make -j\$(nproc)"
-                                                       }
-                                               }
-
-                                               stage("Check") {
-                                                       steps {
-                                                               sh "make check || true"
+                                                               sh "scan-build -o scan-build-output make -j\$(nproc)"
                                                        }
                                                }
 
                                                stage("Publish Report") {
                                                        steps {
-                                                               // Capture coverage data
-                                                               sh """
-                                                                       lcov \
-                                                                               --capture \
-                                                                               --directory . \
-                                                                               --output-file coverage.info
-                                                               """
-
-                                                               // Generate HTML report
-                                                               sh """
-                                                                       genhtml \
-                                                                               coverage.info \
-                                                                               --output-directory lcov
-                                                               """
-
-                                                               // Upload the report
-                                                               archiveArtifacts artifacts: "lcov/**/*"
+                                                               archiveArtifacts artifacts: "scan-build-output/**/*"
                                                        }
                                                }
                                        }