Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1366092imm; Thu, 4 Oct 2018 12:23:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV62tzBi7k1a0Pho3KVVz8lfseij2/rdNpRup6UVqgxKfhO+mL3neb3S2XqpvGkosv+q7L+W/ X-Received: by 2002:a63:c54a:: with SMTP id g10-v6mr6828945pgd.201.1538681034181; Thu, 04 Oct 2018 12:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538681034; cv=none; d=google.com; s=arc-20160816; b=iB0NLSwbExdQPF2jOO//N7nu8Dy7tL8vAxTlYeNTmbVqtu67fvaBk8Ga5lMiVWtdSY MxSlohnwCUIMjpCtUHSUjku/faH8jbdcMel1Z7O1PTGHYPYK7gj8wii1d1AccbfaJAzL 1+amqltfWBuOiddcJx0Nv39FF0e6vFX29j02iHvN+7TW+oG0/RRKmm3k8tmLW0rr8WiL lYin66EKUehXiIZW3TCI8uk37E0mHEK8nit+iMw4OMjbyzWG66Kebhuwqrc2O0z4NVS7 SBF6laY+ybynZU06u+WYIqcXHQTEWI/MFNye66XrOoPL9ANKnT7HIyWkmEsvkvSgVOOY sNLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Nlrq1wY4htdJ96iZaAUaPDo1c6DZ3dmNnCNeqWYsfUM=; b=TccsSZBQPLbr60ac6mg5pPtaczxOCPTc45WHB+jkzMD7kAfc3ECJHqiw0GIbyHyYXI EsIUVH42bD17396rQTRoHKkjfiYKBeqYU6ihhxTy4LNhYEuWmjcW0au8bw7TIRiCUIxD UCEKcxvyX4K4hGn2NCIV+1H4q3YLGIuGbD0D/DswUXp1vp08Wi6m29lC6pBgdHTNv35k pM/VXVzXUW/sUKJSRvwGWJ6zUsT6O3R2Xz9lH99viDtRdxOQjJUcJ3e9y8oEuLCRCElM zOvv1qTNFlkExXl4TeNSymyMsg4tP+i+q2b0xDvo+4yPtXGnfAWksPEZa9510WXdq/vk houg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=cgUd8G3+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u68-v6si6312085pfa.28.2018.10.04.12.23.38; Thu, 04 Oct 2018 12:23:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=cgUd8G3+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727625AbeJECRv (ORCPT + 99 others); Thu, 4 Oct 2018 22:17:51 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:44847 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727436AbeJECRv (ORCPT ); Thu, 4 Oct 2018 22:17:51 -0400 Received: by mail-io1-f65.google.com with SMTP id x26-v6so8819086iog.11 for ; Thu, 04 Oct 2018 12:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Nlrq1wY4htdJ96iZaAUaPDo1c6DZ3dmNnCNeqWYsfUM=; b=cgUd8G3+LJdJn4VMXwSazsKQUJ0Ul+QsIVk3Bhu0/TrtFEjq9gehcqoaMmw06Ghc08 GH3IvOZ/ifhiaZzijxWMpIqlYSbG0ZOw7kISfYT78dX+TYuYahJcNPyvU9N8DZONcNVP FcKl01NFl1MwuseDkI3FDZB8CnwrPkFIn/4xY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Nlrq1wY4htdJ96iZaAUaPDo1c6DZ3dmNnCNeqWYsfUM=; b=LsH7GYpBeB3B7tR1wbAbw4W2mwU2IVmn3cEOSZa+iDxgDHLLrWvG527jorvgdN/GVv UhMKtNRDip2gKvlNXgDb7eVJcLkVPVzWq7lIQw9RMFuQwGuZB10GIiIsRoH6nT7K/OhO BX/DnReNHoGNAYur5C6Z3W6MYm325P98LoeAs+OvJFhBDnaSnqcjhrvD4TnqbUkwQnKa JX/UXsbOSahoZyROgdKEgCxb7/caCNXSELPj8hQEXzEV8kQZWkWVTRZvYEPjL1nHjMgJ ElKd4niHv8mME4EQLQhIAq4trwNwOor5VjWfWq1d1N4XpGuaH2dQz3cDAu2Xx9Ojvw1a PrDw== X-Gm-Message-State: ABuFfogwTWY9BlM7zIr0LcM/Hu/Vj3g9mfb+gWmKv+AvxRoBR4/BiVR/ YBBQ80vhOOrAPuaJXu9NE714O3OBspZWEe9zfPu1rg== X-Received: by 2002:a6b:f40a:: with SMTP id i10-v6mr5539437iog.278.1538680991037; Thu, 04 Oct 2018 12:23:11 -0700 (PDT) MIME-Version: 1.0 References: <20181003222715.28667-1-robh@kernel.org> In-Reply-To: From: Daniel Vetter Date: Thu, 4 Oct 2018 21:22:59 +0200 Message-ID: Subject: Re: [PATCH] Add a skeleton Travis-CI config To: Rob Herring Cc: Linux Kernel Mailing List , Greg KH Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 4, 2018 at 9:11 PM Rob Herring wrote: > > On Thu, Oct 4, 2018 at 3:33 AM Daniel Vetter wrote: > > > > On Thu, Oct 4, 2018 at 12:27 AM Rob Herring wrote: > > > > > > It's convenient to use Travis-CI for doing kernel builds. Doing so > > > requires a github repo, Travis-CI enabled for that repo, and a > > > .travis.yml file in the repository. This commit addresses the last part. > > > Each repository branch must have a .travis.yml file in order to run > > > Travis-CI jobs. > > > > > > Obviously, we can't create a single configuration that works for > > > everyone as every developer will want to run different configs and > > > build targets. Therefore, this only adds a skeleton .travis.yml file. > > > With this a user can either set $CONFIG and $TARGET in their Travis-CI > > > environment or customized builds can be triggered remotely. > > > > > > Here's an example of setting up a matrix build of different > > > architectures: > > > > > > body='{ > > > "request": { > > > "branch": "master", > > > "config" : { > > > "env": { > > > "global": "CONFIG=defconfig TARGET=all", > > > "matrix": [ > > > "ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-", > > > "ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-", > > > "ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-" > > > ] > > > } > > > } > > > } > > > }' > > > > > > curl -s -X POST \ > > > -H "Content-Type: application/json" \ > > > -H "Accept: application/json" \ > > > -H "Travis-API-Version: 3" \ > > > -H "Authorization: token $TOKEN" \ > > > -d "$body" \ > > > https://api.travis-ci.org/repo/robherring%2Flinux/requests > > > > > > Additionally, it is possible to override 'scripts' or any other part of > > > the config as well. > > > > > > Signed-off-by: Rob Herring > > > --- > > > I'm wondering if there's other interest in this. If so, please chime in. > > > > > > Maybe I should be looking at Gitlab CI instead, but Travis I know > > > already and Gitlab just seems to be the shiniest new thing. In any case, > > > both could coexist. > > > > So I haven't looked in-depth at the travis+github combo, but on gitlab > > you can set the path for your .gitlab-ci.yaml file per-repo. Which > > means each maintainer group can have their own thing, without > > trampling on each another's feet. > > Yes, that's a nice feature. > > > I guess if gitlab+travis can't do that then a dispatcher like you > > propose here would be good. Personally I have reservations with gitlab > > You mean github here? Yup. > > though, since it's proprietary infrastructure not under out control. > > That's a big reason for why fd.o opted for gitlab, and the handful of > > graphics projects that tried out a gitlab+travis workflow all plan to > > move back to gitlab.fd.o. Gitlab definitely works - there's enough > > projects out there to prove that :-) But in the kernel we've already > > seen how that can go all wrong with bitkeeper. > > The difference here is this is all auxiliary tools on top of the main > workflow, not a core tool everyone relies on. > > It would be nice if there was some standardization of CI config files > then moving CI providers would be trivial. Ime moving CI providers is pretty far from trivial. E.g. gitlab uses docker images for its builders, and it's very much recommended you build a specific docker images so your builds don't first have to install a bunch of packages and set up a few things. travis otoh knows much more about what you need, and does all the build env caching on the server side automatically. Really not all that easy to flip between the two. Plus then all the hand-rolled CI setups running on private maintainer machines. The other bit is that if your CI isnt' part of your workflow, then it won't work. The "continuous" part is really the key. Anyway, definitely don't want to stop this effort, just figured I'll drop my take on this. I'm pretty sure I'll submit a drivers/gpu/.gitlab-ci.yaml as soon as we've moved to gitlab.fd.o :-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch