From 7259c12a552c3f75df1da510dfda10d0f5bf4541 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 24 Feb 2022 16:24:55 +0000 Subject: [PATCH] CI: run utility jobs last Run check-layer and coverage jobs after the building tasks, as we want to start compiling sooner and not wait for check-layer to finish before compiling. Signed-off-by: Ross Burton --- .gitlab-ci.yml | 83 +++++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 42 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 66d213f5..2a450ea3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,15 +56,6 @@ update-repos: script: - flock --verbose --timeout 60 $KAS_REPO_REF_DIR ./ci/update-repos - -# What percentage of machines in the layer do we build -machine-coverage: - stage: build - interruptible: true - script: - - ./ci/check-machine-coverage - coverage: '/Coverage: \d+/' - # # Build stage, the actual build jobs # @@ -74,39 +65,6 @@ machine-coverage: # VIRT: [none, xen] # TESTING: testimage -# Validate layers are Yocto Project Compatible -check-layers: - extends: .setup - script: - - kas shell --update --force-checkout ci/base.yml:ci/meta-openembedded.yml --command \ - "yocto-check-layer-wrapper $CI_PROJECT_DIR/$LAYER --dependency $CI_PROJECT_DIR/meta-* $KAS_WORK_DIR/meta-openembedded/meta-oe --no-auto-dependency" - parallel: - matrix: - - LAYER: [meta-arm, meta-arm-bsp, meta-arm-toolchain, meta-gem5] - -pending-updates: - extends: .setup - artifacts: - paths: - - update-report - script: - - rm -fr update-report - # This configuration has all of the layers we need enabled - - kas shell ci/gem5-arm64.yml --command \ - "$CI_PROJECT_DIR/scripts/machine-summary.py -t report -o $CI_PROJECT_DIR/update-report $($CI_PROJECT_DIR/ci/listmachines.py meta-arm meta-arm-bsp meta-gem5)" - # Do this on x86 whilst the compilers are x86-only - tags: - - x86_64 - -metrics: - extends: .setup - artifacts: - reports: - metrics: metrics.txt - script: - - kas shell --update --force-checkout ci/base.yml --command \ - "$CI_PROJECT_DIR/ci/patchreview $CI_PROJECT_DIR/meta-* --verbose --metrics $CI_PROJECT_DIR/metrics.txt" - corstone500: extends: .build @@ -234,3 +192,44 @@ tc1: toolchains: extends: .build + +# Validate layers are Yocto Project Compatible +check-layers: + extends: .setup + script: + - kas shell --update --force-checkout ci/base.yml:ci/meta-openembedded.yml --command \ + "yocto-check-layer-wrapper $CI_PROJECT_DIR/$LAYER --dependency $CI_PROJECT_DIR/meta-* $KAS_WORK_DIR/meta-openembedded/meta-oe --no-auto-dependency" + parallel: + matrix: + - LAYER: [meta-arm, meta-arm-bsp, meta-arm-toolchain, meta-gem5] + +pending-updates: + extends: .setup + artifacts: + paths: + - update-report + script: + - rm -fr update-report + # This configuration has all of the layers we need enabled + - kas shell ci/gem5-arm64.yml --command \ + "$CI_PROJECT_DIR/scripts/machine-summary.py -t report -o $CI_PROJECT_DIR/update-report $($CI_PROJECT_DIR/ci/listmachines.py meta-arm meta-arm-bsp meta-gem5)" + # Do this on x86 whilst the compilers are x86-only + tags: + - x86_64 + +# What percentage of machines in the layer do we build +machine-coverage: + stage: build + interruptible: true + script: + - ./ci/check-machine-coverage + coverage: '/Coverage: \d+/' + +metrics: + extends: .setup + artifacts: + reports: + metrics: metrics.txt + script: + - kas shell --update --force-checkout ci/base.yml --command \ + "$CI_PROJECT_DIR/ci/patchreview $CI_PROJECT_DIR/meta-* --verbose --metrics $CI_PROJECT_DIR/metrics.txt"