You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by pg...@apache.org on 2025/05/14 21:26:46 UTC

(couchdb) branch jenkins-clouseau-windows created (now e62c06063)

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

pgj pushed a change to branch jenkins-clouseau-windows
in repository https://gitbox.apache.org/repos/asf/couchdb.git


      at e62c06063 Enable Clouseau for the Windows CI

This branch includes the following new commits:

     new e62c06063 Enable Clouseau for the Windows CI

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(couchdb) 01/01: Enable Clouseau for the Windows CI

Posted by pg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pgj pushed a commit to branch jenkins-clouseau-windows
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit e62c0606302a660c8e5c0aa9afe62a8f5cbc350e
Author: Gabor Pali <ga...@ibm.com>
AuthorDate: Wed May 14 04:49:18 2025 +0200

    Enable Clouseau for the Windows CI
    
    Implement the `with_clouseau` flag for the Windows worker.  The
    `elixir-search` target could be safely run unconditionally, the
    `Makefile` is going to skip the tests when Clouseau is not
    present.
    
    At the moment, sharing the Erlang cookie between the CouchDB and
    Clouseau nodes for orchestrating the tests does not work in the
    current setup.  By default, we rely on the `.erlang.cookie` file
    in the user's home directory, but this file could only be opened
    exclusively.  Work this around by setting the cookie string
    through the command line.
---
 build-aux/Jenkinsfile.full | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index 1b770bae1..5e2f03e29 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -134,6 +134,7 @@ meta = [
   'win2022': [
     name: 'Windows 2022',
     spidermonkey_vsn: '128',
+    with_clouseau: true,
     node_label: 'win'
   ]
 ]
@@ -229,9 +230,11 @@ def generateNativeStage(platform) {
                 powershell( script: "New-Item -ItemType Directory -Path '${platform}/build' -Force", label: 'Create build directories' )
                 powershell( script: "tar -xf (Get-Item apache-couchdb-*.tar.gz) -C '${platform}/build' --strip-components=1", label: 'Unpack release' )
                 dir( "${platform}/build" ) {
+                  withClouseau = meta[platform].with_clouseau ? '-WithClouseau' : ''
+
                   powershell( script: """
                     .\\..\\..\\couchdb-glazier\\bin\\shell.ps1
-                    .\\configure.ps1 -SkipDeps -WithNouveau -SpiderMonkeyVersion ${meta[platform].spidermonkey_vsn}
+                    .\\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')
@@ -239,13 +242,17 @@ def generateNativeStage(platform) {
                   //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')
 
-                  powershell( script: '& .\\..\\..\\couchdb-glazier\\bin\\shell.ps1; Write-Host "NOT AVAILABLE: make -f Makefile.win elixir-search"', label: 'N/A Clouseau tests')
+                  powershell( script: """
+                      .\\..\\..\\couchdb-glazier\\bin\\shell.ps1
+                      Set-Item -Path env:GRADLE_OPTS -Value '-Dorg.gradle.daemon=false'
+                      make -f Makefile.win elixir-search ERLANG_COOKIE=crumbles
+                    """, label: 'Clouseau tests')
 
                   powershell( script: """
-                    .\\..\\..\\couchdb-glazier\\bin\\shell.ps1
-                    Set-Item -Path env:GRADLE_OPTS -Value '-Dorg.gradle.daemon=false'
-                    make -f Makefile.win mango-test
-                  """, label: 'Mango tests')
+                      .\\..\\..\\couchdb-glazier\\bin\\shell.ps1
+                      Set-Item -Path env:GRADLE_OPTS -Value '-Dorg.gradle.daemon=false'
+                      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')