Skip to content

Commit

Permalink
fcosKola: also run upgrade tests by default
Browse files Browse the repository at this point in the history
No reason not to do this always especially since we basically get it for
free timewise (we run it in parallel to the main run, which normally
takes longer anyway).
  • Loading branch information
jlebon committed Mar 13, 2020
1 parent f826efa commit a63c768
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions vars/fcosKola.groovy
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
// Run kola tests on the latest build in the cosa dir
def call(cosaDir = "/srv/fcos") {
stage("Kola") {
try {
shwrap("cd ${cosaDir} && cosa kola run --parallel 8")
} finally {
shwrap("tar -c -C ${cosaDir}/tmp kola | xz -c9 > ${env.WORKSPACE}/kola.tar.xz")
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola.tar.xz'
stage('Kola') {
parallel run: {
stage("run") {
try {
shwrap("cd ${cosaDir} && cosa kola run --parallel 8")
} finally {
shwrap("tar -c -C ${cosaDir}/tmp kola | xz -c9 > ${env.WORKSPACE}/kola.tar.xz")
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola.tar.xz'
}
// sanity check kola actually ran and dumped its output in tmp/
shwrap("test -d ${cosaDir}/tmp/kola")
}
},
run_upgrades: {
stage("run-upgrade") {
try {
shwrap("cd ${cosaDir} && cosa kola --upgrades")
} finally {
shwrap("tar -c -C ${cosaDir}/tmp kola-upgrade | xz -c9 > ${env.WORKSPACE}/kola-upgrade.tar.xz")
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola-upgrade.tar.xz'
}
// sanity check kola actually ran and dumped its output in tmp/
shwrap("test -d ${cosaDir}/tmp/kola-upgrade")
}
}
// sanity check kola actually ran and dumped its output in tmp/
shwrap("test -d ${cosaDir}/tmp/kola")
}
}

0 comments on commit a63c768

Please sign in to comment.