New test and refactoring
cover New test and refactoring
Wei Liu (2):
automation: add a qemu smoke test for clang build
automation: break .gitlab-yaml into smaller files
.gitlab-ci.yml | 400 +--------------------------------------- automation/gitlab-ci/build.yaml | 379 +++++++++++++++++++++++++++++++++++++ automation/gitlab-ci/test.yaml | 34 ++++ 3 files changed, 416 insertions(+), 397 deletions(-) create mode 100644 automation/gitlab-ci/build.yaml create mode 100644 automation/gitlab-ci/test.yaml
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/2 automation: add a qemu smoke test for clang build
Also rename the old test to have -gcc suffix.
---
This can only apply after Roger's patch to fix clang has been applied.
--- .gitlab-ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
.gitlab-ci.yml +18 -1
@@ -383,7 +383,7 @@ debian-unstable-gcc-debug-arm64-randconfig: # Test jobs -qemu-smoke-x86-64: +qemu-smoke-x86-64-gcc: stage: test image: registry.gitlab.com/xen-project/xen/${CONTAINER} variables:
@@ -399,3 +399,20 @@ qemu-smoke-x86-64: - debian-stretch-gcc-debug tags: - x86_64 + +qemu-smoke-x86-64-clang: + stage: test + image: registry.gitlab.com/xen-project/xen/${CONTAINER} + variables: + CONTAINER: debian:stretch + script: + - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log + artifacts: + paths: + - smoke.serial + - '*.log' + when: always + dependencies: + - debian-unstable-clang-debug + tags: + - x86_64
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/2] automation: add a qemu smoke test for clang build
Quoted 3 lines · Wei Liu
Also rename the old test to have -gcc suffix.
Signed-off-by Wei Liu <[email protected]>
Nice addition. Sorry for the delay.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/2 automation: break .gitlab-yaml into smaller files
In reply to Wei LiuBreak out files for build jobs and test jobs. Keep the top level .gitlab-ci.yaml small.
--- .gitlab-ci.yml | 417 +--------------------------------------- automation/gitlab-ci/build.yaml | 379 ++++++++++++++++++++++++++++++++++++ automation/gitlab-ci/test.yaml | 34 ++++ 3 files changed, 416 insertions(+), 414 deletions(-) create mode 100644 automation/gitlab-ci/build.yaml create mode 100644 automation/gitlab-ci/test.yaml
.gitlab-ci.yml +3 -414
@@ -2,417 +2,6 @@ stages: - build - test -.build-tmpl: &build - stage: build - image: registry.gitlab.com/xen-project/xen/${CONTAINER} - script: - - ./automation/scripts/build 2>&1 | tee build.log - artifacts: - paths: - - binaries/ - - xen-config - - '*.log' - when: always - except: - - master - - smoke - - /^coverity-tested\/.*/ - - /^stable-.*/ - -.gcc-tmpl: - variabes: &gcc - CC: gcc - CXX: g++ - -.clang-tmpl: - variables: &clang - CC: clang - CXX: clang++ - clang: y - -.x86-64-build-tmpl: - <<: *build - variables: - XEN_TARGET_ARCH: x86_64 - tags: - - x86_64 - -.x86-64-build: - extends: .x86-64-build-tmpl - variables: - debug: n - -.x86-64-build-debug: - extends: .x86-64-build-tmpl - variables: - debug: y - -.x86-32-build-tmpl: - <<: *build - variables: - XEN_TARGET_ARCH: x86_32 - tags: - - x86_32 - -.x86-32-build: - extends: .x86-32-build-tmpl - variables: - debug: n - -.x86-32-build-debug: - extends: .x86-32-build-tmpl - variables: - debug: y - -.gcc-x86-64-build: - extends: .x86-64-build - variables: - <<: *gcc - -.gcc-x86-64-build-debug: - extends: .x86-64-build-debug - variables: - <<: *gcc - -.gcc-x86-32-build: - extends: .x86-32-build - variables: - <<: *gcc - -.gcc-x86-32-build-debug: - extends: .x86-32-build-debug - variables: - <<: *gcc - -.clang-x86-64-build: - extends: .x86-64-build - variables: - <<: *clang - -.clang-x86-64-build-debug: - extends: .x86-64-build-debug - variables: - <<: *clang - -.clang-x86-32-build: - extends: .x86-32-build - variables: - <<: *clang - -.clang-x86-32-build-debug: - extends: .x86-32-build-debug - variables: - <<: *clang - -.arm64-build-tmpl: - <<: *build - variables: - XEN_TARGET_ARCH: arm64 - tags: - - arm64 - -.arm64-build: - extends: .arm64-build-tmpl - variables: - debug: n - -.arm64-build-debug: - extends: .arm64-build-tmpl - variables: - debug: y - -.gcc-arm64-build: - extends: .arm64-build - variables: - <<: *gcc - -.gcc-arm64-build-debug: - extends: .arm64-build-debug - variables: - <<: *gcc - -# Jobs below this line - -centos-7-2-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: centos:7.2 - -centos-7-2-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: centos:7.2 - -centos-7-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: centos:7 - -centos-7-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: centos:7 - -debian-jessie-clang: - extends: .clang-x86-64-build - variables: - CONTAINER: debian:jessie - -debian-jessie-clang-debug: - extends: .clang-x86-64-build-debug - variables: - CONTAINER: debian:jessie - -debian-jessie-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: debian:jessie - -debian-jessie-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: debian:jessie - -debian-jessie-32-clang: - extends: .clang-x86-32-build - variables: - CONTAINER: debian:jessie-i386 - -debian-jessie-32-clang-debug: - extends: .clang-x86-32-build-debug - variables: - CONTAINER: debian:jessie-i386 - -debian-jessie-32-gcc: - extends: .gcc-x86-32-build - variables: - CONTAINER: debian:jessie-i386 - -debian-jessie-32-gcc-debug: - extends: .gcc-x86-32-build-debug - variables: - CONTAINER: debian:jessie-i386 - -debian-stretch-clang: - extends: .clang-x86-64-build - variables: - CONTAINER: debian:stretch - -debian-stretch-clang-debug: - extends: .clang-x86-64-build-debug - variables: - CONTAINER: debian:stretch - -debian-stretch-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: debian:stretch - -debian-stretch-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: debian:stretch - -debian-stretch-32-clang: - extends: .clang-x86-32-build - variables: - CONTAINER: debian:stretch-i386 - -debian-stretch-32-clang-debug: - extends: .clang-x86-32-build-debug - variables: - CONTAINER: debian:stretch-i386 - -debian-stretch-32-gcc: - extends: .gcc-x86-32-build - variables: - CONTAINER: debian:stretch-i386 - -debian-stretch-32-gcc-debug: - extends: .gcc-x86-32-build-debug - variables: - CONTAINER: debian:stretch-i386 - -debian-unstable-clang: - extends: .clang-x86-64-build - variables: - CONTAINER: debian:unstable - -debian-unstable-clang-debug: - extends: .clang-x86-64-build-debug - variables: - CONTAINER: debian:unstable - -debian-unstable-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: debian:unstable - -debian-unstable-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: debian:unstable - -debian-unstable-gcc-randconfig: - extends: .gcc-x86-64-build - variables: - CONTAINER: debian:unstable - RANDCONFIG: y - -debian-unstable-gcc-debug-randconfig: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: debian:unstable - RANDCONFIG: y - -debian-unstable-32-clang: - extends: .clang-x86-32-build - variables: - CONTAINER: debian:unstable-i386 - -debian-unstable-32-clang-debug: - extends: .clang-x86-32-build-debug - variables: - CONTAINER: debian:unstable-i386 - -debian-unstable-32-gcc: - extends: .gcc-x86-32-build - variables: - CONTAINER: debian:unstable-i386 - -debian-unstable-32-gcc-debug: - extends: .gcc-x86-32-build-debug - variables: - CONTAINER: debian:unstable-i386 - -# Ubuntu Trusty's Clang is 3.4 while Xen requires 3.5 - -ubuntu-trusty-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: ubuntu:trusty - -ubuntu-trusty-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: ubuntu:trusty - -ubuntu-xenial-clang: - extends: .clang-x86-64-build - variables: - CONTAINER: ubuntu:xenial - -ubuntu-xenial-clang-debug: - extends: .clang-x86-64-build-debug - variables: - CONTAINER: ubuntu:xenial - -ubuntu-xenial-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: ubuntu:xenial - -ubuntu-xenial-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: ubuntu:xenial - -ubuntu-bionic-clang: - extends: .clang-x86-64-build - variables: - CONTAINER: ubuntu:bionic - -ubuntu-bionic-clang-debug: - extends: .clang-x86-64-build-debug - variables: - CONTAINER: ubuntu:bionic - -ubuntu-bionic-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: ubuntu:bionic - -ubuntu-bionic-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: ubuntu:bionic - -opensuse-leap-clang: - extends: .clang-x86-64-build - variables: - CONTAINER: suse:opensuse-leap - -opensuse-leap-clang-debug: - extends: .clang-x86-64-build-debug - variables: - CONTAINER: suse:opensuse-leap - -opensuse-leap-gcc: - extends: .gcc-x86-64-build - variables: - CONTAINER: suse:opensuse-leap - -opensuse-leap-gcc-debug: - extends: .gcc-x86-64-build-debug - variables: - CONTAINER: suse:opensuse-leap - -# Arm builds - -debian-unstable-gcc-arm64: - extends: .gcc-arm64-build - variables: - CONTAINER: debian:unstable-arm64v8 - -debian-unstable-gcc-debug-arm64: - extends: .gcc-arm64-build-debug - variables: - CONTAINER: debian:unstable-arm64v8 - -debian-unstable-gcc-arm64-randconfig: - extends: .gcc-arm64-build - variables: - CONTAINER: debian:unstable-arm64v8 - RANDCONFIG: y - -debian-unstable-gcc-debug-arm64-randconfig: - extends: .gcc-arm64-build-debug - variables: - CONTAINER: debian:unstable-arm64v8 - RANDCONFIG: y - - -# Test jobs -qemu-smoke-x86-64-gcc: - stage: test - image: registry.gitlab.com/xen-project/xen/${CONTAINER} - variables: - CONTAINER: debian:stretch - script: - - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log - artifacts: - paths: - - smoke.serial - - '*.log' - when: always - dependencies: - - debian-stretch-gcc-debug - tags: - - x86_64 - -qemu-smoke-x86-64-clang: - stage: test - image: registry.gitlab.com/xen-project/xen/${CONTAINER} - variables: - CONTAINER: debian:stretch - script: - - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log - artifacts: - paths: - - smoke.serial - - '*.log' - when: always - dependencies: - - debian-unstable-clang-debug - tags: - - x86_64 +include: + - 'automation/gitlab-ci/build.yaml' + - 'automation/gitlab-ci/test.yaml'
automation/gitlab-ci/build.yaml new file +379 -0
379 lines not on this page · raw message
automation/gitlab-ci/test.yaml new file +34 -0
@@ -0,0 +1,34 @@ +# Test jobs +qemu-smoke-x86-64-gcc: + stage: test + image: registry.gitlab.com/xen-project/xen/${CONTAINER} + variables: + CONTAINER: debian:stretch + script: + - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log + artifacts: + paths: + - smoke.serial + - '*.log' + when: always + dependencies: + - debian-stretch-gcc-debug + tags: + - x86_64 + +qemu-smoke-x86-64-clang: + stage: test + image: registry.gitlab.com/xen-project/xen/${CONTAINER} + variables: + CONTAINER: debian:stretch + script: + - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log + artifacts: + paths: + - smoke.serial + - '*.log' + when: always + dependencies: + - debian-unstable-clang-debug + tags: + - x86_64
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 2/2] automation: break .gitlab-yaml into smaller files
Quoted 4 lines · Wei Liu
Break out files for build jobs and test jobs. Keep the top level
.gitlab-ci.yamlsmall.Signed-off-by Wei Liu <[email protected]>
Good idea with this split.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Doug, ping?
Quoted 4 lines · Wei Liu
Wei Liu (2):
automation: add a qemu smoke test for clang build
automation: break .gitlab-yaml into smaller files
Quoted 10 lines
.gitlab-ci.yml | 400 +--------------------------------------- automation/gitlab-ci/build.yaml | 379 +++++++++++++++++++++++++++++++++++++ automation/gitlab-ci/test.yaml | 34 ++++ 3 files changed, 416 insertions(+), 397 deletions(-) create mode 100644 automation/gitlab-ci/build.yaml create mode 100644 automation/gitlab-ci/test.yamlSignature · 1 line
2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel