Changeset 4a60488 for Jenkinsfile_disabled
- Timestamp:
- Sep 27, 2019, 3:35:46 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 90ce35aa
- Parents:
- 8e1467d (diff), 849720f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile_disabled
r8e1467d r4a60488 106 106 107 107 def build() { 108 // build_stage('Build', true) {109 // // Build outside of the src tree to ease cleaning110 // dir (BuildDir) {111 // //Configure the conpilation (Output is not relevant)112 // //Use the current directory as the installation target so nothing escapes the sandbox113 // //Also specify the compiler by hand114 // targets=""115 // if( Settings.RunAllTests || Settings.RunBenchmark ) {116 // targets="--with-target-hosts='host:debug,host:nodebug'"117 // } else {118 // targets="--with-target-hosts='host:debug'"119 // }120 121 // sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet"122 123 // //Compile the project124 // sh 'make -j 8 --no-print-directory'125 // }126 // }127 128 108 debug = true 129 109 release = Settings.RunAllTests || Settings.RunBenchmark … … 175 155 176 156 def test() { 177 build_stage('Test: short', !Settings.RunAllTests) { 157 try { 158 build_stage('Test: short', !Settings.RunAllTests) { 159 dir (BuildDir) { 160 //Run the tests from the tests directory 161 sh "make --no-print-directory -C tests archiveerrors=${BuildDir}/tests/crashes/short" 162 } 163 } 164 165 build_stage('Test: full', Settings.RunAllTests) { 166 dir (BuildDir) { 167 //Run the tests from the tests directory 168 sh """make --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=yes archiveerrors=${BuildDir}/tests/crashes/full-debug""" 169 sh """make --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=no archiveerrors=${BuildDir}/tests/crashes/full-nodebug""" 170 } 171 } 172 } 173 catch (Exception err) { 174 echo "Archiving core dumps" 178 175 dir (BuildDir) { 179 //Run the tests from the tests directory 180 sh 'make --no-print-directory -C tests' 181 } 182 } 183 184 build_stage('Test: full', Settings.RunAllTests) { 185 dir (BuildDir) { 186 //Run the tests from the tests directory 187 sh 'make --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=yes' 188 sh 'make --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=no ' 189 } 176 archiveArtifacts artifacts: "tests/crashes/**/*", fingerprint: true 177 } 178 throw err 190 179 } 191 180 } … … 195 184 dir (BuildDir) { 196 185 //Append bench results 197 sh "make --no-print-directory -C benchmark jenkins "186 sh "make --no-print-directory -C benchmark jenkins arch=${Settings.Architecture.name}" 198 187 } 199 188 } … … 217 206 if( Settings.Publish && !Settings.RunBenchmark ) { echo 'No results to publish!!!' } 218 207 219 def groupCompile = new PlotGroup('Compilation', ' seconds', true)220 def groupConcurrency = new PlotGroup('Concurrency', ' nanoseconds', false)208 def groupCompile = new PlotGroup('Compilation', 'duration (s) - lower is better', true) 209 def groupConcurrency = new PlotGroup('Concurrency', 'duration (n) - lower is better', false) 221 210 222 211 //Then publish the results 223 do_plot(Settings.RunBenchmark && Settings.Publish, 'compile' , groupCompile , 'Compilation') 224 do_plot(Settings.RunBenchmark && Settings.Publish, 'ctxswitch', groupConcurrency, 'Context Switching') 225 do_plot(Settings.RunBenchmark && Settings.Publish, 'mutex' , groupConcurrency, 'Mutual Exclusion') 226 do_plot(Settings.RunBenchmark && Settings.Publish, 'signal' , groupConcurrency, 'Internal and External Scheduling') 212 do_plot(Settings.RunBenchmark && Settings.Publish, 'compile' , groupCompile , false, 'Compilation') 213 do_plot(Settings.RunBenchmark && Settings.Publish, 'compile.diff' , groupCompile , true , 'Compilation (relative)') 214 do_plot(Settings.RunBenchmark && Settings.Publish, 'ctxswitch' , groupConcurrency, false, 'Context Switching') 215 do_plot(Settings.RunBenchmark && Settings.Publish, 'ctxswitch.diff', groupConcurrency, true , 'Context Switching (relative)') 216 do_plot(Settings.RunBenchmark && Settings.Publish, 'mutex' , groupConcurrency, false, 'Mutual Exclusion') 217 do_plot(Settings.RunBenchmark && Settings.Publish, 'mutex.diff' , groupConcurrency, true , 'Mutual Exclusion (relative)') 218 do_plot(Settings.RunBenchmark && Settings.Publish, 'signal' , groupConcurrency, false, 'Internal and External Scheduling') 219 do_plot(Settings.RunBenchmark && Settings.Publish, 'signal.diff' , groupConcurrency, true , 'Internal and External Scheduling (relative)') 227 220 } 228 221 } … … 482 475 } 483 476 484 def do_plot(boolean new_data, String file, PlotGroup group, String title) {477 def do_plot(boolean new_data, String file, PlotGroup group, boolean relative, String title) { 485 478 486 479 if(new_data) { … … 505 498 exclZero: false, 506 499 keepRecords: false, 507 logarithmic: group.log,500 logarithmic: !relative && group.log, 508 501 numBuilds: '120', 509 502 useDescr: true,
Note:
See TracChangeset
for help on using the changeset viewer.