This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 6ac5413ec dev: Enable Eunit/Elixir/Nouveau tests on Windows (#5864)
6ac5413ec is described below

commit 6ac5413ece9b0c403ab594dda58ad0b10fa0711b
Author: Ronny Berndt <[email protected]>
AuthorDate: Sun Feb 1 13:18:34 2026 +0100

    dev: Enable Eunit/Elixir/Nouveau tests on Windows (#5864)
---
 build-aux/Jenkinsfile | 95 ++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 63 insertions(+), 32 deletions(-)

diff --git a/build-aux/Jenkinsfile b/build-aux/Jenkinsfile
index de0eab873..6100679e9 100644
--- a/build-aux/Jenkinsfile
+++ b/build-aux/Jenkinsfile
@@ -325,58 +325,89 @@ def generateNativeStage(platform) {
                   }
 
                   powershell( script: """
-                    .\\..\\..\\couchdb-glazier\\bin\\shell.ps1
+                    ..\\..\\couchdb-glazier\\bin\\shell.ps1
                     .\\configure.ps1 -SkipDeps -WithNouveau ${withClouseau} 
-SpiderMonkeyVersion ${meta[platform].spidermonkey_vsn}
                     Set-Item -Path env:GRADLE_OPTS -Value 
'-Dorg.gradle.daemon=false'
                     make -f Makefile.win release
                   """, label: 'Configure and Build')
 
-                  //powershell( script: 
".\\..\\..\\couchdb-glazier\\bin\\shell.ps1; make -f Makefile.win eunit", 
label: 'EUnit tests')
-                  //powershell( script: 
".\\..\\..\\couchdb-glazier\\bin\\shell.ps1; make -f Makefile.win elixir", 
label: 'Elixir tests')
+                  retry (3) {
+                    powershell( script: """
+                      ..\\..\\couchdb-glazier\\bin\\shell.ps1
+                      Write-Output 'The following tests are skipped:'
+                      ..\\..\\couchdb-glazier\\bin\\exclude_tests_win.ps1 
-Path . | Out-Host
+                      make -j 4 -f Makefile.win eunit
+                    """, label: 'EUnit tests')
+                  }
 
-                  powershell( script: """
-                    .\\..\\..\\couchdb-glazier\\bin\\shell.ps1
-                    Set-Item -Path env:GRADLE_OPTS -Value 
'-Dorg.gradle.daemon=false'
-                    ${setClouseauJavaHome}
-                    make -f Makefile.win elixir-search ERLANG_COOKIE=crumbles
-                  """, label: 'Clouseau tests')
+                  retry (3) {
+                    powershell( script: """
+                      ..\\..\\couchdb-glazier\\bin\\shell.ps1
+                      make -f Makefile.win elixir
+                      """, label: 'Elixir tests')
+                  }
 
-                  powershell( script: """
-                      .\\..\\..\\couchdb-glazier\\bin\\shell.ps1
-                      Set-Item -Path env:GRADLE_OPTS -Value 
'-Dorg.gradle.daemon=false'
-                      ${setClouseauJavaHome}
-                      make -f Makefile.win mango-test ERLANG_COOKIE=crumbles
-                    """, label: 'Mango tests')
-
-                  powershell( script: 
'.\\..\\..\\couchdb-glazier\\bin\\shell.ps1; Write-Host "NOT AVAILABLE: make -f 
Makefile.win weatherreport-test"', label: 'N/A Weatherreport tests')
-
-                  // temporary exclude - random flaky tests on Windows
-                  //powershell( script: """
-                  //  .\\..\\..\\couchdb-glazier\\bin\\shell.ps1
-                  //  Set-Item -Path env:GRADLE_OPTS -Value 
'-Dorg.gradle.daemon=false'
-                  //  make -f Makefile.win nouveau-test
-                  //""", label: 'Nouveau tests')
-                }
+                  retry (3) {
+                    timeout(time: 5, unit: "MINUTES") {
+                      powershell( script: """
+                        ..\\..\\couchdb-glazier\\bin\\shell.ps1
+                        Set-Item -Path env:GRADLE_OPTS -Value 
'-Dorg.gradle.daemon=false'
+                        ${setClouseauJavaHome}
+                        make -f Makefile.win elixir-search 
ERLANG_COOKIE=crumbles
+                      """, label: 'Clouseau tests')
+                    }
+                  }
 
-                powershell( script: """
-                    .\\couchdb-glazier\\bin\\shell.ps1
-                    .\\couchdb-glazier\\bin\\build_installer.ps1 -Path 
'${platform}/build' -IncludeGitSha -DisableICEChecks
-                """, label: 'Build Windows Installer file')
+                  retry (3) {
+                    timeout(time: 5, unit: "MINUTES") {
+                      powershell( script: """
+                        ..\\..\\couchdb-glazier\\bin\\shell.ps1
+                        Set-Item -Path env:GRADLE_OPTS -Value 
'-Dorg.gradle.daemon=false'
+                        ${setClouseauJavaHome}
+                        make -f Makefile.win mango-test ERLANG_COOKIE=crumbles
+                      """, label: 'Mango tests')
+                    }
+                  }
 
-                archiveArtifacts artifacts: '*.msi', fingerprint: true, 
onlyIfSuccessful: true
+                  powershell( script: 
'..\\..\\couchdb-glazier\\bin\\shell.ps1; Write-Host "NOT AVAILABLE: make -f 
Makefile.win weatherreport-test"', label: 'N/A Weatherreport tests')
+
+                  retry (3) {
+                    powershell( script: """
+                      ..\\..\\couchdb-glazier\\bin\\shell.ps1
+                      Set-Item -Path env:GRADLE_OPTS -Value 
'-Dorg.gradle.daemon=false'
+                      make -f Makefile.win nouveau-test
+                    """, label: 'Nouveau tests')
+                  }
+                }
               }
               catch (err) {
                 powershell( script: "Get-ChildItem ${WORKSPACE}")
                 dir( "${platform}/build" ) {
-                  powershell( script: 
'.\\..\\..\\couchdb-glazier\\bin\\shell.ps1; make -f Makefile.win build-report')
+                  powershell( script: 
'..\\..\\couchdb-glazier\\bin\\shell.ps1; make -f Makefile.win build-report')
                   powershell( script: 'Get-Content test-results.log')
                 }
                 error("Build step failed with error: ${err.getMessage()}")
               }
               finally {
                 powershell( script: 'Get-ChildItem')
+                powershell( script: 'Get-Process erl -ErrorAction 
SilentlyContinue | Stop-Process -PassThru')
+              }
+            }
+
+            stage("${meta[platform].name} - package") {
+              try {
+                powershell( script: """
+                  .\\couchdb-glazier\\bin\\shell.ps1
+                  .\\couchdb-glazier\\bin\\build_installer.ps1 -Path 
'${platform}/build' -IncludeGitSha -DisableICEChecks
+                """, label: 'Build Windows Installer file')
+                archiveArtifacts artifacts: '*.msi', fingerprint: true, 
onlyIfSuccessful: true
+              }
+              catch (err) {
+                powershell( script: "Get-ChildItem ${WORKSPACE}")
+                error("Build step failed with error: ${err.getMessage()}")
+              }
+              finally {
                 powershell( script: "Remove-Item -Path '${WORKSPACE}\\*' 
-Force -Recurse -ErrorAction SilentlyContinue")
-                powershell( script: 'Get-ChildItem')
               }
             }
           }

Reply via email to