Skip to contentSkip to conversation

tests: remove unused test job

PATCH In review Hongzhan Chen 3 participants 9 messages Jun 28, 2021 – Jun 30, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tests: remove unused test job

Delete minnow test job that does not run anymore.

tests/jobs/xenomai-minnow.yml deleted +0 -73
deleted file mode 100644
index d5292ff..0000000
@@ -1,73 +0,0 @@
-#
-# Xenomai Real-Time System
-#
-# Copyright (c) Siemens AG, 2019
-#
-# Authors:
-#  Quirin Gylstorff <[email protected]>
-#
-# SPDX-License-Identifier: MIT
-#
-job_name: xenomai-test-suite
-device_type: minnowboard-max-E3825
-timeouts:
-  job:
-    minutes: 90
-  action:
-    minutes: 65
-  connection:
-    minutes: 5
-priority: medium
-visibility: public
-
-metadata:
-  # please change these fields when modifying this job for your own tests.
-  docs-source: xenomai-cof
-  docs-filename: pipeline-xenomai-cof
-# ACTION_BLOCK
-actions:
-- deploy:
-    timeout:
-      minutes: 15
-    to: tftp
-    kernel:
-      url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
-      type: bzimage
-    ramdisk:
-      url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-initrd.img
-      compression: gz
-    nfsrootfs:
-      url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.tar.gz
-      compression: gz
-# BOOT_BLOCK
-- boot:
-    timeout:
-      minutes: 5
-    method: grub
-    commands: nfs
-    prompts: ["root@demo:"]
-    auto_login:
-      login_prompt: 'demo login:'
-      username: root
-      password_prompt: 'Password:'
-      password: root
-
-- test:
-    timeout:
-      minutes: 30
-    definitions:
-    - repository: http://git.linaro.org/lava-team/lava-functional-tests.git
-      from: git
-      path: lava-test-shell/smoke-tests-basic.yaml
-      name: smoke-tests
-    - repository:
-        metadata:
-          format: Lava-Test Test Definition 1.0
-          name: xenomai-test-suite
-          description: "runs the xenomai test suite"
-        run:
-          steps:
-            - lava-test-case xenomai-test --shell xeno-test -k -l \"dohell -m /tmp 300\" -p 1000
-      from: inline
-      path: inline/xenomai-test-suite.yaml
-      name: xenomai-test-suite
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 tests: restrict realtime cpu for x86 and qemu type of devices

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support" for those without non-RT cpu.

tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..209c5d4 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
tests/jobs/xenomai-qemu-amd64.yml +1 -1
index c335292..e42f6ec 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
+        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-arm64.yml +1 -1
index 88fb880..cc60564 100644
@@ -50,7 +50,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vda"
+        image_arg: -kernel {kernel} -append "root=/dev/vda xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-armhf.yml +1 -1
index 3e3a8ab..2afe250 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vdb"
+        image_arg: -kernel {kernel} -append "root=/dev/vdb xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-x86-64-efi.yml +2 -0
index bc71b75..d1418c1 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
Signature · 1 line
2.17.1
#2 lore raw

Re: [xenomai-images 2/2] tests: restrict realtime cpu for x86 and qemu type of devices

Quoted 61 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support" for those without non-RT cpu.

tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..209c5d4 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
tests/jobs/xenomai-qemu-amd64.yml +1 -1
index c335292..e42f6ec 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
+        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-arm64.yml +1 -1
index 88fb880..cc60564 100644
@@ -50,7 +50,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vda"
+        image_arg: -kernel {kernel} -append "root=/dev/vda xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-armhf.yml +1 -1
index 3e3a8ab..2afe250 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vdb"
+        image_arg: -kernel {kernel} -append "root=/dev/vdb xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..d1418c1 100644

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 5 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7

Thanks, both applied, just formatting the masks as hex.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#3 lore raw

Re: [xenomai-images 2/2] tests: restrict realtime cpu for x86 and qemu type of devices

Quoted 61 lines · Jan Kiszka via Xenomai
Quoted 60 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support" for those without non-RT cpu.

tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..209c5d4 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
tests/jobs/xenomai-qemu-amd64.yml +1 -1
index c335292..e42f6ec 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
+        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-arm64.yml +1 -1
index 88fb880..cc60564 100644
@@ -50,7 +50,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vda"
+        image_arg: -kernel {kernel} -append "root=/dev/vda xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-armhf.yml +1 -1
index 3e3a8ab..2afe250 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vdb"
+        image_arg: -kernel {kernel} -append "root=/dev/vdb xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..d1418c1 100644
@@ -72,3 +72,5 @@ actions:
Quoted 9 lines

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 6 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7

Thanks, both applied, just formatting the masks as hex.

Seems as if this triggers an issue with dovetail/5.10:
https://source.denx.de/Xenomai/xenomai-images/-/jobs/283341

Let's see how the corresponding QEMU behaves...

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#4 lore raw

Re: [xenomai-images 2/2] tests: restrict realtime cpu for x86 and qemu type of devices

