Add 4.4 testing and cleanup ci
cover Add 4.4 testing and cleanup ci
From: Quirin Gylstorff <[email protected]>
Add testing for Xenomai 3.0.x and 4.4. Also clean up the ci scripts to avoid code duplications. Add new target ipc227e for 4.4 testing.
Quirin Gylstorff (11):
ci: remove code duplications
ci: Use gitlab extends instead of YAML Anchors
scripts: Allow other layers to reuse scripts recipes-kernel/linux: Add 4.4
ci: Add linux-4.4 build and tests
ci: add option for 4.19
ci: Remove proxy settings
ci: add new build options recipes-xenomai/xenomai.inc: Add missing libxenomai-dev recipes-xenomai/xenomai.inc: add exception handling
ci: Add target ipc227e for testing 4.4
.gitlab-ci.yml | 205 ++++++++++++--------- opt-linux-4.19.yml | 17 ++ opt-linux-4.4.yml | 17 ++ recipes-kernel/linux/files/amd64_defconfig | 3 +- recipes-xenomai/xenomai/xenomai.inc | 11 +- scripts/deploy_for_testing.sh | 42 +++-- scripts/run-lava-tests.sh | 58 +++--- tests/jobs/xenomai-ipc227e.yml | 74 ++++++++ 8 files changed, 295 insertions(+), 132 deletions(-) create mode 100644 opt-linux-4.19.yml create mode 100644 opt-linux-4.4.yml create mode 100644 tests/jobs/xenomai-ipc227e.yml
Signature · 1 line
2.20.1
PATCH 1/11 ci: remove code duplications
From: Quirin Gylstorff <[email protected]>
--- .gitlab-ci.yml | 130 +++++++++++++++++++++---------------------------- 1 file changed, 55 insertions(+), 75 deletions(-)
.gitlab-ci.yml +55 -75
@@ -1,7 +1,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2019 +# Copyright (c) Siemens AG, 2020 # # Authors: # Quirin Gylstorff <[email protected]>
@@ -18,7 +18,8 @@ variables: https_proxy: "$HTTPS_PROXY" ftp_proxy: "$FTP_PROXY" no_proxy: "$NO_PROXY" - BUILD_OPTIONS: ":opt-xenomai-next.yml:opt-linux-latest.yml" + XENOMAI_BUILD_OPTION: ":opt-xenomai-next.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest.yml" default: image: kasproject/kas-isar:latest
@@ -30,111 +31,90 @@ default: - echo "$LAVA_SSH_UPLOAD_KEY" | tr -d '\r' > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa - echo "ProxyCommand socat - PROXY:$(echo $https_proxy | sed 's|.*://\([^:]*\).*|\1|'):%h:%p,proxyport=$(echo $https_proxy | sed 's|.*:\([0-9]*\)$|\1|')" >> ~/.ssh/config && chmod 600 ~/.ssh/config - echo "$LAVA_SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts -build:qemu-amd64: + +.build: &build-job <<: *lava-ssh-key stage: build script: - - kas build kas.yml:board-qemu-amd64.yml${BUILD_OPTIONS} - - scripts/deploy_for_testing.sh qemu-amd64 + - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS} + - scripts/deploy_for_testing.sh ${TARGET} -lava-test:qemu-amd64: +.test: &test-job <<: *lava-ssh-key stage: lava-test script: - scripts/install-lavacli.sh - - scripts/run-lava-tests.sh qemu-amd64 - needs: [ "build:qemu-amd64" ] + - scripts/run-lava-tests.sh ${TARGET} only: variables: - $LAVA_SSH_USER + +build:qemu-amd64: + <<: *build-job + variables: + TARGET: qemu-amd64 + +lava-test:qemu-amd64: + needs: [ "build:qemu-amd64" ] + <<: *test-job + variables: + TARGET: qemu-amd64 + build:qemu-armhf: - <<: *lava-ssh-key - stage: build - script: - - kas build kas.yml:board-qemu-armhf.yml${BUILD_OPTIONS} - - scripts/deploy_for_testing.sh qemu-armhf + <<: *build-job + variables: + TARGET: qemu-armhf lava-test:qemu-armhf: - <<: *lava-ssh-key - stage: lava-test - script: - - scripts/install-lavacli.sh - - scripts/run-lava-tests.sh qemu-armhf needs: [ "build:qemu-armhf" ] - only: - variables: - - $LAVA_SSH_USER + <<: *test-job + variables: + TARGET: qemu-armhf build:qemu-arm64: - <<: *lava-ssh-key - stage: build - script: - - kas build kas.yml:board-qemu-arm64.yml${BUILD_OPTIONS} - - scripts/deploy_for_testing.sh qemu-arm64 + <<: *build-job + variables: + TARGET: qemu-arm64 lava-test:qemu-arm64: - <<: *lava-ssh-key - stage: lava-test - script: - - scripts/install-lavacli.sh - - scripts/run-lava-tests.sh qemu-arm64 needs: [ "build:qemu-arm64" ] - only: - variables: - - $LAVA_SSH_USER + <<: *test-job + variables: + TARGET: qemu-arm64 build:board-hikey: - <<: *lava-ssh-key - stage: build - script: - - kas build kas.yml:board-hikey.yml:opt-lava-test.yml${BUILD_OPTIONS} - - scripts/deploy_for_testing.sh hikey - + <<: *build-job + variables: + TARGET: hikey + BUILD_OPTIONS: ":opt-lava-test.yml" lava-test:board-hikey: - <<: *lava-ssh-key - stage: lava-test - script: - - scripts/install-lavacli.sh - - scripts/run-lava-tests.sh hikey needs: [ "build:board-hikey" ] - only: - variables: - - $LAVA_SSH_USER - + <<: *test-job + variables: + TARGET: hikey build:board-beaglebone: - <<: *lava-ssh-key - stage: build - script: - - kas build kas.yml:board-beagle-bone-black.yml:opt-lava-test.yml${BUILD_OPTIONS} - - scripts/deploy_for_testing.sh beagle-bone-black + <<: *build-job + variables: + TARGET: beagle-bone-black + BUILD_OPTIONS: ":opt-lava-test.yml" + lava-test:board-beaglebone: - <<: *lava-ssh-key - stage: lava-test - script: - - scripts/install-lavacli.sh - - scripts/run-lava-tests.sh beaglebone needs: [ "build:board-beaglebone" ] - only: - variables: - - $LAVA_SSH_USER + <<: *test-job + variables: + TARGET: beaglebone build:board-x86-64-efi: - <<: *lava-ssh-key - stage: build - script: - - kas build kas.yml:board-x86-64-efi.yml:opt-lava-test.yml${BUILD_OPTIONS} - - scripts/deploy_for_testing.sh x86-64-efi + <<: *build-job + variables: + TARGET: x86-64-efi + BUILD_OPTIONS: ":opt-lava-test.yml" lava-test:board-x86-64-efi: - <<: *lava-ssh-key - stage: lava-test - script: - - scripts/install-lavacli.sh - - scripts/run-lava-tests.sh x86-64 needs: [ "build:board-x86-64-efi" ] - only: - variables: - - $LAVA_SSH_USER + <<: *test-job + variables: + TARGET: x86-64
Signature · 1 line
2.20.1
PATCH 2/11 ci: Use gitlab extends instead of YAML Anchors
In reply to Q. GylstorffFrom: Quirin Gylstorff <[email protected]>
Gitlab uses extends as an alternative to YAML Anchors since 11.3.
--- .gitlab-ci.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-)
.gitlab-ci.yml +18 -17
@@ -25,22 +25,23 @@ default: # add lavacli to the container and install the ssh keys # for the test infrastructure -.add-lava-ssh-config: &lava-ssh-key +.add-lava-ssh-config: before_script: - mkdir -p -m=700 ~/.ssh - echo "$LAVA_SSH_UPLOAD_KEY" | tr -d '\r' > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa - echo "ProxyCommand socat - PROXY:$(echo $https_proxy | sed 's|.*://\([^:]*\).*|\1|'):%h:%p,proxyport=$(echo $https_proxy | sed 's|.*:\([0-9]*\)$|\1|')" >> ~/.ssh/config && chmod 600 ~/.ssh/config - echo "$LAVA_SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts -.build: &build-job - <<: *lava-ssh-key +.build: + extends: .add-lava-ssh-config stage: build script: - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS} - scripts/deploy_for_testing.sh ${TARGET} -.test: &test-job - <<: *lava-ssh-key +.test: + extends: .add-lava-ssh-config + image: kasproject/kas-isar:latest stage: lava-test script: - scripts/install-lavacli.sh
@@ -51,51 +52,51 @@ default: build:qemu-amd64: - <<: *build-job + extends: .build variables: TARGET: qemu-amd64 lava-test:qemu-amd64: needs: [ "build:qemu-amd64" ] - <<: *test-job + extends: .test variables: TARGET: qemu-amd64 build:qemu-armhf: - <<: *build-job + extends: .build variables: TARGET: qemu-armhf lava-test:qemu-armhf: needs: [ "build:qemu-armhf" ] - <<: *test-job + extends: .test variables: TARGET: qemu-armhf build:qemu-arm64: - <<: *build-job + extends: .build variables: TARGET: qemu-arm64 lava-test:qemu-arm64: needs: [ "build:qemu-arm64" ] - <<: *test-job + extends: .test variables: TARGET: qemu-arm64 build:board-hikey: - <<: *build-job + extends: .build variables: TARGET: hikey BUILD_OPTIONS: ":opt-lava-test.yml" lava-test:board-hikey: needs: [ "build:board-hikey" ] - <<: *test-job + extends: .test variables: TARGET: hikey build:board-beaglebone: - <<: *build-job + extends: .build variables: TARGET: beagle-bone-black BUILD_OPTIONS: ":opt-lava-test.yml"
@@ -103,18 +104,18 @@ build:board-beaglebone: lava-test:board-beaglebone: needs: [ "build:board-beaglebone" ] - <<: *test-job + extends: .test variables: TARGET: beaglebone build:board-x86-64-efi: - <<: *build-job + extends: .build variables: TARGET: x86-64-efi BUILD_OPTIONS: ":opt-lava-test.yml" lava-test:board-x86-64-efi: needs: [ "build:board-x86-64-efi" ] - <<: *test-job + extends: .test variables: TARGET: x86-64
Signature · 1 line
2.20.1
PATCH 3/11 scripts: Allow other layers to reuse scripts
In reply to Q. GylstorffFrom: Quirin Gylstorff <[email protected]>
- add ssh identity file
- add support for local build
- add variables for IMAGE and DISTRO_NAME to deploy from derived layers
- use sed instead eval to replace placeholders for clarity
--- .gitlab-ci.yml | 5 +++- scripts/deploy_for_testing.sh | 40 ++++++++++++++------------ scripts/run-lava-tests.sh | 53 +++++++++++++++++++---------------- 3 files changed, 55 insertions(+), 43 deletions(-)
.gitlab-ci.yml +4 -1
@@ -20,6 +20,9 @@ variables: no_proxy: "$NO_PROXY" XENOMAI_BUILD_OPTION: ":opt-xenomai-next.yml" LINUX_BUILD_OPTION: ":opt-linux-latest.yml" + ISAR_IMAGE: demo-image + ISAR_DISTRIBUTION: xenomai-demo + default: image: kasproject/kas-isar:latest
@@ -28,8 +31,8 @@ default: .add-lava-ssh-config: before_script: - mkdir -p -m=700 ~/.ssh - - echo "$LAVA_SSH_UPLOAD_KEY" | tr -d '\r' > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa - echo "ProxyCommand socat - PROXY:$(echo $https_proxy | sed 's|.*://\([^:]*\).*|\1|'):%h:%p,proxyport=$(echo $https_proxy | sed 's|.*:\([0-9]*\)$|\1|')" >> ~/.ssh/config && chmod 600 ~/.ssh/config + - echo "$LAVA_SSH_UPLOAD_KEY" | tr -d '\r' > ~/.ssh/lava_id_rsa && chmod 600 ~/.ssh/lava_id_rsa - echo "$LAVA_SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts .build:
scripts/deploy_for_testing.sh +22 -18
@@ -11,37 +11,41 @@ # SPDX-License-Identifier: MIT # set -e -TARGET="$1" +target="$1" -if [ -z "${TARGET}" ]; then +if [ -z "${target}" ]; then exit -1 fi -IMAGES_DIR=build/tmp/deploy/images +images_dir=build/tmp/deploy/images if [ -z "${LAVA_SSH_USER}" ] || [ -z "${LAVA_SSH_HOST}" ] || [ -z "${LAVA_SSH_PORT}" ]; then echo "Lava environment not available or incomplete - do not deploy" exit 0 fi -LAVA_SSH_DESTINATION="${LAVA_SSH_USER}@${LAVA_SSH_HOST}" +lava_ssh_destination="${LAVA_SSH_USER}@${LAVA_SSH_HOST}" -LAVA_DEPLOY_DIR=${LAVA_DEPLOY_DIR:-"/var/lib/lava/artifacts"} -DEPLOY_DIR="${LAVA_DEPLOY_DIR}/${CI_PIPELINE_ID}" -ssh -p ${LAVA_SSH_PORT} ${LAVA_SSH_DESTINATION} 'install -d -m 755 "'${DEPLOY_DIR}'"' +isar_base_name="${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${target}" +lava_deploy_dir="${LAVA_DEPLOY_DIR:-/var/lib/lava/artifacts}" +deploy_dir="${lava_deploy_dir}/${CI_PIPELINE_ID}" +lava_identity="-i ${LAVA_SSH_KEY_PATH:-~/.ssh/lava_id_rsa}" +if [ -n "${CI_PIPELINE_ID}" ]; then + ssh -p ${LAVA_SSH_PORT} ${lava_identity} ${lava_ssh_destination} 'install -d -m 755 "'${deploy_dir}'"' +fi #KERNEL -scp -P ${LAVA_SSH_PORT} ${IMAGES_DIR}/${TARGET}/demo-image-xenomai-demo-${TARGET}-vmlinuz \ - ${LAVA_SSH_DESTINATION}:${DEPLOY_DIR} +scp -P ${LAVA_SSH_PORT} ${lava_identity} ${images_dir}/${target}/${isar_base_name}-vmlinuz \ + ${lava_ssh_destination}:${deploy_dir} # INITRD -scp -P ${LAVA_SSH_PORT} ${IMAGES_DIR}/${TARGET}/demo-image-xenomai-demo-${TARGET}-initrd.img \ - ${LAVA_SSH_DESTINATION}:${DEPLOY_DIR} +scp -P ${LAVA_SSH_PORT} ${lava_identity} ${images_dir}/${target}/${isar_base_name}-initrd.img \ + ${lava_ssh_destination}:${deploy_dir} # ROOTFS -if [ -n ${IMAGES_DIR}/${TARGET}/demo-image-xenomai-demo-${TARGET}.*.gz ]; then - gzip ${IMAGES_DIR}/${TARGET}/demo-image-xenomai-demo-${TARGET}.* +if [ -n ${images_dir}/${target}/${isar_base_name}.*.gz ]; then + gzip ${images_dir}/${target}/${isar_base_name}.* fi -scp -P ${LAVA_SSH_PORT} ${IMAGES_DIR}/${TARGET}/demo-image-xenomai-demo-${TARGET}.* \ - ${LAVA_SSH_DESTINATION}:${DEPLOY_DIR} +scp -P ${LAVA_SSH_PORT} ${lava_identity} ${images_dir}/${target}/${isar_base_name}.* \ + ${lava_ssh_destination}:${deploy_dir} # DTB -DTB="${IMAGES_DIR}/${TARGET}/*.dtb" -if [ -e ${DTB} ]; then - scp -P ${LAVA_SSH_PORT} ${DTB} ${LAVA_SSH_DESTINATION}:${DEPLOY_DIR} +dtb="${images_dir}/${target}/*.dtb" +if [ -e ${dtb} ]; then + scp -P ${LAVA_SSH_PORT} ${lava_identity} ${dtb} ${lava_ssh_destination}:${deploy_dir} fi
scripts/run-lava-tests.sh +29 -24
77 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH 4/11 recipes-kernel/linux: Add 4.4
In reply to Q. GylstorffFrom: Quirin Gylstorff <[email protected]>
Add recipe for linux 4.4.
--- opt-linux-4.4.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 opt-linux-4.4.yml
opt-linux-4.4.yml new file +17 -0
@@ -0,0 +1,17 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2020 +# +# Authors: +# Quirin Gylstorff <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +header: + version: 8 + +local_conf_header: + linux-xenomai-latest: | + PREFERRED_VERSION_linux-xenomai = "4.4%"
Signature · 1 line
2.20.1
Re: [xenomai-images PATCH 04/11] recipes-kernel/linux: Add 4.4
Quoted 24 lines · Q. Gylstorff
From: Quirin Gylstorff <[email protected]>
Add recipe for linux 4.4.
Signed-off-by Quirin Gylstorff <[email protected]>--- opt-linux-4.4.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)create mode 100644 opt-linux-4.4.yml
opt-linux-4.4.yml new file +7
-0@@ -0,0 +1,17 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2020 +# +# Authors: +# Quirin Gylstorff <[email protected]>
opt-linux-4.4.yml line 17
Quoted 10 lines
opt-linux-4.4.yml new file +10
-0+# +# SPDX-License-Identifier: MIT +# + +header: + version: 8 + +local_conf_header: + linux-xenomai-latest: | + PREFERRED_VERSION_linux-xenomai = "4.4%"
Subject and content no longer matches. This is just allowing to select a 4.4 release, the recipe is already there (in next).
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
PATCH 5/11 ci: Add linux-4.4 build and tests
In reply to Q. GylstorffFrom: Quirin Gylstorff <[email protected]>
Add a new CI variable DEPLOY_DIR_EXTENSION to differ between kernel builds for the same target as the kernel version is not visibly before bootup
--- .gitlab-ci.yml | 31 ++++++++++++++++++++++++++++++- scripts/deploy_for_testing.sh | 4 ++-- scripts/run-lava-tests.sh | 4 ++-- 3 files changed, 34 insertions(+), 5 deletions(-)
.gitlab-ci.yml +30 -1
@@ -1,7 +1,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2020 +# Copyright (c) Siemens AG, 2019 - 2020 # # Authors: # Quirin Gylstorff <[email protected]>
@@ -122,3 +122,32 @@ lava-test:board-x86-64-efi: extends: .test variables: TARGET: x86-64 + +build:qemu-amd64:linux-4.4: + extends: .build + variables: + TARGET: qemu-amd64 + LINUX_BUILD_OPTION: ":opt-linux-4.4.yml" + DEPLOY_DIR_EXTENSION: "4.4" + +lava-test:qemu-amd64:linux-4.4: + needs: [ "build:qemu-amd64:linux-4.4" ] + extends: .test + variables: + TARGET: qemu-amd64 + DEPLOY_DIR_EXTENSION: "4.4" + +build:board-x86-64-efi:linux-4.4: + extends: .build + variables: + TARGET: x86-64-efi + BUILD_OPTIONS: ":opt-lava-test.yml" + LINUX_BUILD_OPTION: ":opt-linux-4.4.yml" + DEPLOY_DIR_EXTENSION: "4.4" + +lava-test:board-x86-64-efi:linux-4.4: + needs: [ "build:board-x86-64-efi:linux-4.4" ] + extends: .test + variables: + TARGET: x86-64 + DEPLOY_DIR_EXTENSION: "4.4"
scripts/deploy_for_testing.sh +2 -2
@@ -3,7 +3,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2019 +# Copyright (c) Siemens AG, 2019-2020 # # Authors: # Quirin Gylstorff <[email protected]>
@@ -27,7 +27,7 @@ lava_ssh_destination="${LAVA_SSH_USER}@${LAVA_SSH_HOST}" isar_base_name="${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${target}" lava_deploy_dir="${LAVA_DEPLOY_DIR:-/var/lib/lava/artifacts}" -deploy_dir="${lava_deploy_dir}/${CI_PIPELINE_ID}" +deploy_dir="${lava_deploy_dir}/${CI_PIPELINE_ID}/${DEPLOY_DIR_EXTENSION}" lava_identity="-i ${LAVA_SSH_KEY_PATH:-~/.ssh/lava_id_rsa}" if [ -n "${CI_PIPELINE_ID}" ]; then ssh -p ${LAVA_SSH_PORT} ${lava_identity} ${lava_ssh_destination} 'install -d -m 755 "'${deploy_dir}'"'
scripts/run-lava-tests.sh +2 -2
@@ -2,7 +2,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2019 +# Copyright (c) Siemens AG, 2019-2020 # # Authors: # Quirin Gylstorff <[email protected]>
@@ -43,7 +43,7 @@ lava_master_uri=http://localhost:${lava_master_port} lavacli identities add --token ${LAVA_MASTER_TOKEN} --uri ${lava_master_uri} --username ${LAVA_MASTER_ACCOUNT} default #generate lava job description from template artifact_url="${LAVA_ARTIFACTS_URL:-http://localhost/artifacts}" -DEPLOY_URL="${artifact_url}/${CI_PIPELINE_ID}" +DEPLOY_URL="${artifact_url}/${CI_PIPELINE_ID}/${DEPLOY_DIR_EXTENSION}" job_template_path="${JOB_TEMPLATE_PATH:-tests/jobs/xenomai}" tmp_dir=$(mktemp -d) template=${tmp_dir}/job_${TARGET}_${CI_PIPELINE_ID}.yml
Signature · 1 line
2.20.1
Re: [xenomai-images PATCH 05/11] ci: Add linux-4.4 build and tests
Quoted 27 lines · Q. Gylstorff
From: Quirin Gylstorff <[email protected]>
Add a new CI variable
DEPLOY_DIR_EXTENSIONto differ between kernel builds for the same target as the kernel version is not visibly before bootupSigned-off-by Quirin Gylstorff <[email protected]>--- .gitlab-ci.yml | 31 ++++++++++++++++++++++++++++++- scripts/deploy_for_testing.sh | 4 ++-- scripts/run-lava-tests.sh | 4 ++-- 3 files changed, 34 insertions(+), 5 deletions(-).gitlab-ci.yml +1
-1@@ -1,7 +1,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2020 +# Copyright (c) Siemens AG, 2019 - 2020 # # Authors: # Quirin Gylstorff <[email protected]>
.gitlab-ci.yml lava-test:board-x86-64-efi: · line 130
Quoted 9 lines
.gitlab-ci.yml +6
-0@@ -122,3 +122,32 @@ lava-test:board-x86-64-efi: extends: .test variables: TARGET: x86-64 + +build:qemu-amd64:linux-4.4: + extends: .build + variables: + TARGET: qemu-amd64 + LINUX_BUILD_OPTION: ":opt-linux-4.4.yml"
I would prefer having opt-xenomai-3.0.x.yml:opt-linux-latest.yml for the 4.4 test. Our test matrix explodes if we also check latest Xenomai against oldest maintained kernel.
Jan
Quoted 68 lines
.gitlab-ci.yml +23
-0+ DEPLOY_DIR_EXTENSION: "4.4" + +lava-test:qemu-amd64:linux-4.4: + needs: [ "build:qemu-amd64:linux-4.4" ] + extends: .test + variables: + TARGET: qemu-amd64 + DEPLOY_DIR_EXTENSION: "4.4" + +build:board-x86-64-efi:linux-4.4: + extends: .build + variables: + TARGET: x86-64-efi + BUILD_OPTIONS: ":opt-lava-test.yml" + LINUX_BUILD_OPTION: ":opt-linux-4.4.yml" + DEPLOY_DIR_EXTENSION: "4.4" + +lava-test:board-x86-64-efi:linux-4.4: + needs: [ "build:board-x86-64-efi:linux-4.4" ] + extends: .test + variables: + TARGET: x86-64 + DEPLOY_DIR_EXTENSION: "4.4"scripts/deploy_for_testing.sh +2
-2@@ -3,7 +3,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2019 +# Copyright (c) Siemens AG, 2019-2020 # # Authors: # Quirin Gylstorff <[email protected]>@@ -27,7 +27,7 @@ lava_ssh_destination="${LAVA_SSH_USER}@${LAVA_SSH_HOST}" isar_base_name="${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${target}" lava_deploy_dir="${LAVA_DEPLOY_DIR:-/var/lib/lava/artifacts}" -deploy_dir="${lava_deploy_dir}/${CI_PIPELINE_ID}" +deploy_dir="${lava_deploy_dir}/${CI_PIPELINE_ID}/${DEPLOY_DIR_EXTENSION}" lava_identity="-i ${LAVA_SSH_KEY_PATH:-~/.ssh/lava_id_rsa}" if [ -n "${CI_PIPELINE_ID}" ]; then ssh -p ${LAVA_SSH_PORT} ${lava_identity} ${lava_ssh_destination} 'install -d -m 755 "'${deploy_dir}'"'scripts/run-lava-tests.sh +2
-2@@ -2,7 +2,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2019 +# Copyright (c) Siemens AG, 2019-2020 # # Authors: # Quirin Gylstorff <[email protected]>@@ -43,7 +43,7 @@ lava_master_uri=http://localhost:${lava_master_port} lavacli identities add --token ${LAVA_MASTER_TOKEN} --uri ${lava_master_uri} --username ${LAVA_MASTER_ACCOUNT} default #generate lava job description from template artifact_url="${LAVA_ARTIFACTS_URL:-http://localhost/artifacts}" -DEPLOY_URL="${artifact_url}/${CI_PIPELINE_ID}" +DEPLOY_URL="${artifact_url}/${CI_PIPELINE_ID}/${DEPLOY_DIR_EXTENSION}" job_template_path="${JOB_TEMPLATE_PATH:-tests/jobs/xenomai}" tmp_dir=$(mktemp -d) template=${tmp_dir}/job_${TARGET}_${CI_PIPELINE_ID}.yml
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
PATCH 6/11 ci: add option for 4.19
In reply to Q. GylstorffFrom: Quirin Gylstorff <[email protected]>
--- opt-linux-4.19.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 opt-linux-4.19.yml
opt-linux-4.19.yml new file +17 -0
@@ -0,0 +1,17 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2020 +# +# Authors: +# Quirin Gylstorff <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +header: + version: 8 + +local_conf_header: + linux-xenomai-latest: | + PREFERRED_VERSION_linux-xenomai = "4.19%"
Signature · 1 line
2.20.1
Re: [xenomai-images PATCH 06/11] ci: add option for 4.19
Quoted 22 lines · Q. Gylstorff
From: Quirin Gylstorff <[email protected]>
Signed-off-by Quirin Gylstorff <[email protected]>--- opt-linux-4.19.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)create mode 100644 opt-linux-4.19.yml
opt-linux-4.19.yml new file +7
-0@@ -0,0 +1,17 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2020 +# +# Authors: +# Quirin Gylstorff <[email protected]>
opt-linux-4.19.yml line 17
Quoted 10 lines
opt-linux-4.19.yml new file +10
-0+# +# SPDX-License-Identifier: MIT +# + +header: + version: 8 + +local_conf_header: + linux-xenomai-latest: | + PREFERRED_VERSION_linux-xenomai = "4.19%"
What for, at this point? 3.1 uses 4.19 already, 3.0 does not support it. Let's add that when there is actually a use case.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
PATCH 7/11 ci: Remove proxy settings
In reply to Q. GylstorffFrom: Quirin Gylstorff <[email protected]>
--- .gitlab-ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
.gitlab-ci.yml +2 -6
@@ -14,10 +14,6 @@ stages: variables: GIT_STRATEGY: clone - http_proxy: "$HTTP_PROXY" - https_proxy: "$HTTPS_PROXY" - ftp_proxy: "$FTP_PROXY" - no_proxy: "$NO_PROXY" XENOMAI_BUILD_OPTION: ":opt-xenomai-next.yml" LINUX_BUILD_OPTION: ":opt-linux-latest.yml" ISAR_IMAGE: demo-image
@@ -31,13 +27,13 @@ default: .add-lava-ssh-config: before_script: - mkdir -p -m=700 ~/.ssh - - echo "ProxyCommand socat - PROXY:$(echo $https_proxy | sed 's|.*://\([^:]*\).*|\1|'):%h:%p,proxyport=$(echo $https_proxy | sed 's|.*:\([0-9]*\)$|\1|')" >> ~/.ssh/config && chmod 600 ~/.ssh/config - echo "$LAVA_SSH_UPLOAD_KEY" | tr -d '\r' > ~/.ssh/lava_id_rsa && chmod 600 ~/.ssh/lava_id_rsa - echo "$LAVA_SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts .build: extends: .add-lava-ssh-config stage: build + image: kasproject/kas-isar:latest script: - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS} - scripts/deploy_for_testing.sh ${TARGET}
@@ -92,6 +88,7 @@ build:board-hikey: variables: TARGET: hikey BUILD_OPTIONS: ":opt-lava-test.yml" + lava-test:board-hikey: needs: [ "build:board-hikey" ] extends: .test
@@ -104,7 +101,6 @@ build:board-beaglebone: TARGET: beagle-bone-black BUILD_OPTIONS: ":opt-lava-test.yml" - lava-test:board-beaglebone: needs: [ "build:board-beaglebone" ] extends: .test
Signature · 1 line
2.20.1
Re: [xenomai-images PATCH 07/11] ci: Remove proxy settings
Quoted 12 lines · Q. Gylstorff
From: Quirin Gylstorff <[email protected]>
Signed-off-by Quirin Gylstorff <[email protected]>--- .gitlab-ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-).gitlab-ci.yml +0
-0
.gitlab-ci.yml stages: · line 20
Quoted 7 lines
.gitlab-ci.yml +0
-4@@ -14,10 +14,6 @@ stages: variables: GIT_STRATEGY: clone - http_proxy: "$HTTP_PROXY" - https_proxy: "$HTTPS_PROXY" - ftp_proxy: "$FTP_PROXY" - no_proxy: "$NO_PROXY"
Even if we no longer need it, let's keep this as pattern
.gitlab-ci.yml default: · line 34
Quoted 8 lines
.gitlab-ci.yml +0
-1XENOMAI_BUILD_OPTION: ":opt-xenomai-next.yml" LINUX_BUILD_OPTION: ":opt-linux-latest.yml" ISAR_IMAGE: demo-image@@ -31,13 +27,13 @@ default: .add-lava-ssh-config: before_script: - mkdir -p -m=700 ~/.ssh - - echo "ProxyCommand socat - PROXY:$(echo $https_proxy | sed 's|.*://\([^:]*\).*|\1|'):%h:%p,proxyport=$(echo $https_proxy | sed 's|.*:\([0-9]*\)$|\1|')" >> ~/.ssh/config && chmod 600 ~/.ssh/config
This should likely be fixed to take empty proxies into account. Then it can stay.
.gitlab-ci.yml default: · line 36
Quoted 7 lines
.gitlab-ci.yml +1
-0- echo "$LAVA_SSH_UPLOAD_KEY" | tr -d '\r' > ~/.ssh/lava_id_rsa && chmod 600 ~/.ssh/lava_id_rsa - echo "$LAVA_SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts .build: extends: .add-lava-ssh-config stage: build + image: kasproject/kas-isar:latest
Unrelated - and incorrect - change.
Quoted 13 lines
.gitlab-ci.yml +1
-0script: - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS} - scripts/deploy_for_testing.sh ${TARGET}@@ -92,6 +88,7 @@ build:board-hikey: variables: TARGET: hikey BUILD_OPTIONS: ":opt-lava-test.yml" + lava-test:board-hikey: needs: [ "build:board-hikey" ] extends: .test
.gitlab-ci.yml build:board-beaglebone: · line 106
Quoted 7 lines
.gitlab-ci.yml +0
-1@@ -104,7 +101,6 @@ build:board-beaglebone: TARGET: beagle-bone-black BUILD_OPTIONS: ":opt-lava-test.yml" - lava-test:board-beaglebone: needs: [ "build:board-beaglebone" ] extends: .test
Unrelated changes.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Re: [xenomai-images PATCH 07/11] ci: Remove proxy settings
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Q. Gylstorff
From: Quirin Gylstorff <[email protected]>
Signed-off-by Quirin Gylstorff <[email protected]>---
.gitlab-ci.yml | 8 ++------1 file changed, 2 insertions(+), 6 deletions(-)
Quoted 13 lines
Quoted 11 lines
.gitlab-ci.yml +0
-0@@ -14,10 +14,6 @@ stages:variables:
GIT_STRATEGY: clone
-http_proxy: "$HTTP_PROXY"
-https_proxy: "$HTTPS_PROXY"
-ftp_proxy: "$FTP_PROXY"
-no_proxy: "$NO_PROXY"Even if we no longer need it, let's keep this as pattern
Sure
Quoted 12 lines
Quoted 10 lines
XENOMAI_BUILD_OPTION: ":opt-xenomai-next.yml"
LINUX_BUILD_OPTION: ":opt-linux-latest.yml"
ISAR_IMAGE: demo-image.gitlab-ci.yml +0
-0@@ -31,13 +27,13 @@ default:.add-lava-ssh-config:
before_script:
- mkdir -p -m=700 ~/.ssh
- - echo "ProxyCommand socat - PROXY:$(echo $https_proxy | sed
's|.*://\([^:]*\).*|\1|'):%h:%p,proxyport=$(echo $https_proxy | sed 's|.*:\([0-9]*\)$|\1|')" >> ~/.ssh/config && chmod 600 ~/.ssh/configThis should likely be fixed to take empty proxies into account. Then it can stay.
That will be a long line in the ci file, but the alternative to use a extra script is IHMO not much better.
Quirin
Quoted 35 lines
Quoted 7 lines
- echo "$LAVA_SSH_UPLOAD_KEY" | tr -d '\r' > ~/.ssh/lava_id_rsa && chmod 600 ~/.ssh/lava_id_rsa
- echo "$LAVA_SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts .build:
extends: .add-lava-ssh-config
stage: build
+ image: kasproject/kas-isar:latestUnrelated - and incorrect - change.
Quoted 13 lines
script:
- kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}-
scripts/deploy_for_testing.sh${TARGET}.gitlab-ci.yml +0
-0@@ -92,6 +88,7 @@ build:board-hikey:variables:
TARGET: hikey
BUILD_OPTIONS: ":opt-lava-test.yml"
+
lava-test:board-hikey:
needs: [ "build:board-hikey" ]
extends: .test.gitlab-ci.yml +0
-0@@ -104,7 +101,6 @@ build:board-beaglebone:Quoted 7 lines
TARGET: beagle-bone-black
BUILD_OPTIONS: ":opt-lava-test.yml"
-
lava-test:board-beaglebone:
needs: [ "build:board-beaglebone" ]
extends: .testUnrelated changes.
Jan
PATCH 8/11 ci: add new build options
In reply to Q. GylstorffFrom: Quirin Gylstorff <[email protected]>
--- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
.gitlab-ci.yml +30 -0
@@ -147,3 +147,33 @@ lava-test:board-x86-64-efi:linux-4.4: variables: TARGET: x86-64 DEPLOY_DIR_EXTENSION: "4.4" + +build:board-beaglebone:xenomai-3.0.x: + extends: .build + variables: + TARGET: beagle-bone-black + XENOMAI_BUILD_OPTION: ":opt-xenomai-3.0.x.yml" + BUILD_OPTIONS: ":opt-lava-test.yml" + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +lava-test:board-beaglebone:xenomai-3.0.x: + needs: [ "build:board-beaglebone:xenomai-3.0.x" ] + extends: .test + variables: + TARGET: beaglebone + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +build:board-x86-64-efi:xenomai-3.0.x: + extends: .build + variables: + TARGET: x86-64-efi + XENOMAI_BUILD_OPTION: ":opt-xenomai-3.0.x.yml" + BUILD_OPTIONS: ":opt-lava-test.yml" + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +lava-test:board-x86-64-efi:xenomai-3.0.x: + needs: [ "build:board-x86-64-efi:xenomai-3.0.x" ] + extends: .test + variables: + TARGET: x86-64 + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x"
Signature · 1 line
2.20.1
Re: [xenomai-images PATCH 08/11] ci: add new build options
Quoted 36 lines · Q. Gylstorff
From: Quirin Gylstorff <[email protected]>
Signed-off-by Quirin Gylstorff <[email protected]>--- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+).gitlab-ci.yml +20
-0@@ -147,3 +147,33 @@ lava-test:board-x86-64-efi:linux-4.4: variables: TARGET: x86-64 DEPLOY_DIR_EXTENSION: "4.4" + +build:board-beaglebone:xenomai-3.0.x: + extends: .build + variables: + TARGET: beagle-bone-black + XENOMAI_BUILD_OPTION: ":opt-xenomai-3.0.x.yml" + BUILD_OPTIONS: ":opt-lava-test.yml" + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +lava-test:board-beaglebone:xenomai-3.0.x: + needs: [ "build:board-beaglebone:xenomai-3.0.x" ] + extends: .test + variables: + TARGET: beaglebone + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +build:board-x86-64-efi:xenomai-3.0.x: + extends: .build + variables: + TARGET: x86-64-efi
.gitlab-ci.yml lava-test:board-x86-64-efi:linux-4.4: · line 179
Quoted 10 lines
.gitlab-ci.yml +10
-0+ XENOMAI_BUILD_OPTION: ":opt-xenomai-3.0.x.yml" + BUILD_OPTIONS: ":opt-lava-test.yml" + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +lava-test:board-x86-64-efi:xenomai-3.0.x: + needs: [ "build:board-x86-64-efi:xenomai-3.0.x" ] + extends: .test + variables: + TARGET: x86-64 + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x"
See my comment on the other patch: A set of xenomai-3.0.x/linux-latest for x86 and arm would be good enough for now
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Re: [xenomai-images PATCH 08/11] ci: add new build options
Quoted 50 lines · Jan Kiszka
Quoted 36 lines · Q. Gylstorff
From: Quirin Gylstorff <[email protected]>
Signed-off-by Quirin Gylstorff <[email protected]>---
.gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++1 file changed, 30 insertions(+).gitlab-ci.yml +0
-0@@ -147,3 +147,33 @@ lava-test:board-x86-64-efi:linux-4.4:variables:
TARGET: x86-64
DEPLOY_DIR_EXTENSION: "4.4".gitlab-ci.yml +20
-0+ +build:board-beaglebone:xenomai-3.0.x: + extends: .build + variables: + TARGET: beagle-bone-black + XENOMAI_BUILD_OPTION: ":opt-xenomai-3.0.x.yml" + BUILD_OPTIONS: ":opt-lava-test.yml" + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +lava-test:board-beaglebone:xenomai-3.0.x: + needs: [ "build:board-beaglebone:xenomai-3.0.x" ] + extends: .test + variables: + TARGET: beaglebone + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +build:board-x86-64-efi:xenomai-3.0.x: + extends: .build + variables: + TARGET: x86-64-efi.gitlab-ci.yml lava-test:board-x86-64-efi:linux-4.4: · line 179
Quoted 10 lines
.gitlab-ci.yml +10
-0+ XENOMAI_BUILD_OPTION: ":opt-xenomai-3.0.x.yml" + BUILD_OPTIONS: ":opt-lava-test.yml" + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" + +lava-test:board-x86-64-efi:xenomai-3.0.x: + needs: [ "build:board-x86-64-efi:xenomai-3.0.x" ] + extends: .test + variables: + TARGET: x86-64 + DEPLOY_DIR_EXTENSION: "xenomai-3.0.x"See my comment on the other patch: A set of xenomai-3.0.x/linux-latest for x86 and arm would be good enough for now
Quoted 2 lines
Jan
I will remove 4.4 and let xenomai-3.0.x stay. v2 will be posted as soon as the tests are run.
Quirin
PATCH 9/11 recipes-xenomai/xenomai.inc: Add missing libxenomai-dev
In reply to Q. GylstorffFrom: Quirin Gylstorff <[email protected]>
To build against libxenomai headers are necessary.
--- recipes-xenomai/xenomai/xenomai.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
recipes-xenomai/xenomai/xenomai.inc +1 -2
@@ -11,8 +11,7 @@ inherit dpkg -PROVIDES += "xenomai-kernel-source xenomai-runtime xenomai-runtime-dbgsym libxenomai1-dbgsym" - +PROVIDES += "xenomai-kernel-source xenomai-runtime xenomai-runtime-dbgsym libxenomai1 libxenomai-dev libxenomai1-dbgsym" # use bitbake get_srcrev to get the current commit id COMMIT="${@bb.fetch2.get_srcrev(d).strip('AUTOINC+')}" do_prepare_build() {
Signature · 1 line
2.20.1