From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 E76BA192D9D for ; Mon, 27 Jan 2025 18:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738004343; cv=none; b=qS4k4QbrbG9mQ5NUdLTTq9WO6wH8h02eoVPmRqpAb+LD6K24wJ9R628Em0SrvozIKIcUf6fH2s1Smzkrr1OuiZG5xcQGOLtqNjUFH81+c8PbIEFOGzifni0gBBUQAvXXVVlJqNLlepjw/PPw9LQ3OkkWeUwzBSes9DMrpiROMAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738004343; c=relaxed/simple; bh=nkr/PLl5Q0ZEQyx5U8g+dnvAT8DRsCwqiQxbaWUVua0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K5xwMhmHB7g6yvGnKWHe/jkLqrmi8raD5gfsPijB5g6AehL+3uKqIG6dsTvKESczHhQX7FCD4WT4Kcg8w96W91Jo3Q6Nbm03cGG8nGl7zZdqlnT5z5Mq6SDSeyIEcDKUXcawyyLMpxzGxuU2Tc/+6s3YMqSGHNYejSt2u94CnLo= 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=AfpAJ//f; arc=none smtp.client-ip=170.10.129.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AfpAJ//f" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1738004340; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kwypsRR4V/FC6/+fxlt0fS6h6Fxn6ww5c5v9OMMFuhY=; b=AfpAJ//fo5x6r1ev7Bt4HQpOwLJ+JMCznArt7XSoAT8vTohywdJ1L8UzWdxlgB5C5YKUKI A3Zsh0wE28BUWIMTbW9uZY1r6cqy12QMp1/tUrZ12f7N/iM+u9I8p8DwOkpvp4WY566k1n U8ipRoWDo9XuIiisgeYxtPPkB2V811U= Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-693-oSlcwRuqPYiFxQyx7T8UYQ-1; Mon, 27 Jan 2025 13:58:59 -0500 X-MC-Unique: oSlcwRuqPYiFxQyx7T8UYQ-1 X-Mimecast-MFC-AGG-ID: oSlcwRuqPYiFxQyx7T8UYQ Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2163dc0f689so140980155ad.1 for ; Mon, 27 Jan 2025 10:58:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738004338; x=1738609138; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kwypsRR4V/FC6/+fxlt0fS6h6Fxn6ww5c5v9OMMFuhY=; b=F4qkfOkU3Nm7o2aGEU9OlM/6i5yR0R1hS3YFUApw7r7/RHWYMLpsB5hhaSwZTqGVL+ HVegOU+4q6R4qTHHDO1RutlPMCe0dKbGQWgg5eNuEsWugOr3fWqV9uAnQTQqW2uu+VuM BVcNDSmJPclzzdvPXwCDM4l4yjwtuKzuZhbevKjL4k7Sb27zsmWx41xzGfszVorm/C1N Ph/Wf9/zBSt6cfAMHbTAytAQ/CyywUSnMsI9WzhtBGAHrx8tOf8A2qwRL1mDXuIP1yWU W5lNhLmTcLXk9xSg5Fi1yNRIYUjO467k1WZfk/FmaxYp3H8m7sf1CNexg8160Sepngb6 xr1w== X-Forwarded-Encrypted: i=1; AJvYcCUDpj+aX69feBIQRTxoOalbYnad/Jtzt9c89lXSBi+6FVRJbQIPgU6AC7n5dOYvkD8dYGlVrmE3HRZKe9A=@vger.kernel.org X-Gm-Message-State: AOJu0Ywf5/MmdV9akoPQ7ar/fg/ogomY9fhRdz5OZeHIECoBOnX26vsh x2eKkafPoYn+x6MuHiAeUnDV1Z8CGoqPr36fxUWGY6MaL6ILTSmYlqnp79wGusFlkAlaHz/dtSR GWy4d8toYqRUJYL2Ad3udiAAu9oSNXBV8u/xlIeiNCe9Zwd9tr15p2ugANmU9EQ== X-Gm-Gg: ASbGnctkP6h+ZwcoZ9qSmHypOLA7uK2Ne3Mif4ZVYopJMvl1zpCV5irzhp7u9NvQE3u 9yC+ywfK8Wo7bA7FOr3Y+Lg3JQ0Vm2sRmxQnR/HpwhsZjz51YhiCEddFQ3PScyhD8OOtNJPr7hu 5DvOQokhhhCOioXvx2btdAd+qTKi1satV5WF9ZOFtcY42viZtS13wUP87YpaguvoR1G9e0758K+ /hb04tKSIT0YeZMO7677DKgk7ZwIB65/K6u3yT6qENPj6JKlKxgwrS8kyLYHo1rn2ds4uoi7FiM 23aNXN0s7Osl/A== X-Received: by 2002:a17:902:f54f:b0:21d:3bd7:afdd with SMTP id d9443c01a7336-21d3bd7b341mr440645995ad.0.1738004338073; Mon, 27 Jan 2025 10:58:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYWynuAQ6dVqX0QoE4kZ5Wh8F1Y8kn1WTSOnlhZZ47NDsPfhlAa1hcBk7x3k8Oxuy7IZ06ig== X-Received: by 2002:a17:902:f54f:b0:21d:3bd7:afdd with SMTP id d9443c01a7336-21d3bd7b341mr440645215ad.0.1738004337234; Mon, 27 Jan 2025 10:58:57 -0800 (PST) Received: from LeoBras.redhat.com ([2804:1b3:a801:16c4:2e00:3d86:8f34:c7fb]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21da3ea3081sm66658595ad.62.2025.01.27.10.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2025 10:58:56 -0800 (PST) From: Leonardo Bras To: Helen Koike , Vignesh Raman , Jonathan Corbet , Leonardo Bras , Shreeya Patel Cc: kernelci@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/1] gitlab-ci: Let project define runner using environment variables Date: Mon, 27 Jan 2025 15:58:49 -0300 Message-ID: <20250127185849.34131-1-leobras@redhat.com> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently it's not possible to select which runner will handle a pipeline without changing the codebase. Add KCI_CI_TAGS environment variable, which can be used to select a runner either from a commit message, or directly from Gitlab interface. If not set in any way, the project will pick the default runner. Also add Documentation for this variable. Signed-off-by: Leonardo Bras --- Documentation/ci/gitlab-ci/gitlab-ci.rst | 5 +++++ tools/ci/gitlab-ci/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 940a800069238..ce89e4c093863 100644 --- a/Documentation/ci/gitlab-ci/gitlab-ci.rst +++ b/Documentation/ci/gitlab-ci/gitlab-ci.rst @@ -371,20 +371,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. +**KCI_CI_TAGS** + Used to help choose which runner will deal with the current pipeline. + Make sure to use a runner with at least 16GB of RAM, as this is required + 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/tools/ci/gitlab-ci/gitlab-ci.yml b/tools/ci/gitlab-ci/gitlab-ci.yml index d2679d9929de1..f49105ee61be6 100644 --- a/tools/ci/gitlab-ci/gitlab-ci.yml +++ b/tools/ci/gitlab-ci/gitlab-ci.yml @@ -34,20 +34,22 @@ workflow: variables: 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" KCI_SCENARIO: description: Set to any non-empty value to disable scenarios value: "" default: + tags: + - $KCI_CI_TAGS artifacts: paths: - artifacts/ when: always include: - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/16bc29078de5e0a067ff84a1a199a3760d3b3811/templates/debian.yml' - tools/ci/gitlab-ci/container.yml - tools/ci/gitlab-ci/cache.yml -- 2.48.1