From patchwork Tue Dec 11 14:34:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Maximets X-Patchwork-Id: 1011119 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="bgCORd30"; 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 43DjBc20qmz9s1c for ; Wed, 12 Dec 2018 01:34:32 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 6A094CCC; Tue, 11 Dec 2018 14:34:29 +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 D8F83C84 for ; Tue, 11 Dec 2018 14:34:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B0663735 for ; Tue, 11 Dec 2018 14:34:27 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181211143425euoutp023d591644984330822bc487a6a38c5e38~vTepJLPpt0931409314euoutp02t for ; Tue, 11 Dec 2018 14:34:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181211143425euoutp023d591644984330822bc487a6a38c5e38~vTepJLPpt0931409314euoutp02t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1544538865; bh=3TKiWBNsi6C9c7hp6NwBtJeDK9XEJHTNQuon08lk0eg=; h=From:To:Cc:Subject:Date:References:From; b=bgCORd30YUhdzF+z7VehqrYXUeAg38J4yZQqVImKKmALARN65Yeq5OsFKatb03ddJ uCZyXzbvtDrNMxv+1UDujkZJOq7PVhH1Hj7ARCaM+xh/oO7OYZ9eO1huSFI6pparf/ jq+j3PUI/rqmbwaWlV6wb8sc0LBU3ZWXjhmfjJjM= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181211143425eucas1p2f9a86312d9ac17fc0a9aac4007db10d7~vTeojYFC40421204212eucas1p2t; Tue, 11 Dec 2018 14:34:25 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 83.64.04806.0FACF0C5; Tue, 11 Dec 2018 14:34:24 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181211143424eucas1p2f01fe29fef874279000b4fefab1a15ac~vTennvyBF0421204212eucas1p2s; Tue, 11 Dec 2018 14:34:24 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181211143423eusmtrp293c7955682189726cb57c76c7e8a651b~vTenZRrjQ0630606306eusmtrp2D; Tue, 11 Dec 2018 14:34:23 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-7c-5c0fcaf043f4 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 91.FF.04284.FEACF0C5; Tue, 11 Dec 2018 14:34:23 +0000 (GMT) Received: from imaximets.rnd.samsung.ru (unknown [106.109.129.180]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181211143423eusmtip24e791728cb976b96625c6bc89d19b7da~vTem6UBNA2276922769eusmtip2S; Tue, 11 Dec 2018 14:34:23 +0000 (GMT) From: Ilya Maximets To: ovs-dev@openvswitch.org, Ben Pfaff , Aaron Conole Date: Tue, 11 Dec 2018 17:34:17 +0300 Message-Id: <20181211143417.21234-1-i.maximets@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFIsWRmVeSWpSXmKPExsWy7djPc7ofTvHHGNz4aGTx680Ddosla66w Wbya3MBocaX9J7vFxodnWS3mfnrO6MDmsXjPSyaPZzf/M3o8v9bD4vF+31U2j74tqxgDWKO4 bFJSczLLUov07RK4Mu5Nvs9Y8Ea8YlH/CsYGxptCXYwcHBICJhIT9wt3MXJxCAmsYJT4eusR K4TzhVHi96dLjBDOZ0aJK682M3UxcoJ17F02kR0isZxR4vauPWwQzg9GidnTH7GBVLEJ6Eic Wn2EEcQWEYiU6Pj7BqybWaBC4tDP9WC2sICTxKUnl8FqWARUJXr/tDKD2LwC1hJNLxoZIbbJ S6zecIAZZIGEwBk2iXdXf7BCJFwktjbuZIGwhSVeHd/CDmHLSPzfOR/q1HqJ+y0vGSGaOxgl ph/6B5Wwl9jy+hw7KASYBTQl1u/Shwg7Ssw7so8ZEjB8EjfeCkLczCcxadt0qDCvREebEES1 isTvg8uZIWwpiZvvPkNd4CGxf/YrMFtIIFbi2OyNTBMY5WYh7FrAyLiKUTy1tDg3PbXYOC+1 XK84Mbe4NC9dLzk/dxMjMAWc/nf86w7GfX+SDjEKcDAq8fAqtPDFCLEmlhVX5h5ilOBgVhLh 1U3jjRHiTUmsrEotyo8vKs1JLT7EKM3BoiTOW83w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279000b4fefab1a15ac X-Msg-Generator: CA X-RootMTR: 20181211143424eucas1p2f01fe29fef874279000b4fefab1a15ac X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181211143424eucas1p2f01fe29fef874279000b4fefab1a15ac 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 , Alin Gabriel Serdean Subject: [ovs-dev] [RFC] cirrus: Add Cirrus CI integration for FreeBSD build 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 CirrusCI [1] is free for open-sorce projects and provides similar to TravisCI interfaces. One significant difference is ability to run tasks on FreeBSD instances. This patch adds simple configuration file to test OVS build on two FreeBSD releases with gcc and clang. Unit tests are commented out because they are broken for now. To enable the automated checks Cirrus CI application from GitHub Marketplace should be installed. See details in Quick Start guide [2]. [1] https://cirrus-ci.org [2] https://cirrus-ci.org/guide/quick-start/ Signed-off-by: Ilya Maximets --- This could be useful to test FreeBSD build automatically to early detect issues. CirrusCI looks suitable for that purpose and it's the only public CI system that I managed to find that supports FreeBSD images. Sending as RFC to start discussion. Few more differentiation points with Travis. Cirrus allows to configure number of CPUs and the amount of required memory. It also supports Linux, OSX and Windows containers. So, maybe, if we'll like it, we could drop Travis and AppVeyor and use single CI system for all the tests. I'm not advertising and not trying to convince to replace our current CI systems. I found CirrusCI just few days ago by a mail [3] in qemu-devel list. I just think that it's the only option for now to test BSD builds with public CI. And it worked fine for me with below configuration. Thoughts ? As a note: I just spotted that TravisCI adds windows support. Maybe we could use it in the future for windows builds. [3] https://lists.nongnu.org/archive/html/qemu-devel/2018-12/msg00935.html .cirrus.yml | 30 ++++++++++++++++++++++++++++++ Makefile.am | 1 + 2 files changed, 31 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 000000000..4902fd370 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,30 @@ +freebsd_build_task: + + freebsd_instance: + matrix: + image: freebsd-12-0-release-amd64 + image: freebsd-11-2-release-amd64 + cpu: 4 + memory: 8G + + env: + matrix: + COMPILER: gcc + COMPILER: clang + + prepare_script: + - pkg install -y automake libtool gmake gcc wget + python py27-six py27-sphinx + + configure_script: + - ./boot.sh + - ./configure CC=$COMPILER MAKE=gmake OVS_CFLAGS='-Wall' --enable-Werror + || { cat config.log; exit 1; } + + build_script: + - gmake -j8 + +# TODO(i.maximets): Uncomment the test suite execution when it is fixed. +# check_script: +# - gmake -j8 check TESTSUITEFLAGS=-j8 RECHECK=yes +# || { cat ./tests/testsuite.log; exit 1; } diff --git a/Makefile.am b/Makefile.am index 64725654c..8408509c9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -76,6 +76,7 @@ EXTRA_DIST = \ MAINTAINERS.rst \ README.rst \ NOTICE \ + .cirrus.yml \ .travis.yml \ .travis/linux-build.sh \ .travis/linux-prepare.sh \