Quoted 72 lines · Jan Kiszka via Xenomai
Quoted 61 lines · Jan Kiszka via Xenomai
Quoted 60 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support" for those without non-RT cpu.

tests/jobs/xenomai-ipc227e.yml +0 -0
index a5a181c..209c5d4 100644
@@ -72,3 +72,5 @@ actions:

       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite

tests/jobs/xenomai-ipc227e.yml +2 -0
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
tests/jobs/xenomai-qemu-amd64.yml +0 -0
index c335292..e42f6ec 100644
@@ -46,7 +46,7 @@ actions:

     to: tmpfs
     images:
       kernel:

tests/jobs/xenomai-qemu-amd64.yml +1 -1
-        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
+        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"

         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz initrd:
         image_arg: -initrd {initrd}

tests/jobs/xenomai-qemu-arm64.yml +0 -0
index 88fb880..cc60564 100644
@@ -50,7 +50,7 @@ actions:

     to: tmpfs
     images:
       kernel:

tests/jobs/xenomai-qemu-arm64.yml +1 -1
-        image_arg: -kernel {kernel} -append "root=/dev/vda"
+        image_arg: -kernel {kernel} -append "root=/dev/vda xenomai.supported_cpus=1"

         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz initrd:
         image_arg: -initrd {initrd}

tests/jobs/xenomai-qemu-armhf.yml +0 -0
index 3e3a8ab..2afe250 100644
@@ -46,7 +46,7 @@ actions:

     to: tmpfs
     images:
       kernel:

tests/jobs/xenomai-qemu-armhf.yml +1 -1
-        image_arg: -kernel {kernel} -append "root=/dev/vdb"
+        image_arg: -kernel {kernel} -append "root=/dev/vdb xenomai.supported_cpus=1"

         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz initrd:
         image_arg: -initrd {initrd}

tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..d1418c1 100644
@@ -72,3 +72,5 @@ actions:
Quoted 9 lines

tests/jobs/xenomai-x86-64-efi.yml

Quoted 6 lines

       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite

tests/jobs/xenomai-x86-64-efi.yml +2 -0
+context:
+  extra_kernel_args: xenomai.supported_cpus=7

Thanks, both applied, just formatting the masks as hex.

Quoted 5 lines

Seems as if this triggers an issue with dovetail/5.10:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.denx.de%2FXenomai%2Fxenomai-images%2F-%2Fjobs%2F283341&amp;data=04%7C01%7Cflorian.bezdeka%40siemens.com%7C417088a50146499f996f08d93a1e86cc%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637604725049381638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=eN2w5QFJ6aiI0xJbCZ4nOtL2UgprOACKfPWaNGDLQfI%3D&amp;reserved=0

2021-06-28T10:14:13 Marking unfinished test run as failed
2021-06-28T10:14:13 {'case': '1_xenomai-test-suite', 'definition': 'lava', 'duration': '1792.66', 'result': 'fail', 'uuid': '3881_1.4.2.4.5'}
2021-06-28T10:14:13 lava-test-shell timed out after 1800 seconds

Looks like an timeout triggered by

2021-06-28T09:47:10 + /usr/lib/xenomai/testsuite/clocktest -D -T 30 -C CLOCK_HOST_REALTIME
2021-06-28T09:47:10 XNVDSO_FEAT_HOST_REALTIME not available

Let's see how the corresponding QEMU behaves...

Jan

#5 lore raw

RE: [xenomai-images 2/2] tests: restrict realtime cpu for x86 and qemu type of devices

Quoted 83 lines

-----Original Message-----
From: Bezdeka, Florian <[email protected]>
Sent: Monday, June 28, 2021 7:06 PM
To: Chen, Hongzhan <[email protected]>; [email protected]; [email protected]
Subject: Re: [xenomai-images 2/2] tests: restrict realtime cpu for x86 and qemu type of devices

Quoted 74 lines · Jan Kiszka via Xenomai
Quoted 61 lines · Jan Kiszka via Xenomai
Quoted 60 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support" for those without non-RT cpu.

tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..209c5d4 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
tests/jobs/xenomai-qemu-amd64.yml +1 -1
index c335292..e42f6ec 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
+        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-arm64.yml +1 -1
index 88fb880..cc60564 100644
@@ -50,7 +50,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vda"
+        image_arg: -kernel {kernel} -append "root=/dev/vda xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-armhf.yml +1 -1
index 3e3a8ab..2afe250 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vdb"
+        image_arg: -kernel {kernel} -append "root=/dev/vdb xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..d1418c1 100644
@@ -72,3 +72,5 @@ actions:
Quoted 9 lines

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 6 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7

Thanks, both applied, just formatting the masks as hex.

Seems as if this triggers an issue with dovetail/5.10:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.denx.de%2FXenomai%2Fxenomai-images%2F-%2Fjobs%2F283341&amp;data=04%7C01%7Cflorian.bezdeka%40siemens.com%7C417088a50146499f996f08d93a1e86cc%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637604725049381638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=eN2w5QFJ6aiI0xJbCZ4nOtL2UgprOACKfPWaNGDLQfI%3D&amp;reserved=0

