From patchwork Wed Nov 25 14:57:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Maximets X-Patchwork-Id: 1406103 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Ch3t40D6kz9s0b for ; Thu, 26 Nov 2020 01:58:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DCC4286DE4; Wed, 25 Nov 2020 14:58:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GhzfvQdJSHpo; Wed, 25 Nov 2020 14:58:14 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 521D586DD2; Wed, 25 Nov 2020 14:58:14 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3B2CFC0891; Wed, 25 Nov 2020 14:58:14 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5ADEFC0052 for ; Wed, 25 Nov 2020 14:58:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 49B4986DC9 for ; Wed, 25 Nov 2020 14:58:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11-vbHHG9fxZ for ; Wed, 25 Nov 2020 14:58:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 4036E86DC2 for ; Wed, 25 Nov 2020 14:58:12 +0000 (UTC) X-Originating-IP: 78.45.89.65 Received: from im-t490s.redhat.com (ip-78-45-89-65.net.upcbroadband.cz [78.45.89.65]) (Authenticated sender: i.maximets@ovn.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id BE8A6C0009; Wed, 25 Nov 2020 14:58:08 +0000 (UTC) From: Ilya Maximets To: ovs-dev@openvswitch.org, Ben Pfaff , Aaron Conole Date: Wed, 25 Nov 2020 15:57:51 +0100 Message-Id: <20201125145753.534447-2-i.maximets@ovn.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20201125145753.534447-1-i.maximets@ovn.org> References: <20201125145753.534447-1-i.maximets@ovn.org> MIME-Version: 1.0 Cc: Simon Horman , Ilya Maximets , David Marchand Subject: [ovs-dev] [PATCH v2 1/3] ci: Don't use 'native' machine for DPDK cache. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" It's possible that actual HW where CI is running is slightly different between jobs. That makes all unit tests to fail with cached DPDK builds due to 'Illegal instruction' crashes. Changing machine type to 'default' to generate binaries as generic as possible and avoid this kind of issues. Fixes: 7654a3ed0b38 ("travis: Cache DPDK build.") Signed-off-by: Ilya Maximets Acked-by: Kevin Traynor --- .travis/linux-build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh index 60d8931f3..16102ac94 100755 --- a/.travis/linux-build.sh +++ b/.travis/linux-build.sh @@ -135,6 +135,10 @@ function install_dpdk() sed -i '/CONFIG_RTE_EAL_IGB_UIO=y/s/=y/=n/' build/.config sed -i '/CONFIG_RTE_KNI_KMOD=y/s/=y/=n/' build/.config + # Switching to 'default' machine to make dpdk-dir cache usable on different + # CPUs. We can't be sure that all CI machines are exactly same. + sed -i '/CONFIG_RTE_MACHINE="native"/s/="native"/="default"/' build/.config + make -j4 CC=gcc EXTRA_CFLAGS='-fPIC' EXTRA_OPTS="$EXTRA_OPTS --with-dpdk=$(pwd)/build" echo "Installed DPDK source in $(pwd)"