From cf00d69fd69074e364ee214912e4311837b946bb Mon Sep 17 00:00:00 2001
From: Chase Qi <chase.qi@linaro.org>
Date: Thu, 4 Aug 2022 16:17:57 +0800
Subject: [PATCH] ci: make lava-report job playable when test job starts

Signed-off-by: Chase Qi <chase.qi@linaro.org>
---
 .gitlab-ci.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 76ceb116..4a6a3b0f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -497,11 +497,13 @@ lava-qemu-x86_64-sysota:
 
 lava-report:
   extends: .lava-report
+  dependencies: []
   needs:
-    - lava-qemu-x86
-    - lava-qemu-x86_64
-    - lava-zephyr-qemu-cortex-m3
-    - lava-zephyr-qemu-x86
+    # Set the needs to the same build job that needed by one of the lava-test
+    # job to turn the job into playable status once lava-test job started.
+    # Without any needs here, lava-report waits for all the build stages to
+    # finish which leads to timing issue when playing the job via api.
+    - linux-qemu-x86-gcc
 
 lava-badge:
   needs: [lava-report]
-- 
GitLab