5.4 and 4.19 do not have such issue. It should expose dovetail/5.10 internal issue. Let me reproduce it on my side.

Hongzhan Chen

Quoted 18 lines
Quoted 3 lines
2021-06-28T10:14:13 Marking unfinished test run as failed
2021-06-28T10:14:13 {'case': '1_xenomai-test-suite', 'definition': 'lava', 'duration': '1792.66', 'result': 'fail', 'uuid': '3881_1.4.2.4.5'}
2021-06-28T10:14:13 lava-test-shell timed out after 1800 seconds

Looks like an timeout triggered by

2021-06-28T09:47:10 + /usr/lib/xenomai/testsuite/clocktest -D -T 30 -C CLOCK_HOST_REALTIME
2021-06-28T09:47:10 XNVDSO_FEAT_HOST_REALTIME not available

Let's see how the corresponding QEMU behaves...

Jan

#6 lore raw

Re: [xenomai-images 2/2] tests: restrict realtime cpu for x86 and qemu type of devices

In reply to Jan Kiszka
Quoted 72 lines · Jan Kiszka via Xenomai
Quoted 61 lines · Jan Kiszka via Xenomai
Quoted 60 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support" for those without non-RT cpu.

tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..209c5d4 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
tests/jobs/xenomai-qemu-amd64.yml +1 -1
index c335292..e42f6ec 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
+        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-arm64.yml +1 -1
index 88fb880..cc60564 100644
@@ -50,7 +50,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vda"
+        image_arg: -kernel {kernel} -append "root=/dev/vda xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-armhf.yml +1 -1
index 3e3a8ab..2afe250 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vdb"
+        image_arg: -kernel {kernel} -append "root=/dev/vdb xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..d1418c1 100644
@@ -72,3 +72,5 @@ actions:
Quoted 9 lines

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 6 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7

Thanks, both applied, just formatting the masks as hex.

Quoted 5 lines

Seems as if this triggers an issue with dovetail/5.10:
https://source.denx.de/Xenomai/xenomai-images/-/jobs/283341

Let's see how the corresponding QEMU behaves...

clocktest starts threads on all cores, not only on xenomai-supported ones. That thread creation fails, but it leaves the process in stuck state. This is a regression of the dovetail mapping, we don't have that with ipipe.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#7 lore raw

Re: [xenomai-images 2/2] tests: restrict realtime cpu for x86 and qemu type of devices

Quoted 76 lines · Jan Kiszka via Xenomai
Quoted 75 lines · Jan Kiszka via Xenomai
Quoted 61 lines · Jan Kiszka via Xenomai
Quoted 60 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support" for those without non-RT cpu.

tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..209c5d4 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
tests/jobs/xenomai-qemu-amd64.yml +1 -1
index c335292..e42f6ec 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
+        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-arm64.yml +1 -1
index 88fb880..cc60564 100644
@@ -50,7 +50,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vda"
+        image_arg: -kernel {kernel} -append "root=/dev/vda xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-qemu-armhf.yml +1 -1
index 3e3a8ab..2afe250 100644
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/vdb"
+        image_arg: -kernel {kernel} -append "root=/dev/vdb xenomai.supported_cpus=1"
         url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
       initrd:
         image_arg: -initrd {initrd}
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..d1418c1 100644
@@ -72,3 +72,5 @@ actions:
Quoted 9 lines

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 6 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7

Thanks, both applied, just formatting the masks as hex.

Seems as if this triggers an issue with dovetail/5.10:
https://source.denx.de/Xenomai/xenomai-images/-/jobs/283341

Quoted 8 lines
Quoted 2 lines

Let's see how the corresponding QEMU behaves...

clocktest starts threads on all cores, not only on xenomai-supported ones. That thread creation fails, but it leaves the process in stuck state. This is a regression of the dovetail mapping, we don't have that with ipipe.

Will keep this commit rolled back from next until we sorted out the issues it exposes. That way we can keep CI sensitive for potential other changes.

BTW, we should also adjust start-qemu.sh accordingly for the next version so that we can reproduce locally what CI runs.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#8 lore raw

Re: [xenomai-images 2/2] tests: restrict realtime cpu for x86 and qemu type of devices

In reply to Hongzhan Chen
Quoted 21 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support" for those without non-RT cpu.

tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..209c5d4 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=7
tests/jobs/xenomai-qemu-amd64.yml +0 -0
index c335292..e42f6ec 100644

tests/jobs/xenomai-qemu-amd64.yml actions: · line 49

Quoted 5 lines
tests/jobs/xenomai-qemu-amd64.yml +1 -1
@@ -46,7 +46,7 @@ actions:
     to: tmpfs
     images:
       kernel:
-        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
+        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"

We should use 4 cores in QEMU instances, like in the start-qemu script, and then 0x7 as mask here as well. Quirin, I suppose you limited all qemu instances to 2 cores because of the host having only 2, right?

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux