From patchwork Fri Jul 28 13:56:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9868937 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0C666037D for ; Fri, 28 Jul 2017 14:18:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA25B286A2 for ; Fri, 28 Jul 2017 14:18:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AED1D2884F; Fri, 28 Jul 2017 14:18:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5CA18286A2 for ; Fri, 28 Jul 2017 14:18:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db641-0003aJ-CZ; Fri, 28 Jul 2017 14:16:25 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db63z-0003Zo-RL for xen-devel@lists.xenproject.org; Fri, 28 Jul 2017 14:16:23 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id 11/EE-27137-7374B795; Fri, 28 Jul 2017 14:16:23 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsXitHSDva6Ze3W kweSLUhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bMmRsYC6ZLVrSs6GNuYDwr1MXIySEh4C/x 7vMeZhCbTcBAYsX0q4xdjBwcIgIqErf3GoCEmQUiJF7cWMUGYgsLJEtMf3qVHcRmEVCV6Pk8i wXE5hWwl9gxczoLxEh5iYm90xhBbE6g+N9/38F6hQTsJC79eswEYatJ3Fi4DKpXUOLkzCcsEL skJA6+eME8gZF3FpLULCSpBYxMqxg1ilOLylKLdI3M9JKKMtMzSnITM3N0DQ3M9HJTi4sT01N zEpOK9ZLzczcxAkOHAQh2MJ5ZEHiIUZKDSUmU96ZZdaQQX1J+SmVGYnFGfFFpTmrxIUYZDg4l CV5mN6CcYFFqempFWmYOMIhh0hIcPEoivPEgad7igsTc4sx0iNQpRl2OVxP+f2MSYsnLz0uVE uc1BikSACnKKM2DGwGLqEuMslLCvIxARwnxFKQW5WaWoMq/YhTnYFQS5i0HmcKTmVcCt+kV0B FMQEdMbKoEOaIkESEl1cC4tG7Lis7o/f8nhHUt2jTDR+mW38vNb4OmX/CXzdJY9yXqi4W59v3 s/5+kT2yXCBG8Yr/tTMUBrvkP7WfOTdOeP2+to2y1QPb02Gu/WDZuV6zMDI0/ER5yb8OEOVub dmgFGGhdZwtTifjCdUI5VHsbm7bO5vbJOz5660qaPupbNTfur5T+qmQ3JZbijERDLeai4kQAD dAu6qMCAAA= X-Env-Sender: prvs=3753e7f57=anthony.perard@citrix.com X-Msg-Ref: server-7.tower-21.messagelabs.com!1501251380!75496406!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 21959 invoked from network); 28 Jul 2017 14:16:22 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-7.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2017 14:16:22 -0000 X-IronPort-AV: E=Sophos;i="5.40,425,1496102400"; d="scan'208";a="441753602" From: Anthony PERARD To: Date: Fri, 28 Jul 2017 14:56:22 +0100 Message-ID: <20170728135625.30263-22-anthony.perard@citrix.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170728135625.30263-1-anthony.perard@citrix.com> References: <20170728135625.30263-1-anthony.perard@citrix.com> MIME-Version: 1.0 Cc: Anthony PERARD , Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH v14 21/24] make-flight: Prepare devstack jobs on "openstack*" branches only X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch create new jobs *-devstack that will only be added to the branches openstack*, which will be introduced in the next patch. So no overall functional change. Here is a list of jobs that a openstack* branch will have: build-amd64 build-amd64-libvirt build-amd64-pvops build-amd64-xsm build-arm64 build-arm64-libvirt build-arm64-pvops build-arm64-xsm build-armhf build-armhf-libvirt build-armhf-pvops build-armhf-xsm test-amd64-amd64-devstack test-amd64-amd64-devstack-xsm test-arm64-arm64-devstack test-arm64-arm64-devstack-xsm test-armhf-armhf-devstack test-armhf-armhf-devstack-xsm Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- Notes: This patch will be altered by patch "openstack tests: Don't run them on arm*" to avoid testing on ARM for now, because there is not enough capacity. Changes in V14: - patch renamed from "Create a flight to test OpenStack with xen-unstable and libvirt" - better patch description Changes in V13: - split changes in ap-* and cr-* into a different patch - rename os_* to openstack_* - rename target_cmd_subunit to target_subunit_cmd make-flight | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/make-flight b/make-flight index db124fe..e03aacc 100755 --- a/make-flight +++ b/make-flight @@ -183,6 +183,16 @@ job_create_test_filter_callback () { *) return 1;; esac ;; + openstack*) + case "$job" in + *-devstack) ;; + *-devstack-xsm) ;; + *) return 1;; + esac + case $dom0arch in + i386) return 1 ;; + esac + ;; *) case "$job" in *-qemuu-*) @@ -216,7 +226,13 @@ arch_branch_filter_callback () { ovmf) return 1;; esac ;; - i386|amd64) + i386) + case "$branch" in + linux-arm-xen) return 1;; + openstack*) return 1;; + esac + ;; + amd64) case "$branch" in linux-arm-xen) return 1;; esac @@ -680,6 +696,33 @@ do_examine_one () { all_hostflags=$most_hostflags } +do_openstack_tests () { + local xsms=$(xenbranch_xsm_variants) + local openstack_trees=(cinder devstack glance keystone neutron nova + requirements tempest) + + case "$branch" in + openstack*) ;; + *) return ;; + esac + + local openstack_runvars="" + for tree in "${openstack_trees[@]}"; do + tree="openstack_$tree" + eval "openstack_runvars+=\" tree_$tree=\${TREE_${tree^^}}\"" + eval "openstack_runvars+=\" revision_$tree=\${REVISION_${tree^^}}\"" + done + + for xsm in $xsms ; do + job_create_test test-$xenarch$kern-$dom0arch-devstack \ + test-devstack libvirt $xenarch $dom0arch \ + $openstack_runvars \ + dom0_mem=4000 \ + enable_xsm=$xsm \ + all_hostflags=$most_hostflags + done +} + test_matrix_do_one () { do_pv_debian_tests @@ -700,6 +743,7 @@ test_matrix_do_one () { do_rtds_tests do_credit2_tests + do_openstack_tests do_examine_one