Skip to content

Commit 981bf8a

Browse files
authored
Always run the solvers job together (#366)
1 parent df93d07 commit 981bf8a

1 file changed

Lines changed: 26 additions & 18 deletions

File tree

‎.CI/Jenkinsfile‎

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ pipeline {
3131
booleanParam(name: 'report_ryzen_5950x_2', defaultValue: false, description: 'Generate a report for ryzen-5950x-2 without running the tests')
3232

3333
booleanParam(name: 'conversion_script', defaultValue: false, description: 'master branch with conversion script from MSL 3 to 4 (ryzen-5950x-1). This is an experimental job that does not run on a fixed schedule.')
34-
booleanParam(name: 'cvode', defaultValue: false, description: 'master branch, simulated with -s cvode, filling cvode (ryzen-5950x-1). Ticking it together with master, gbode or ida runs one job that builds every model once and simulates it with each of them. This is an experimental job that does not run on a fixed schedule.')
35-
booleanParam(name: 'gbode', defaultValue: false, description: 'master branch, simulated with -s gbode -gbm=radauIIA3, filling gbode (ryzen-5950x-1). Ticking it together with master, cvode or ida runs one job that builds every model once and simulates it with each of them. This is an experimental job that does not run on a fixed schedule.')
36-
booleanParam(name: 'ida', defaultValue: false, description: 'master branch, simulated with -s ida, filling ida (ryzen-5950x-1). Ticking it together with master, cvode or gbode runs one job that builds every model once and simulates it with each of them. This is an experimental job that does not run on a fixed schedule.')
34+
booleanParam(name: 'solvers', defaultValue: false, description: 'master branch, simulated with -s cvode, -s gbode and -s ida (ryzen-9950x). This is an experimental job that does not run on a fixed schedule.')
3735
booleanParam(name: 'generateSymbolicJacobian', defaultValue: false, description: 'master branch, with --generateSymbolicJacobian (ryzen-5950x-1). This is an experimental job that does not run on a fixed schedule.')
3836
booleanParam(name: 'wasm_jit', defaultValue: false, description: 'master branch, with --simCodeTarget=wasm-jit (ryzen-9950x). Every model is translated and simulated the way simulate() does, filling wasm-jit. This is an experimental job that does not run on a fixed schedule.')
3937
booleanParam(name: 'wasm_web', defaultValue: false, description: 'master branch, with --simCodeTarget=wasm-jit (ryzen-9950x), simulated the way the web omc does: the driver and the linear and nonlinear solvers in wasm, the in-wasm libm, and external "C" only from prebuilt wasm libraries. Fills wasm-web. This is an experimental job that does not run on a fixed schedule.')
@@ -101,11 +99,28 @@ pipeline {
10199
options { skipDefaultCheckout() }
102100
when {
103101
beforeAgent true
104-
expression { params.master || params.cvode || params.gbode || params.ida }
102+
expression { params.master }
103+
}
104+
steps {
105+
runRegressiontest('master', 'master', '', '', false, '', '', false, false, 0, 'configs/conf.json', '', '.CI/testing', null, null)
106+
}
107+
}
108+
109+
stage('solvers') {
110+
agent {
111+
node {
112+
label 'ryzen-9950x'
113+
customWorkspace 'ws/OpenModelicaLibraryTestingWork'
114+
}
115+
}
116+
options { skipDefaultCheckout() }
117+
when {
118+
beforeAgent true
119+
expression { params.solvers }
105120
}
106121
steps {
107122
runRegressiontest('master', 'master', '', '', false, '', '', false, false, 0, 'configs/conf.json', '', '.CI/testing', null,
108-
solvers(params.master, params.cvode, params.gbode, params.ida))
123+
solvers())
109124
}
110125
}
111126

@@ -588,14 +603,8 @@ pipeline {
588603
sh "./report.py --branches='${env.GITBRANCHES_NEWBACKEND_DAE}' configs/conf-nonstandard.json"
589604
sh "mv overview.html overview-nonstandard-libs-newbackend-dae.html"
590605

591-
sh "./report.py --branches='cvode master' configs/conf.json"
592-
sh "mv overview.html overview-cvode.html"
593-
594-
sh "./report.py --branches='gbode master' configs/conf.json"
595-
sh "mv overview.html overview-gbode.html"
596-
597-
sh "./report.py --branches='ida master' configs/conf.json"
598-
sh "mv overview.html overview-ida.html"
606+
sh "./report.py --branches='cvode gbode ida master' configs/conf.json"
607+
sh "mv overview.html overview-solvers.html"
599608

600609
// The ways a wasm-jit model is simulated, against master: the plain
601610
// simulation path, the two FMI 3.0 interfaces of one exported wasm FMU,
@@ -869,12 +878,11 @@ def fmiSimulators(boolean omsimulator, boolean fmpy) {
869878
* Every model is built once and simulated with each of them, filling master,
870879
* cvode, gbode and ida as the four jobs did; a library is only run for the
871880
* solvers missing it, so one job serves master daily and cvode weekly. */
872-
def solvers(boolean dflt, boolean cvode, boolean gbode, boolean ida) {
881+
def solvers(boolean cvode, boolean gbode, boolean ida) {
873882
def chosen = []
874-
if (dflt) chosen << 'default'
875-
if (cvode) chosen << 'cvode'
876-
if (gbode) chosen << 'gbode'
877-
if (ida) chosen << 'ida'
883+
chosen << 'cvode'
884+
chosen << 'gbode'
885+
chosen << 'ida'
878886
return chosen
879887
}
880888

0 commit comments

Comments
 (0)