Updated integration tests cases, increased nightly iteration count (#263)

This commit is contained in:
gusto 2023-07-17 21:16:05 +03:00 committed by GitHub
parent a59682be54
commit fe9f2ba006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -10,7 +10,7 @@ pipeline {
string( string(
name: 'PROPTEST_CASES', name: 'PROPTEST_CASES',
description: 'Test cases to be executed', description: 'Test cases to be executed',
defaultValue: params.PROPTEST_CASES ?: '500000' defaultValue: params.PROPTEST_CASES ?: '1000000'
) )
} }
@ -18,7 +18,7 @@ pipeline {
/* Avoid cache poisoning by other jobs. */ /* Avoid cache poisoning by other jobs. */
GOCACHE = "${env.WORKSPACE_TMP}/go-build" GOCACHE = "${env.WORKSPACE_TMP}/go-build"
GOPATH = "${env.WORKSPACE_TMP}/go" GOPATH = "${env.WORKSPACE_TMP}/go"
PROPTEST_CASES = "${params.PROTEST_CASES}" PROPTEST_CASES = "${params.PROPTEST_CASES}"
} }
options { options {

View File

@ -45,9 +45,17 @@ pipeline {
for (int i = 0; i < iterations; i++) { for (int i = 0; i < iterations; i++) {
echo "Running iteration ${i + 1} of ${iterations}" echo "Running iteration ${i + 1} of ${iterations}"
def result = sh(script: 'cargo test ten_nodes_happy', returnStatus: true) if (sh(script: 'cargo test ten_nodes_happy', returnStatus: true) != 0) {
error("Test failed on iteration ${i + 1}")
break
}
if (result != 0) { if (sh(script: 'cargo test two_nodes_happy', returnStatus: true) != 0) {
error("Test failed on iteration ${i + 1}")
break
}
if (sh(script: 'cargo test ten_nodes_one_down', returnStatus: true) != 0) {
error("Test failed on iteration ${i + 1}") error("Test failed on iteration ${i + 1}")
break break
} }
@ -56,6 +64,7 @@ pipeline {
} }
} }
} }
post { post {
failure { failure {
script { script {