Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4286512imu; Fri, 30 Nov 2018 14:23:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/U56VoL23HsaTWE93ktICJzAIc+VSo5yN5k8bh8MiQR5ZXEkw2rMclExKVimc7X9TV90i9+ X-Received: by 2002:a63:4456:: with SMTP id t22mr6451220pgk.0.1543616604670; Fri, 30 Nov 2018 14:23:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543616604; cv=none; d=google.com; s=arc-20160816; b=krsUSToQhy+q6TZdjqLCcGWPYN9fpqbooVbS0gIXurskrau51puHPjx/dPLk/Cg2YW p38mjeP3u4CeLJsPuQa/Am8glHHzRDE81Dk3Rz8+v2w5hPrxLftBZfaXqyAH9J7IdCJm pJ6YuVCrvIHiAjpxX6SV/ZmKucJavqlWpZR+sKK19+zO3HxlCo/oXYMp+B7Eqk54nVgx ZO35oeZ9t25+4XtPY6SmAk3iCajip2pfgzf1YrX94SEf1CAaDeoFsGdEcTmSwRlpcuLF xT0aqhjLaqNpZX5I0LVFTkDfhYAuHnBMLG/yBQwZc+hks3gtXeGi4hYLvsP6bllhzlFP 4kZQ== 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=tXoqG4Rgs6IPUH9/NRlFm1GAdPApx9CY8bWJhDCmoDE=; b=SqAjCrPINPZT4ut1K+T7//SQErihH6GJEJoTnI/NG5XDtWEPwnqsn6WSayBU44V1B+ fqPtHXx3zz5P7LNhE0edsVSBK24lGex+vrBzmTQKaVoWt0z6vSJoGBSdkP+ZAPNsF5Gv DhqYUskON0o+tgXAxCrOIOK22/2n7+gUG8fL65O8VjNBpoj8RRDJ9HV1r9QWcBHaUoWv kEwclXMTxxUrhWhtrAWAH/ymXa18XDXmSPo1HGksjOOfo3/SaXGR4JsJaUfrzlIAiJEN 2ZIXAbHlY8RRyEdA7ugMiKuJS6o5aIlf824weWN6aR4WZWM9+0Ff9acFpV8cMRwpAboB 9pdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mUQGknUa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si6490834plp.130.2018.11.30.14.23.10; Fri, 30 Nov 2018 14:23:24 -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=@kernel.org header.s=default header.b=mUQGknUa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726966AbeLAJdR (ORCPT + 99 others); Sat, 1 Dec 2018 04:33:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:56986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbeLAJdR (ORCPT ); Sat, 1 Dec 2018 04:33:17 -0500 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC4442146F; Fri, 30 Nov 2018 22:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543616550; bh=k1xNQffQWPandFrKviicPOU9k6KxJ1GoFqxgq3ggYzA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mUQGknUa4g+fcp70Y9faAaLHBP/ykizuy+KQ4buJufF3Zj6Nrf+F1A9XpGp1gLzFR 1J5sDoX9am2/eK9oTCSku6mniXKwB3SHbLrflVBmGNQ3JxJOzHfNc7a7PvoIwpmwLY 9PeyMwCtNiruR8NvAs8Ymc2taZ3ldbxq2IjDcsWw= Received: by mail-qt1-f172.google.com with SMTP id n32so7665474qte.11; Fri, 30 Nov 2018 14:22:29 -0800 (PST) X-Gm-Message-State: AA+aEWY4SP/It5Bsu/xKKs85gyaMnI46feZlnMVXh5+nxYWbr3pMENhL S+1mImubthouP0reU/LO0DLuXmKBOueqZklivw== X-Received: by 2002:ac8:2d2b:: with SMTP id n40mr6957373qta.38.1543616549098; Fri, 30 Nov 2018 14:22:29 -0800 (PST) MIME-Version: 1.0 References: <20181130203232.5743-1-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Fri, 30 Nov 2018 16:22:17 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] of: Add a GitLab CI config file for unittests To: Daniel Vetter Cc: dri-devel , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , 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 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. 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'. > 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. My dockerfile is simple enough, I could probably just create it within the .gitlab-ci.yml. Rob