Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp492352lqh; Thu, 28 Mar 2024 07:54:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXbiZp1/hrZuFnp3I+0v/zvPukeKsyav+pOcDpXoiq6etoJIiSn0+s1TeXrz2IOK8X8/rK3ps/2Rz89gsObX1bdlhQFM+Hyb+7ZuSb+A== X-Google-Smtp-Source: AGHT+IFFCnCz+OXWAaNuzRTPlJSDfFVaE3PQZ1MrSiWogRWWPtY+P5UP976xwshIN6qM0u2jFCYT X-Received: by 2002:a05:6808:2396:b0:3c3:dccd:6d0d with SMTP id bp22-20020a056808239600b003c3dccd6d0dmr3702302oib.37.1711637651648; Thu, 28 Mar 2024 07:54:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711637651; cv=pass; d=google.com; s=arc-20160816; b=HRjlfnom6BNYHYxBAHBX1BsxQ2WjAKESWZTDQiuQCd+pTkx/meTJ6c7XIOUOEZZvQQ ihHsFjByZwCiyON/uF01QFGrT4+QqTIodg9XmZi816+7jH+EKcjDCwGenMn0cW6jUeKs rfGpP5FCfp+R8OkrhbWs91OwNRUm8q6rNrTgWs3w2+2WlR8WnPVzPSdqcX0wHpLm1W2h LCgBDZS0AIrfgQ7BHR7nWFIgqLAYRLgSmVeyBclq7PH9btNBglMJf6k9OnvwuWDyrKM3 CeH1TbUd7DTQX0tRQc96jgoaTIUwY5af6f/iDmgNjy/m3FmHQp+QvW7rfTbWVJKiUBvj HqAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=QZC6LpnNH1Pnr/7Ya6DiyzYe2avakdySerWwdr2kSjE=; fh=IEoyuqeT44k+UKrPxEVhgXcsV5hIBjCd07M8edTlnHY=; b=Y54Eq1VGUReUNvOow0MQhKPwe5YhP0vb6NRkdOr9H9rYYDMiT+ahoDDnKiFWVe3Vad l3gTbQmhsO10pLTIlVJ5271LvqE1bpsZixoZJJ93iQ/VBpHPYzwMXHs8BACu35Nm9812 KHDFJBJTYRdxEKx4MrlsP3/bLgs5rMUSHzaKelhhXpdlRsEuiaY6esdYRd/VIfII1xy+ 6Ams+RgMWyAk7+cxB6Oxx3yoipXI2h+Zv1FcUw+VDYhfauC57cfZNSb9q/HB9BboM9mL 9N6wjw5eooLZH7Aw8WYKOdKFudtC1+3uuXvSSCqpfYQf6GoAFT4/Ece/6T5GcI8mqCs/ GzLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ClbNzDoI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-123114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f1-20020a0ccc81000000b0069682033e4fsi1510926qvl.342.2024.03.28.07.54.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 07:54:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ClbNzDoI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-123114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5F95B1C2474A for ; Thu, 28 Mar 2024 14:54:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C5EC12EBF3; Thu, 28 Mar 2024 14:52:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ClbNzDoI" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0CA780BF8 for ; Thu, 28 Mar 2024 14:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637572; cv=none; b=INDg4sEjGumIPdF+xjpzXi9+QCwmbSseK+EdrIR0C/zDHYfyNXMIjIkWebJRLrna581QcXPaoS1yLi7IwiknKADvYh9UHoIuR9vPmr90xQD9u8MbEpZYHm+lnOfV5vpUPqXqInuFuyOzatkKEr3RfwGr+XDHD7BDzJPJPWFgeIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637572; c=relaxed/simple; bh=wsMISnY+P939Tjf/dWnmziDkvmrKZMMPjOTpFgDCV80=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type:Content-Disposition; b=VIFbqpGh4uLwO9jCBIbfb2FaRMRTJ2jxtFrrZECPwZvVVMUSXUSXv+Hi38SYNo8ltDH2qL6y8F3Gc2Ir/muO85e73zENoNL0cqLd34a/kNuBWfHWvwf+tRcV91jyOufksGF156+73eEe4/OQ+EOlhm5ah8pkSbqwDeAAcMUJHWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ClbNzDoI; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711637569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QZC6LpnNH1Pnr/7Ya6DiyzYe2avakdySerWwdr2kSjE=; b=ClbNzDoI+74zOlC6SGzcv+G6x8qFYRm+CiBUzf4B2gZFo3TKERCl11xElDRzsW0rEujT90 lrdvCQ2FmpDIrvgskfKhB6mCBH8OWZpqey608JKV9nCfApCvJ2+wNyobijxwcNpoUFNei1 bzWwyjDgO2GzQvAyeUvniUgGM+gOedc= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-266-hmG1-Ra4N_OxAr-8dJqrQA-1; Thu, 28 Mar 2024 10:52:48 -0400 X-MC-Unique: hmG1-Ra4N_OxAr-8dJqrQA-1 Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-6986eb55527so7034896d6.1 for ; Thu, 28 Mar 2024 07:52:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711637567; x=1712242367; h=content-transfer-encoding:content-disposition:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QZC6LpnNH1Pnr/7Ya6DiyzYe2avakdySerWwdr2kSjE=; b=X+RYnp68jfTMrixR5MnRuhq9qP0YJ/nhM7ELgpH/1yQN/onMzJ8+NcZvWX4dVofB3M ARtr6zbASiH7fGO2egbupVb4lTODTivMpESiX5rLt1ZwWpgisAzN48Brl/0glERMcNeQ BR3FV2X6V7QLuQIHEZarCfylZDGubOcjP/SXqtRFUmK7MXs6uoJVvFARMZNjkTH5CYbg errWVABtLwvgqJ2ezZsXwO5HtXSbYR39WPCnNDVD6/GAYlf5JRFgXbkdlSYcOQu6xL1Q 5FvrQqMV25GLnXopfEoY81LgL9wevU2SoBAJCy2JnjdKwwUZjbx/kco+Mm8/Mv6jP+6Q jl9w== X-Forwarded-Encrypted: i=1; AJvYcCV8QO2K2kxInf2uWFS0EB6mOCZOaskiQUON/rglP9q3V8ABThzaPE4oyHVyeFN/y92DvGUjsr+lw0qjvwlpvrt5o+SfLxj9NpwfkPdm X-Gm-Message-State: AOJu0YxDxaHSk8kYaxtAGWxIbzY/3Db8YFU6goSGpXvyUVlaC1EPhgil 9bQH/5SVjhoAa0BFW0Li/LKtsWrBzsFjd/sKLhDuV5MLPyjmSMZxKGYFugSiPiMgl7p5PlLiUm+ 2w2QYv8SJKXnuPc+gPq9Q+PG4P4ZMxNZDub+aMprNQGXxBTQOBprp8bG88hghdQ== X-Received: by 2002:a0c:f28d:0:b0:696:17cf:d35b with SMTP id k13-20020a0cf28d000000b0069617cfd35bmr2767504qvl.2.1711637567613; Thu, 28 Mar 2024 07:52:47 -0700 (PDT) X-Received: by 2002:a0c:f28d:0:b0:696:17cf:d35b with SMTP id k13-20020a0cf28d000000b0069617cfd35bmr2767477qvl.2.1711637567168; Thu, 28 Mar 2024 07:52:47 -0700 (PDT) Received: from LeoBras.redhat.com ([2804:1b3:a801:d7ed:4b57:3fcd:d5e6:a613]) by smtp.gmail.com with ESMTPSA id mf13-20020a0562145d8d00b006903af52cbfsm707817qvb.40.2024.03.28.07.52.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 07:52:46 -0700 (PDT) From: Leonardo Bras To: Helen Koike Cc: Leonardo Bras , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v1 1/1] gitlab-ci: Let project define runner using environment variables Date: Thu, 28 Mar 2024 11:52:40 -0300 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: <20240327013055.139494-2-leobras@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Mar 28, 2024 at 10:17:00AM -0300, Helen Koike wrote: > Hi Leonardo, > > Thanks for the patch. > > On 26/03/2024 22:30, Leonardo Bras wrote: > > Currently it's not possible to select which runner will handle a pipeline > > without changing the codebase. > > > > Add CI_TAGS environment variable, which can be used to select a runner > > either from a commit message, or directly from Gitlab interface. > > > > Also add Documentation for this variable. > > > > Signed-off-by: Leonardo Bras > > --- > > > > This patch goes on top on a previous patchset sent by Helen: > > https://lore.kernel.org/all/20240228225527.1052240-1-helen.koike@collabora.com/ > > > > With this patch I could run CI with gitlab.com runners, by setting > > CI_TAGS=saas-linux-medium-amd64 > > > > The result of this pipeline can be seen in: > > https://gitlab.com/linux-kernel/linux/-/pipelines/1228999646 > > > > Documentation/ci/gitlab-ci/gitlab-ci.rst | 5 +++++ > > ci/gitlab-ci/yml/gitlab-ci.yml | 2 ++ > > 2 files changed, 7 insertions(+) > > > > diff --git a/Documentation/ci/gitlab-ci/gitlab-ci.rst b/Documentation/ci/gitlab-ci/gitlab-ci.rst > > index 4f7ef03cca95..18360da835bd 100644 > > --- a/Documentation/ci/gitlab-ci/gitlab-ci.rst > > +++ b/Documentation/ci/gitlab-ci/gitlab-ci.rst > > @@ -304,20 +304,25 @@ Description of Each Variable > > **KCI_CHECKPATCH_OPTIONS** > > Used in `checkpatch.pl "$KCI_CHECKPATCH_OPTIONS"` (see checkpatch > > documentation). It is commonly used with the --ignore flag to suppress > > specific warnings generated by checkpatch.pl. It can also be defined in the > > commit message, since it is evaluated in run time. > > **KCI_PATCH_SERIES_SIZE** > > Used to define the size of the patch series, see `job: checkpatch` section > > above. It is evaluated in run time, and can be set in the commit message. > > +**CI_TAGS** > > I would just s/CI/KCI , I'm using KCI_prefix for those that are defined by > us, since gitlab already uses CI_ prefix. I was aware of CI_ vs KCI_ prefix, but for some reason at the time I decided that since this was about setting the gitlab tags, and not something internal to Kernel CI, it would make more sense to use the CI_ prefix. But I have no strong opinion on this, so if you think it's better to call it KCI_TAGS, let's do that instead. > > We will also need a way to specify tags per job at some point > KCI_TAGS_$JOB_NAME or something, but this can be added later. Yeah, agree. I wish we could specify tags with running requirements for each task in some way, and let the gitlab instance to pick the better runner. > > Acked-by: Helen Koike > > I'll add on top of my tree for now, so we can prepare v2 with this change. > > Thanks > Helen Thank you! Leo > > > + Used to help choose which runner will deal with the current pipeline. > > + If using Gitlab.com runners, set saas-linux-medium-amd64 or a better runner > > + so there is enough resources to build & commit the base image. > > + > > .. _triggering-pipelines-from-command-line: > > Triggering Pipelines from Command Line > > -------------------------------------- > > Pipelines can be triggered from the command line with custom variables using the > > `GitLab CLI tool `_. > > Example: > > diff --git a/ci/gitlab-ci/yml/gitlab-ci.yml b/ci/gitlab-ci/yml/gitlab-ci.yml > > index 57b9c0290471..359b7715e3ab 100644 > > --- a/ci/gitlab-ci/yml/gitlab-ci.yml > > +++ b/ci/gitlab-ci/yml/gitlab-ci.yml > > @@ -33,20 +33,22 @@ workflow: > > - if: $FORCE_CI == 'true' > > variables: > > FDO_UPSTREAM_REPO: helen.fornazier/linux # The repo where to look for cached images > > # ccache builds in gitlab-runner to speed up builds > > SMATCH_DB_DIR: /smatch/smatch_data > > # exit code of bash script on `script` will be the exit code of the job > > FF_USE_NEW_BASH_EVAL_STRATEGY: "true" > > default: > > + tags: > > + - $CI_TAGS > > artifacts: > > paths: > > - artifacts/ > > when: always > > include: > > - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/16bc29078de5e0a067ff84a1a199a3760d3b3811/templates/ci-fairy.yml' > > - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/16bc29078de5e0a067ff84a1a199a3760d3b3811/templates/debian.yml' > > - ci/gitlab-ci/yml/kernel-combinations.yml >