From patchwork Wed Oct 30 21:51:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 1186990 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.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=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="caDy3tGw"; 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 473MdM4BF1z9sPT for ; Thu, 31 Oct 2019 08:52:54 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 9E0D3E70; Wed, 30 Oct 2019 21:52:51 +0000 (UTC) X-Original-To: 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 3B513E67 for ; Wed, 30 Oct 2019 21:52:51 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 40A998A0 for ; Wed, 30 Oct 2019 21:52:50 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id 193so1300408pfc.13 for ; Wed, 30 Oct 2019 14:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IR5NrLioCvU3am7GB+8phcpEM+XHXmMe/eC0809mjHs=; b=caDy3tGwqcPz1Xr/lmM1lB4FZQ3HwFjar8UpgMTC5RXLW2Tozy/RL9TSkt/JybJ3oj TBgq230NjrooTt5Ch54pZzyrTUdlC4HH8PDDgxz2ldQ5u7cbJkmRlU5mM+A+IpB99xbS Jzo+9vdKtagYD4DvqpYWb4lKnwa9uhPqvI9B+9kzTupIpAWx/uhYtU7RZ8wfeYFj8rVy OCMIUjjwdAC+tyH1deE/0fBanhS6LSngNtoDvIETWXsla1lzPpS5lki0K0mEWzeZGua6 YXqBGUQpkJ+wOELv/7LRw4NIql65GC7jbmGR/eVbpGkoobx/nBGEhE78U6/2nhgg/oPj l1jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IR5NrLioCvU3am7GB+8phcpEM+XHXmMe/eC0809mjHs=; b=m/be+SD7RiNbBHNm33MEFhi0ox8BHAftLvhCcOveo+P1YqvKGqXYtNszpkb6fPB0hP 3tuHQw5bxMbRg1H3q/4Y+bKsYuURgQu/Qq7ntNYphYeBvG/AYAiEWesqoIJWyV1SjIqa tD7CA8VCL3xrjjzPg+EWxTlnTxECtdixtrXfsCsHRpIETDEK1Ud/zNtg8JDELJheFA4q 3FJ955PS2CQ5fgGWXp1bkennpw9EF6u+8GuXTlxOA03FqLQxmZi61nGelwsNkmR/G52P IdzdPvEa9G+j2wTrj/vRKp3VSfEaCv5QhrFnbPurNVh2LzWArC16tlD7ZXNRM7C7FfxA zjiA== X-Gm-Message-State: APjAAAU5r9BmaOu7aKztEJe3D9sk61eXMzXpvMUVpELrIdyDCV/9IFVL h4BsPDOI5HVhvmieN4Yy1EhQqCDgiBg= X-Google-Smtp-Source: APXvYqzvh6tPPzlN/riK3kgYpmgjYorLQvLUaFKVUjq9t9nVAP/ZbmQnGf4iLdifrDfy2sT8RisZQA== X-Received: by 2002:a17:90a:1050:: with SMTP id y16mr1840846pjd.59.1572472369252; Wed, 30 Oct 2019 14:52:49 -0700 (PDT) Received: from sc9-mailhost1.vmware.com ([66.170.99.95]) by smtp.gmail.com with ESMTPSA id f12sm808399pfn.152.2019.10.30.14.52.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Oct 2019 14:52:48 -0700 (PDT) From: William Tu To: dev@openvswitch.org Date: Wed, 30 Oct 2019 14:51:52 -0700 Message-Id: <1572472312-21836-1-git-send-email-u9012063@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: i.maximets@ovn.org Subject: [ovs-dev] [PATCH RFC] cirrus: Link to Google cloud for make check-afxdp. 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 This yml file links to my google compute engine account and create a VM with ubuntu19.10 (with kernel 5.3) so testing 'make check-afxdp' can happen. I'm looking for free GCP account for doing this, or any other suggestions are welcome. To use it, first follow the steps here to link cirrus to gcp. https://cirrus-ci.org/guide/supported-computing-services/#google-cloud Then replaces the gcp_credentials in this patch with your own. Example results: https://cirrus-ci.com/task/4880415994675200 Signed-off-by: William Tu --- .cirrus-afxdp.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ Makefile.am | 1 + 2 files changed, 44 insertions(+) create mode 100644 .cirrus-afxdp.yml diff --git a/.cirrus-afxdp.yml b/.cirrus-afxdp.yml new file mode 100644 index 000000000000..85403e3b95f7 --- /dev/null +++ b/.cirrus-afxdp.yml @@ -0,0 +1,43 @@ +gcp_credentials: ENCRYPTED[0d68e33902f5a9ced6118c84fc6bf50178366b0806ea033cf622099dbb33e7e2c8353900d0f099b31faa3f53e25bf21b] + +gce_instance: + image_project: ubuntu-os-cloud + image_name: ubuntu-1910-eoan-v20191022 + zone: us-west2-a + cpu: 2 + memory: 4GB + disk: 20 + +task: + env: + DEPENDENCIES: bc gcc-multilib libssl-dev llvm-dev + libnuma-dev python3-sphinx libelf-dev selinux-policy-dev + libunbound-dev libunwind-dev python3-pip libelf-dev + autoconf automake libtool + libcap-ng-dev libssl-dev python3-dev + build-essential + COMPILER: gcc + + prepare_script: + - cat /etc/lsb-release + - sudo apt-get update + - sudo apt-get install -y ${DEPENDENCIES} + - sudo apt-get install -y linux-source-5.3.0 + - cd /usr/src/linux-source-5.3.0; sudo bunzip2 linux-source-5.3.0.tar.bz2;sudo tar xvf linux-source-5.3.0.tar + - cd /usr/src/linux-source-5.3.0/linux-source-5.3.0/; sudo make headers_install INSTALL_HDR_PATH=/usr + - cd /usr/src/linux-source-5.3.0/linux-source-5.3.0/tools/lib/bpf; sudo make install; sudo make install_headers; + - sudo touch /etc/ld.so.conf.d/libbpf.conf; sudo chmod a+w /etc/ld.so.conf.d/libbpf.conf; + - sudo echo "/usr/local/lib64/" >> /etc/ld.so.conf.d/libbpf.conf; sudo ldconfig + - ldconfig -p | grep libbpf + - pip3 install --disable-pip-version-check --user six flake8 hacking + - pip3 install --user --upgrade docutils + + configure_script: + - ./boot.sh + - ./configure CC=${COMPILER} CFLAGS="-g -O2 -Wall" --enable-Werror --enable-afxdp + + build_script: + - make -j2 + + check_script: + - sudo make check-afxdp diff --git a/Makefile.am b/Makefile.am index b279303d186c..fea028fee5de 100644 --- a/Makefile.am +++ b/Makefile.am @@ -77,6 +77,7 @@ EXTRA_DIST = \ README.rst \ NOTICE \ .cirrus.yml \ + .cirrus-afxdp.yml \ .travis.yml \ .travis/linux-build.sh \ .travis/linux-prepare.sh \