summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorNeil Armstrong <[email protected]>2019-10-15 15:22:07 +0200
committerMarge Bot <[email protected]>2020-01-21 11:29:36 +0000
commitdc594c95ddc66888e5971a8684a62b0c11ec9885 (patch)
tree528ee38207048861cf40f78edebbd25f555e6fdb /.gitlab-ci
parenta24b3b228a0a9c0bab0de2e024798c85479ef9b4 (diff)
gitlab-ci/lava: add pipeline information in the lava job name
In order to have more informations in the LAVA jobs list, add the current pipeline URL and commit ref name in the LAVA job name. Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]> Reviewed-by: Daniel Stone <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2337> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2337>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/generate_lava.py2
-rw-r--r--.gitlab-ci/lava-deqp.yml.jinja22
-rw-r--r--.gitlab-ci/lava-gitlab-ci.yml1
3 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab-ci/generate_lava.py b/.gitlab-ci/generate_lava.py
index f7631e1f30c..87efeaefffb 100755
--- a/.gitlab-ci/generate_lava.py
+++ b/.gitlab-ci/generate_lava.py
@@ -6,6 +6,7 @@ import os
parser = argparse.ArgumentParser()
parser.add_argument("--template")
+parser.add_argument("--pipeline-info")
parser.add_argument("--base-artifacts-url")
parser.add_argument("--device-type")
parser.add_argument("--kernel-image-name")
@@ -24,6 +25,7 @@ env = Environment(loader = FileSystemLoader(os.path.dirname(args.template)), tri
template = env.get_template(os.path.basename(args.template))
values = {}
+values['pipeline_info'] = args.pipeline_info
values['base_artifacts_url'] = args.base_artifacts_url
values['device_type'] = args.device_type
values['kernel_image_name'] = args.kernel_image_name
diff --git a/.gitlab-ci/lava-deqp.yml.jinja2 b/.gitlab-ci/lava-deqp.yml.jinja2
index 73101a7aa85..8b7b4b12034 100644
--- a/.gitlab-ci/lava-deqp.yml.jinja2
+++ b/.gitlab-ci/lava-deqp.yml.jinja2
@@ -1,4 +1,4 @@
-job_name: mesa-deqp-{{ gpu_version }}
+job_name: mesa-deqp-{{ gpu_version }} {{ pipeline_info }}
device_type: {{ device_type }}
timeouts:
job:
diff --git a/.gitlab-ci/lava-gitlab-ci.yml b/.gitlab-ci/lava-gitlab-ci.yml
index 3e34b036ee5..da771c5e406 100644
--- a/.gitlab-ci/lava-gitlab-ci.yml
+++ b/.gitlab-ci/lava-gitlab-ci.yml
@@ -10,6 +10,7 @@
- >
artifacts/generate_lava.py \
--template artifacts/lava-deqp.yml.jinja2 \
+ --pipeline-info "$CI_PIPELINE_URL on $CI_COMMIT_REF_NAME ${CI_NODE_INDEX}/${CI_NODE_TOTAL}" \
--base-artifacts-url $CI_PROJECT_URL/-/jobs/$BUILD_JOB_ID/artifacts/raw/artifacts \
--device-type ${DEVICE_TYPE} \
--env-vars "${ENV_VARS}" \