Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4333644imu; Fri, 30 Nov 2018 15:22:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xk4RgRpzKhrDCmx6tg9IQQQOPTpzzT+KBwCxmQ8C6G2VUeTfg5WBAAMC5ncBW9Sm4pvxBp X-Received: by 2002:a63:e055:: with SMTP id n21mr6425497pgj.397.1543620152187; Fri, 30 Nov 2018 15:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543620152; cv=none; d=google.com; s=arc-20160816; b=oY3eR0j5HbV93KLV5a8US6jvuQvKGY2OrSRJL1nj5Ujp5/innkiM2JqNNlt/Lk2ddc KfPuIeSg2MBxtkBctwhcknKTBFWC3q+913yofwV6pipXq1zkLA0DTSLPEdFjYFvZQkcg FhiKkI5TSTCfwRC4eay/J/HlfYVaM78WwjTTSPi3vRJCCtmwwiwTMFJDKQPWxLs8Cc+W tsyJybwfyPmkzShGN/1hmw6WobKRDRn5PD8C04hjjNHMrI1s5f3t3uh+K4o+BEXlqSYH Rp5O22CRbVDrZHg9oMyFokfrpyd5m/cQsJKf3seIV2tVvhdY4n9XJpXD8BMBMvqgVqsb 2VTA== 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=7OLitVEz1SetRn2MjAv+vIotpvPLKp4TtCihf1dsLlI=; b=bylatTUr0mlHxT9OLUwy+F34jtcTSCjR+v12EDngCh0ArodIGcbRjhvQRqKzPRWDhQ Da7pezOnEIVgp1UwnyGqbfr+XfmY6/zhLYlDnk1wAl6v/y24lai+RtNnIewg4NIrMVO7 MHmjS9KtyZFusoOzIqfQ8xEXLZxnCLXdgwa5LsRqr3tLtZ2wNttMEUwYXvhX4seh0Wr9 BsPp3lTX5kS7oM7cVZ7gYvYBH4coqT8lNaaiv6X7wzlw1GSiOktT9lX5unFhssZu2qc2 SnS+8086eL533AEHYoupVoqpzqSZMKEy7gCB91o97Fp/i6rM6Uleis396ehVDQiqg2US sODQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Gccugtgp; 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 e69si6472478pfg.137.2018.11.30.15.22.17; Fri, 30 Nov 2018 15:22:32 -0800 (PST) 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=Gccugtgp; 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 S1726651AbeLAKbX (ORCPT + 99 others); Sat, 1 Dec 2018 05:31:23 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:37335 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725749AbeLAKbX (ORCPT ); Sat, 1 Dec 2018 05:31:23 -0500 Received: by mail-io1-f67.google.com with SMTP id f14so429330iol.4 for ; Fri, 30 Nov 2018 15:20:27 -0800 (PST) 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=7OLitVEz1SetRn2MjAv+vIotpvPLKp4TtCihf1dsLlI=; b=Gccugtgpz0FXwW/8n/LVhHTFcPZFeRumcTxbzjN/ujeeaKvmH0pXPbuQsGdatcpn+O 694wRbXMyrQdscYqTSzIe2A/N0Pd/iCNa079/FyasdcqkDbvX/3d9bIYN0TfTgCcTPO/ gpwzr4FoP1w+9Fye2dyRMqjRd3aCKu+2DD+c0= 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=7OLitVEz1SetRn2MjAv+vIotpvPLKp4TtCihf1dsLlI=; b=sZUiGjfUxyDhR/BYFMWS+vBq9wQUaA847OQXt0tOKEOsmPVV/v4EPLHdrhjgALuK7u GC0LXLBe/JgB82tC0RJWcolgk6+g3jCRdqbaoCE+vavlwQHOJmRfAVGM4fKEHKTOQtYL fXZjw5DLqEW+iU6uD1gmAdzAVA7WMtMsDdEDiKOKcXoUzo+i3IWvwwCWHE69xwZGAqPI fHedkLna8BdopqQCJlyW8Ge8hRt/FyCD5i9/7oXV0atl3URV7g3NefQqw8/05IoTX3t1 +uilQn5qweSjP9RSUnxW5/PTHG9xFCa07scbViSnML1Md0QBCVpzlvKYxCJqQsy00V7Z uKiw== X-Gm-Message-State: AA+aEWbpC+kg/7636MLiNcK379rhnAE/Z6zaGDtj3Do98bptLSpQrVIv +p3lgVE0N/z6wl0AyxiGHUL0nHJARX3FDcf4Dv96TQ== X-Received: by 2002:a6b:4001:: with SMTP id k1mr6892599ioa.34.1543620027279; Fri, 30 Nov 2018 15:20:27 -0800 (PST) MIME-Version: 1.0 References: <20181130203232.5743-1-robh@kernel.org> In-Reply-To: From: Daniel Vetter Date: Sat, 1 Dec 2018 00:20:15 +0100 Message-ID: Subject: Re: [RFC PATCH] of: Add a GitLab CI config file for unittests To: Rob Herring Cc: dri-devel , devicetree@vger.kernel.org, Linux Kernel Mailing List , Frank Rowand 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 Fri, Nov 30, 2018 at 11:22 PM Rob Herring wrote: > > On Fri, Nov 30, 2018 at 2:53 PM Daniel Vetter wrote: > > > > On Fri, Nov 30, 2018 at 9:32 PM Rob Herring wrote: > > > > > > This adds a GitLab CI config file running the DT unittest in a usermode > > > Linux build. The corresponding CI job can be found here: > > > > > > https://gitlab.com/robherring/linux-dt-unittest/pipelines > > > > > > This CI job can be duplicated by others by creating a kernel repo on a > > > GitLab instance and configuring GitLab CI to use > > > drivers/of/.gitlab-ci.yml config file. > > > > > > Cc: Frank Rowand > > > Cc: Daniel Vetter > > > Signed-off-by: Rob Herring > > > > Adding dri-devel. > > > > > --- > > > drivers/of/.gitlab-ci.yml | 18 ++++++++++++++++++ > > > 1 file changed, 18 insertions(+) > > > create mode 100644 drivers/of/.gitlab-ci.yml > > > > > > diff --git a/drivers/of/.gitlab-ci.yml b/drivers/of/.gitlab-ci.yml > > > new file mode 100644 > > > index 000000000000..44a4824f5c33 > > > --- /dev/null > > > +++ b/drivers/of/.gitlab-ci.yml > > > @@ -0,0 +1,18 @@ > > > +# SPDX-License-Identifier: GPL-2.0+ > > > + > > > +image: registry.gitlab.com/robherring/docker-images/ubuntu-kernel-build > > > > I think it's better to include the docker recipe too. One because > > shipping pre-built dockers is a license nightmare, second because > > better hackability. For a full on example see: > > > > https://gitlab.freedesktop.org/drm/igt-gpu-tools/blob/master/.gitlab-ci.yml > > Humm, but in the end you are still publishing the docker images either > way. It's just a difference of publishing across projects and whether > it's 2 jobs or 1 job with 2 stages. Yeah, but it comes with sources for rebuilding the image :-) > I do tend to prefer the Travis-CI simplicity of just listing packages > to install. It seems like the same could be done with docker and some > magic on the server side. At least for the simple case of 'install > this list of packages'. Yeah, gitlab is a bunch more explicit, and you need to do your caching of the setup you want yourself. > > For the kernel I guess the question is where we should put all the > > docker files. There's going to be some need for subsystem specific > > tooling (e.g. we want something that has igt installed eventually for > > anything drm), so maybe just keeping them in subsystem directories is > > best. Was at least my plan with drivers/gpu. > > My plan (to the extent I have one) was to put the common parts into > the docker image and leave the small job specific things in the job > setup. Then I can use the same docker image across jobs. Maybe that's > a pointless goal in the docker world. We do that too. The different docker images we have is for different testing (new/old distros, and the cross build chain in userspace conflicts, so need separate docker images for that). Aside from those cases where we need different images because they're incompatible, we do reuse them. For the kernel there's much less of these userspace problems, so one image should be good enough for all jobs. -Daniel > My dockerfile is simple enough, I could probably just create it within > the .gitlab-ci.yml. > > Rob -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch