Commit e83248c4 by Ben Clayton

Regres: Changes to reduce timeouts

* Shuffle the test lists to mix heavy-load tests with lighter ones. * Bump the test timeout to 10 minutes. Change-Id: I886b08993a39ce78fd198ac4a1ce06f7378dbb20 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28349Tested-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent ba8b5ab0
......@@ -31,6 +31,7 @@ import (
"flag"
"fmt"
"log"
"math/rand"
"os"
"os/exec"
"path/filepath"
......@@ -57,7 +58,7 @@ const (
dataVersion = 1
changeUpdateFrequency = time.Minute * 5
changeQueryFrequency = time.Minute * 5
testTimeout = time.Minute * 5 // timeout for a single test
testTimeout = time.Minute * 10 // timeout for a single test
buildTimeout = time.Minute * 10 // timeout for a build
dailyUpdateTestListHour = 5 // 5am
fullTestListRelPath = "tests/regres/full-tests.json"
......@@ -783,8 +784,15 @@ func (t *test) run(testLists testlist.Lists) (*CommitTestResults, error) {
}()
}
// Shuffle the test list.
// This attempts to mix heavy-load tests with lighter ones.
shuffled := make([]string, len(list.Tests))
for i, j := range rand.New(rand.NewSource(42)).Perm(len(list.Tests)) {
shuffled[i] = list.Tests[j]
}
// Hand the tests to the deqpTestRoutines.
for _, t := range list.Tests {
for _, t := range shuffled {
tests <- t
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment