Skip to content

Commit

Permalink
Change flaky test runner worker processes from 8 to 12
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Oct 29, 2019
1 parent 52908c6 commit 5d12ed9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .ci/Jenkinsfile_flaky
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def getWorkerFromParams(isXpack, job, ciGroup) {
}
}

def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWorkers = 8) {
def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWorkerProcesses = 12) {
def workerMap = [:]
def numberOfWorkers = Math.min(numberOfExecutions, maxWorkers)
def numberOfWorkers = Math.min(numberOfExecutions, maxWorkerProcesses)

for(def i = 1; i <= numberOfWorkers; i++) {
def workerExecutions = numberOfExecutions/numberOfWorkers + (i <= numberOfExecutions%numberOfWorkers ? 1 : 0)
Expand Down Expand Up @@ -110,8 +110,8 @@ def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWor
}

def getAgentCount(executions) {
// Increase agent count every 40 workers, up to 3 agents maximum
return Math.min(3, 1 + floor(executions/40))
// Increase agent count every 24 worker processess, up to 3 agents maximum
return Math.min(3, 1 + floor(executions/24))
}

def trunc(str, length) {
Expand Down

0 comments on commit 5d12ed9

Please sign in to comment.