diff options
author | Emma Anholt <emma@anholt.net> | 2021-10-11 16:03:47 -0700 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2021-11-10 21:57:56 +0000 |
commit | 3edcd42bea036565d771b32e84cb793e80c0b7e6 (patch) | |
tree | e3bef9a2248e037374c4f41f46665739c70e9142 /.gitlab-ci | |
parent | c9fd70a57359a12553284f0a7aaf34df12e64e83 (diff) |
ci/deqp-runner: Simplify the --jobs argument setup.
We can use the general "how parallel should we go on this runner?" env var
and save a bunch of massaging env var names. Fixes how PIGLIT_PARALLEL
looked like it was useful but actually wasn't passed through to HW
runners.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13372>
(cherry picked from commit 9ddfd297e085c7cb8b7acef9cf0d2696181ade43)
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/bare-metal/arm64_a630_egl.sh | 2 | ||||
-rwxr-xr-x | .gitlab-ci/common/generate-env.sh | 1 | ||||
-rwxr-xr-x | .gitlab-ci/deqp-runner.sh | 12 | ||||
-rwxr-xr-x | .gitlab-ci/lava/lava-gitlab-ci.yml | 2 | ||||
-rwxr-xr-x | .gitlab-ci/piglit/piglit-runner.sh | 9 |
5 files changed, 5 insertions, 21 deletions
diff --git a/.gitlab-ci/bare-metal/arm64_a630_egl.sh b/.gitlab-ci/bare-metal/arm64_a630_egl.sh index b97dc1e3b72..abb42100081 100755 --- a/.gitlab-ci/bare-metal/arm64_a630_egl.sh +++ b/.gitlab-ci/bare-metal/arm64_a630_egl.sh @@ -10,7 +10,7 @@ EXIT=0 # Run reset tests without parallelism: if ! env \ DEQP_RESULTS_DIR=results/reset \ - DEQP_PARALLEL=1 \ + FDO_CI_CONCURRENT=1 \ DEQP_CASELIST_FILTER='.*reset.*' \ /install/deqp-runner.sh; then EXIT=1 diff --git a/.gitlab-ci/common/generate-env.sh b/.gitlab-ci/common/generate-env.sh index 8439875a3a0..83b15247e02 100755 --- a/.gitlab-ci/common/generate-env.sh +++ b/.gitlab-ci/common/generate-env.sh @@ -26,7 +26,6 @@ for var in \ DEQP_EXPECTED_RENDERER \ DEQP_FRACTION \ DEQP_HEIGHT \ - DEQP_PARALLEL \ DEQP_RESULTS_DIR \ DEQP_RUNNER_OPTIONS \ DEQP_SUITE \ diff --git a/.gitlab-ci/deqp-runner.sh b/.gitlab-ci/deqp-runner.sh index e3407409438..e8aae9fd766 100755 --- a/.gitlab-ci/deqp-runner.sh +++ b/.gitlab-ci/deqp-runner.sh @@ -120,14 +120,6 @@ fi set +e -if [ -n "$DEQP_PARALLEL" ]; then - JOB="--jobs $DEQP_PARALLEL" -elif [ -n "$FDO_CI_CONCURRENT" ]; then - JOB="--jobs $FDO_CI_CONCURRENT" -else - JOB="--jobs 4" -fi - parse_renderer() { RENDERER=`grep -A1 TestCaseResult.\*info.renderer $RESULTS/deqp-info.qpa | grep '<Text' | sed 's|.*<Text>||g' | sed 's|</Text>||g'` VERSION=`grep -A1 TestCaseResult.\*info.version $RESULTS/deqp-info.qpa | grep '<Text' | sed 's|.*<Text>||g' | sed 's|</Text>||g'` @@ -216,7 +208,7 @@ if [ -z "$DEQP_SUITE" ]; then --skips $INSTALL/deqp-all-skips.txt $DEQP_SKIPS \ --flakes $INSTALL/deqp-$GPU_VERSION-flakes.txt \ --testlog-to-xml /deqp/executor/testlog-to-xml \ - $JOB \ + --jobs ${FDO_CI_CONCURRENT:-4} \ $DEQP_RUNNER_OPTIONS \ -- \ $DEQP_OPTIONS @@ -230,7 +222,7 @@ else --testlog-to-xml /deqp/executor/testlog-to-xml \ --fraction-start $CI_NODE_INDEX \ --fraction $CI_NODE_TOTAL \ - $JOB \ + --jobs ${FDO_CI_CONCURRENT:-4} \ $DEQP_RUNNER_OPTIONS fi diff --git a/.gitlab-ci/lava/lava-gitlab-ci.yml b/.gitlab-ci/lava/lava-gitlab-ci.yml index 1d8baf31327..7bd368468f1 100755 --- a/.gitlab-ci/lava/lava-gitlab-ci.yml +++ b/.gitlab-ci/lava/lava-gitlab-ci.yml @@ -5,7 +5,7 @@ interruptible: true variables: GIT_STRATEGY: none # testing doesn't build anything from source - DEQP_PARALLEL: 6 # should be replaced by per-machine definitions + FDO_CI_CONCURRENT: 6 # should be replaced by per-machine definitions DEQP_VER: gles2 # proxy used to cache data locally FDO_HTTP_CACHE_URI: "http://caching-proxy/cache/?uri=" diff --git a/.gitlab-ci/piglit/piglit-runner.sh b/.gitlab-ci/piglit/piglit-runner.sh index ed100a010db..5c4b88ed0f0 100755 --- a/.gitlab-ci/piglit/piglit-runner.sh +++ b/.gitlab-ci/piglit/piglit-runner.sh @@ -53,14 +53,6 @@ fi set +e -if [ -n "$PIGLIT_PARALLEL" ]; then - PIGLIT_RUNNER_OPTIONS="$PIGLIT_RUNNER_OPTIONS --jobs $PIGLIT_PARALLEL" -elif [ -n "$FDO_CI_CONCURRENT" ]; then - PIGLIT_RUNNER_OPTIONS="$PIGLIT_RUNNER_OPTIONS --jobs $FDO_CI_CONCURRENT" -else - PIGLIT_RUNNER_OPTIONS="$PIGLIT_RUNNER_OPTIONS --jobs 4" -fi - RESULTS_CSV=$RESULTS/results.csv FAILURES_CSV=$RESULTS/failures.csv @@ -70,6 +62,7 @@ export LD_PRELOAD=$TEST_LD_PRELOAD run \ --piglit-folder /piglit \ --output $RESULTS \ + --jobs ${FDO_CI_CONCURRENT:-4} \ --skips $INSTALL/piglit/piglit-all-skips.txt $PIGLIT_SKIPS \ --flakes $INSTALL/piglit-$GPU_VERSION-flakes.txt \ --profile $PIGLIT_PROFILES \ |