Skip to contentSkip to conversation

test/jobs: Adapt job timeouts

PATCH In review Q. Gylstorff 2 participants 2 messages Oct 14, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/jobs: Adapt job timeouts

From: Quirin Gylstorff <[email protected]>

If the job timeout of a LAVA job is less than the sum of the single action timeouts the job timeout is used. This leads to a warning in the LAVA UI Action timeout is larger than job timeout @ data['actions']['2']. This fixes the failing qemu tests.

---
 tests/jobs/xenomai-qemu-amd64.yml | 4 ++--
 tests/jobs/xenomai-qemu-arm64.yml | 4 ++--
 tests/jobs/xenomai-qemu-armhf.yml | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
tests/jobs/xenomai-qemu-amd64.yml +2 -2
index 9520e16..33ff1b2 100644
@@ -13,7 +13,7 @@ job_name: QEMU pipeline, xenomai-images-qemu-amd64
 
 timeouts:
   job:
-    minutes: 15
+    minutes: 45
   action:
     minutes: 5
   connection:
@@ -28,7 +28,7 @@ context:
   arch: amd64
   extra_options:
   - -smp
-  -  4
+  -  2
   - -nographic
   - -enable-kvm
   - -machine q35
tests/jobs/xenomai-qemu-arm64.yml +2 -2
index bcc3d81..2a98889 100644
@@ -13,7 +13,7 @@ job_name: QEMU pipeline, xenomai-images-qemu-arm64
 
 timeouts:
   job:
-    minutes: 15
+    minutes: 45
   action:
     minutes: 5
   connection:
@@ -74,7 +74,7 @@ actions:
 
 - test:
     timeout:
-      minutes: 45
+      minutes: 30
     definitions:
     - repository: http://git.linaro.org/lava-team/lava-functional-tests.git
       from: git
tests/jobs/xenomai-qemu-armhf.yml +3 -3
index 1c5cb2e..2949cd2 100644
@@ -13,7 +13,7 @@ job_name: QEMU pipeline, xenomai-images-qemu-armhf
 
 timeouts:
   job:
-    minutes: 15
+    minutes: 45
   action:
     minutes: 5
   connection:
@@ -26,7 +26,7 @@ context:
   arch: arm
   cpu: cortex-a15
   extra_options:
-  - -smp 4
+  - -smp 2
   - -device virtio-serial-device
   - -device virtconsole,chardev=con
   - -chardev vc,id=con
@@ -35,7 +35,7 @@ context:
   guestfs_interface: none
 metadata:
   # please change these fields when modifying this job for your own tests.
-  docs-source: xenomai-qemu-armhf
+  docs-source: xenomai-qemuarmhf
   docs-filename: qemu-pipeline-xenomai-armhf
 
 # ACTION_BLOCK
Signature · 1 line
2.20.1
#1 lore raw
Quoted 82 lines · Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

If the job timeout of a LAVA job is less than the sum of the single action timeouts the job timeout is used. This leads to a warning in the LAVA UI Action timeout is larger than job timeout @ data['actions']['2']. This fixes the failing qemu tests.

---
 tests/jobs/xenomai-qemu-amd64.yml | 4 ++--
 tests/jobs/xenomai-qemu-arm64.yml | 4 ++--
 tests/jobs/xenomai-qemu-armhf.yml | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
tests/jobs/xenomai-qemu-amd64.yml +2 -2
index 9520e16..33ff1b2 100644
@@ -13,7 +13,7 @@ job_name: QEMU pipeline, xenomai-images-qemu-amd64
 
 timeouts:
   job:
-    minutes: 15
+    minutes: 45
   action:
     minutes: 5
   connection:
@@ -28,7 +28,7 @@ context:
   arch: amd64
   extra_options:
   - -smp
-  -  4
+  -  2
   - -nographic
   - -enable-kvm
   - -machine q35
tests/jobs/xenomai-qemu-arm64.yml +2 -2
index bcc3d81..2a98889 100644
@@ -13,7 +13,7 @@ job_name: QEMU pipeline, xenomai-images-qemu-arm64
 
 timeouts:
   job:
-    minutes: 15
+    minutes: 45
   action:
     minutes: 5
   connection:
@@ -74,7 +74,7 @@ actions:
 
 - test:
     timeout:
-      minutes: 45
+      minutes: 30
     definitions:
     - repository: http://git.linaro.org/lava-team/lava-functional-tests.git
       from: git
tests/jobs/xenomai-qemu-armhf.yml +2 -2
index 1c5cb2e..2949cd2 100644
@@ -13,7 +13,7 @@ job_name: QEMU pipeline, xenomai-images-qemu-armhf
 
 timeouts:
   job:
-    minutes: 15
+    minutes: 45
   action:
     minutes: 5
   connection:
@@ -26,7 +26,7 @@ context:
   arch: arm
   cpu: cortex-a15
   extra_options:
-  - -smp 4
+  - -smp 2
   - -device virtio-serial-device
   - -device virtconsole,chardev=con
   - -chardev vc,id=con

tests/jobs/xenomai-qemu-armhf.yml context: · line 41

Quoted 8 lines
tests/jobs/xenomai-qemu-armhf.yml +1 -1
@@ -35,7 +35,7 @@ context:
   guestfs_interface: none
 metadata:
   # please change these fields when modifying this job for your own tests.
-  docs-source: xenomai-qemu-armhf
+  docs-source: xenomai-qemuarmhf
   docs-filename: qemu-pipeline-xenomai-armhf
 
 # ACTION_BLOCK

Queued up in next - let's see if we get through with a full test run now...

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux