Skip to content

Commit e7c0f23

Browse files
committed
Adapt to number of tests
1 parent 6018011 commit e7c0f23

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,12 @@ pipeline {
487487
steps {
488488
script {
489489
retry(3) { checkout scm }
490+
491+
if (params.withRowVector || isBranch('develop') || isBranch('master')) {
492+
sh "echo CXXFLAGS+=-DSTAN_TEST_ROW_VECTORS >> make/local"
493+
sh "echo CXXFLAGS+=-DSTAN_PROB_TEST_ALL >> make/local"
494+
}
495+
490496
if (params.runAllDistributions || isBranch('develop') || isBranch('master')) {
491497
changedDistributionTests = sh(script:"python3 test/prob/getDependencies.py --pretend-all", returnStdout:true).trim().readLines()
492498
} else {
@@ -511,10 +517,10 @@ pipeline {
511517
steps {
512518
script {
513519
def tests = [:]
514-
def tests_per_executor = 180
520+
521+
def executors = 10
522+
def tests_per_executor = Math.ceil(changedDistributionTests.size() / executors)
515523
def idx = 0
516-
// roughly 10 executors when all tests run
517-
def executors = (changedDistributionTests.size() + tests_per_executor - 1) / tests_per_executor
518524
for (f in changedDistributionTests.collate(tests_per_executor)) {
519525
idx = idx + 1
520526
def names = f.join(" ")

0 commit comments

Comments
 (0)