From patchwork Tue May 21 12:46:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Maximets X-Patchwork-Id: 1102739 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.b="RK9+Kcdr"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 457b9m1Z09z9sBV for ; Tue, 21 May 2019 22:46:35 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 32C3CBA0; Tue, 21 May 2019 12:46:34 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id C8E8DB4B for ; Tue, 21 May 2019 12:46:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 0D30827B for ; Tue, 21 May 2019 12:46:31 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190521124630euoutp01f2ee5762c4ae163b2e8691b64b9c97f9~gs3X3h8l42395823958euoutp01X for ; Tue, 21 May 2019 12:46:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190521124630euoutp01f2ee5762c4ae163b2e8691b64b9c97f9~gs3X3h8l42395823958euoutp01X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1558442790; bh=2a2GgvpdnvxOnHAZMaLeGYrVVz3qgsu/4WtxNWnpFdo=; h=From:To:Cc:Subject:Date:References:From; b=RK9+KcdrgubDY5FUmDJ+kJE5/uyHfeIQyu2mzr4WtiL8VV5pJjFOkMCHOW2UzkRXU LynyN0P1WpTkIDma88xh+PAC00nKcTAFbyb82FZnEYwatjBLMdMfwI1liRwh6UliO0 sJJt1USNnSUQPhyDsEOw2Mtt/r9AiLTgrHfzXxLc= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190521124629eucas1p1214c779a2180c8921207933aa21da5f8~gs3XfHgcV1254912549eucas1p1h; Tue, 21 May 2019 12:46:29 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id DD.86.04298.523F3EC5; Tue, 21 May 2019 13:46:29 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190521124628eucas1p1584b323f85cd36bc19744d2383f52a16~gs3WnbV_n0532305323eucas1p1m; Tue, 21 May 2019 12:46:28 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190521124628eusmtrp252d465de6e66dd94dcb0086547a02536~gs3WX6xQY2585025850eusmtrp2g; Tue, 21 May 2019 12:46:28 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-1a-5ce3f325bc07 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B3.B4.04140.423F3EC5; Tue, 21 May 2019 13:46:28 +0100 (BST) Received: from imaximets.rnd.samsung.ru (unknown [106.109.129.180]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190521124628eusmtip1dacb144c065e255ad5340c485aaac326~gs3V5F06q2736827368eusmtip16; Tue, 21 May 2019 12:46:28 +0000 (GMT) From: Ilya Maximets To: ovs-dev@openvswitch.org, Ben Pfaff Date: Tue, 21 May 2019 15:46:22 +0300 Message-Id: <20190521124622.11628-1-i.maximets@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsWy7djP87qqnx/HGCw/pmLx680DdotXkxsY LV61HWS0uNL+k91i7qfnjBat52QtDp49yujA7rFz1l12j2c3/zN6PL/Ww+Lxft9VNo++LasY A1ijuGxSUnMyy1KL9O0SuDIal/9mLvgoXXF9cSdLA+MasS5GTg4JAROJmz8ms4LYQgIrGCUa r6h1MXIB2V8YJZrONzFDOJ8ZJZq3nmCE6djz6TMbRGI5o8TCJQtYINp/MEpsuZEAYrMJ6Eic Wn0ErEEEqGHZ1G9gDcwCexglVrV+Amrg4BAWcJG4+iAVpIZFQFXi75XJYHN4BawlPtxfxQqx TF5i9YYDYFdICNxmk3j35CkTRMJF4tbkLcwQtrDEq+Nb2CFsGYn/O+dD1dRL3G95yQjR3MEo Mf3QP6iEvcSW1+fYQY5gFtCUWL9LHyLsKLFjwhFmkLCEAJ/EjbeCIGFmIHPStulQYV6JjjYh iGoVid8Hl0NdICVx891nqAs8JHZ+fgRWLiQQK3HnVOIERrlZCKsWMDKuYhRPLS3OTU8tNsxL LdcrTswtLs1L10vOz93ECEwDp/8d/7SD8eulpEOMAhyMSjy8Fg8fxwixJpYVV+YeYpTgYFYS 4T196lGMEG9KYmVValF+fFFpTmrxIUZpDhYlcd5qhgfRQgLpiSWp2ampBalFMFkmDk6pBkYF bZseT7l1h0/WFh/+evFehJzKm8dSluo9UiuP+Zyo2Wwszvtgpq//iZ/up/5ujjqvM8H2s8OK c7dvLeoJKxeNP/3BVm/Gn4e9O+Y5WZprzP3Y9c6zJWFvy8YYXzN2FuWkHINn5oFrzGWLAkwb n91/vvC03ZuvblUpt9Z9j+JPmLZk/aP8VAYlluKMREMt5qLiRAARbdmr/wIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t/xu7oqnx/HGFz7rWnx680DdotXkxsY LV61HWS0uNL+k91i7qfnjBat52QtDp49yujA7rFz1l12j2c3/zN6PL/Ww+Lxft9VNo++LasY A1ij9GyK8ktLUhUy8otLbJWiDS2M9AwtLfSMTCz1DI3NY62MTJX07WxSUnMyy1KL9O0S9DIa l/9mLvgoXXF9cSdLA+MasS5GTg4JAROJPZ8+s3UxcnEICSxllHjT94kFIiEl8ePXBVYIW1ji z7UuqKJvjBKz3qxmA0mwCehInFp9hLGLkYNDRMBMYss/S5AaZoEDjBLvHp1nAokLC7hIXH2Q ClLOIqAq8ffKZLD5vALWEh/ur4KaLy+xesMB5gmMPAsYGVYxiqSWFuem5xYb6RUn5haX5qXr JefnbmIEhuC2Yz+37GDsehd8iFGAg1GJh/fBvccxQqyJZcWVuYcYJTiYlUR4T596FCPEm5JY WZValB9fVJqTWnyI0RRo+URmKdHkfGB85JXEG5oamltYGpobmxubWSiJ83YIHIwREkhPLEnN Tk0tSC2C6WPi4JRqYNRP2RfB8DT10PW/+Tfn2vZNuRa4/lnN9bYLS6P4XjwXO7OSV9Nso+3a VZf9+HJbbl8scLD0ct7iV+LGqGypFbp89/JXtvaqD1remb4K3bz227LaZpUesW3b30anOzZP 8f3+1YEhJPSIZ8g2I/W0Zeppt4VFq+8cXb/85BbrTZViCt8Oza7eHqbEUpyRaKjFXFScCACa 394SVwIAAA== X-CMS-MailID: 20190521124628eucas1p1584b323f85cd36bc19744d2383f52a16 X-Msg-Generator: CA X-RootMTR: 20190521124628eucas1p1584b323f85cd36bc19744d2383f52a16 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190521124628eucas1p1584b323f85cd36bc19744d2383f52a16 References: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Ilya Maximets Subject: [ovs-dev] [PATCH v2] travis: Test with latest stable kernel releases. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Instead of managing kernel minor versions manually we could always test with the most recent stable release of the desired branch. With this patch applied Travis will always check with the most recent kernels, so we'll be notified about changes in upstream kernels that breaks the build of our kernel module. However, this will also break Travis checks on patches that doesn't touch the kernel parts until we fix the module. Signed-off-by: Ilya Maximets Tested-by: Yifeng Sun Reviewed-by: Yifeng Sun Acked-by: Ben Pfaff --- Right now we have a broken build with recent longterm 4.9.177. So, this patch, should not be applied before the build with 4.9.177 fixed: https://patchwork.ozlabs.org/patch/1102480/ Version 2: * Rebased on current master. * No functional changes so I kept tags from v1. .travis.yml | 32 ++++++++++++++++---------------- .travis/linux-build.sh | 18 +++++++++++++++--- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 765692f7a..6621fb535 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,24 +28,24 @@ before_script: export PATH=$PATH:$HOME/bin env: - OPTS="--disable-ssl" - - TESTSUITE=1 KERNEL=3.16.54 + - TESTSUITE=1 KERNEL=3.16 - TESTSUITE=1 OPTS="--enable-shared" - BUILD_ENV="-m32" OPTS="--disable-ssl" - - KERNEL=3.16.65 DPDK=1 OPTS="--enable-shared" - - KERNEL=3.16.65 TESTSUITE=1 DPDK=1 - - KERNEL=3.16.65 DPDK_SHARED=1 - - KERNEL=3.16.65 DPDK_SHARED=1 OPTS="--enable-shared" - - KERNEL=4.20.17 - - KERNEL=4.19.37 - - KERNEL=4.18.20 - - KERNEL=4.17.19 - - KERNEL=4.16.18 - - KERNEL=4.15.18 - - KERNEL=4.14.114 - - KERNEL=4.9.171 - - KERNEL=4.4.179 - - KERNEL=3.19.8 - - KERNEL=3.16.65 + - KERNEL=3.16 DPDK=1 OPTS="--enable-shared" + - KERNEL=3.16 TESTSUITE=1 DPDK=1 + - KERNEL=3.16 DPDK_SHARED=1 + - KERNEL=3.16 DPDK_SHARED=1 OPTS="--enable-shared" + - KERNEL=4.20 + - KERNEL=4.19 + - KERNEL=4.18 + - KERNEL=4.17 + - KERNEL=4.16 + - KERNEL=4.15 + - KERNEL=4.14 + - KERNEL=4.9 + - KERNEL=4.4 + - KERNEL=3.19 + - KERNEL=3.16 - TESTSUITE=1 LIBS=-ljemalloc matrix: diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh index 9ca728d10..9c2d97803 100755 --- a/.travis/linux-build.sh +++ b/.travis/linux-build.sh @@ -19,11 +19,23 @@ function install_kernel() PREFIX="v2.6/longterm/v2.6.32" fi - url="https://cdn.kernel.org/pub/linux/kernel/${PREFIX}/linux-${1}.tar.xz" + base_url="https://cdn.kernel.org/pub/linux/kernel/${PREFIX}" + # Download page with list of all available kernel versions. + wget ${base_url}/ + # Uncompress in case server returned gzipped page. + (file index* | grep ASCII) || (mv index* index.new.gz && gunzip index*) + # Get version of the latest stable release. + hi_ver=$(echo ${1} | sed 's/\./\\\./') + lo_ver=$(cat ./index* | grep -P -o "${hi_ver}\.[0-9]+" | \ + sed 's/.*\..*\.\(.*\)/\1/' | sort -h | tail -1) + version="${1}.${lo_ver}" + + url="${base_url}/linux-${version}.tar.xz" # Download kernel sources. Try direct link on CDN failure. wget ${url} || wget ${url} || wget ${url/cdn/www} - tar xvf linux-${1}.tar.xz > /dev/null - cd linux-${1} + + tar xvf linux-${version}.tar.xz > /dev/null + cd linux-${version} make allmodconfig # Cannot use CONFIG_KCOV: -fsanitize-coverage=trace-pc is not supported by compiler