From patchwork Sun Oct 28 23:58:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Martincoski X-Patchwork-Id: 990023 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EioRiB8t"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42jvpj3FCnz9s89 for ; Mon, 29 Oct 2018 10:59:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EF54C220C1; Sun, 28 Oct 2018 23:59:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IAbyTOca8afu; Sun, 28 Oct 2018 23:59:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C199021577; Sun, 28 Oct 2018 23:59:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3CD2D1BF301 for ; Sun, 28 Oct 2018 23:59:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3A37721577 for ; Sun, 28 Oct 2018 23:59:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ws16sK7H-G-y for ; Sun, 28 Oct 2018 23:59:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by silver.osuosl.org (Postfix) with ESMTPS id 43FE42154B for ; Sun, 28 Oct 2018 23:59:18 +0000 (UTC) Received: by mail-qk1-f169.google.com with SMTP id a132so3927782qkg.1 for ; Sun, 28 Oct 2018 16:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NI7ckkgh5L6UFdf2wZjWpAQKg33BR9Mft5T2r42b9W8=; b=EioRiB8t8bU8ONiYAQjBmS2L7ZIG5E20OooA0nUWnkvuaqmsWXVQwSeazEKQU50Pcy +agn/iEDRVbHncOO8twX76CuamLFzB9WnXpWJ/8uuA0DkcW+59vg5K2R56His+t260HK /A++aqCCAXIyC/c9HUBqH9ZMB/oX+DO2Fpzp8tJA+lW0wXMOh0LXfXGvcd8uynyi8D6H NOvRTInOrINxAzCeNQmvC7n+/As9fQ+E8aIOmDY6tuOWQ26bYClbU9Z2g3AhRKgjvlXl VY0RnLpXpdruum6BbRrPOugba0ICdjbVKoQM+ZdiEITpR0eWKok0GAw0G3u2or1dc4zd UaIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NI7ckkgh5L6UFdf2wZjWpAQKg33BR9Mft5T2r42b9W8=; b=ott+QSS2poP1y+Lm3xfgGgg2SVvwMqAoSLOwgshZ52dITg/L+wmKDeSrJNdyfg1BK4 zLOcLJLs6jiPCiRLiUEvPkZ0ZV0IJcZjYQ7c5wBY1MEmSlgunMao+5uagwtdAzId3dSR xLKu5VW77MkTpAepX/jBNetIZL+fkM0KaG6ogLwVHWKQHVjRj8PLosPuowYNo4aSxEq7 eJmEtzg6q+bGHQJfwUbrl9m6Gmm9lkwECY85OBN+Xib69X4uy92/3Ki1bsQbQm7o4SdW 3iPjO71WLbPjQQ/818wwz1+lhnddTD+4OgQJOM0XrM7ZedJsOXSlmlWZlginHVYaKv5b QJVQ== X-Gm-Message-State: AGRZ1gKKoDdGtiJpNvw0VSLLBLSQTR3PQubNNfXY8JH59gu273C1x8nd AUGCDsd2j4ujk9d+/Xm7BPiyMixN X-Google-Smtp-Source: AJdET5dKNwax+3XPIZuo0FWk85GRb6P3SDxfb6TGj8Tn8kU2JrqBw90INZDpeTkS+grv4VImuWdUoA== X-Received: by 2002:a37:4116:: with SMTP id o22-v6mr10105800qka.107.1540771156953; Sun, 28 Oct 2018 16:59:16 -0700 (PDT) Received: from ultri5.home ([189.114.100.41]) by smtp.gmail.com with ESMTPSA id l14-v6sm12536479qtk.97.2018.10.28.16.59.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 16:59:16 -0700 (PDT) From: Ricardo Martincoski To: buildroot@buildroot.org Date: Sun, 28 Oct 2018 20:58:36 -0300 Message-Id: <20181028235839.22472-1-ricardo.martincoski@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 0/3] .gitlab-ci.yml: add trigger per job and per type of job X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ricardo Martincoski MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Hello, This series allows the user of GitLab pipeline to trigger some interesting subsets of jobs by pushing temporary branches with names that match regexps: - all defconfigs: /.*-defconfigs$/ - all runtime tests: /.*-runtime-tests$/ - one defconfig: /.*-defconfig_name$/ - one test case: /.*-test_case_name$/ The check-* jobs keep being triggered for all pushes: branches that match one of the regexps above, branches that don't match them, and tags. Pushing a tag still triggers all jobs. The first patch adds the first two regexps. The second patch prepares to add the per job trigger but don't change any functionality. The last patch actually adds the per defconfig and per runtime test triggers. With only patch 1 applied, using a local branch named test1: $ git tag tag1 $ git push gitlab tag1 results in 260 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34613530 $ git push gitlab test1 results in 4 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34613494 $ git push gitlab HEAD:test1-defconfigs results in 192 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34613558 $ git push gitlab HEAD:test1-runtime-tests results in 72 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34613616 With all patches applied, using a local branch named test3: $ git tag tag3 $ git push gitlab tag3 results in 260 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34614775 $ git push gitlab test3 results in 4 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34614682 $ git push gitlab HEAD:test3-defconfigs results in 192 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34614821 $ git push gitlab HEAD:test3-runtime-tests results in 72 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34614415 $ git push gitlab HEAD:test3-tests.core.test_file_capabilities.TestFileCapabilities results in 5 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34614380 $ git push gitlab HEAD:test3-qemu_arm_versatile_defconfig results in 5 jobs https://gitlab.com/RicardoMartincoski/buildroot/pipelines/34614400 Regards, Ricardo Ricardo Martincoski (3): .gitlab-ci.yml: add trigger per type of job Makefile: offload .gitlab-ci.yml generation .gitlab-ci.yml: add trigger per job .gitlab-ci.yml | 2050 +++++++++++++++++++++--- .gitlab-ci.yml.in | 2 + Makefile | 4 +- support/scripts/generate-gitlab-ci-yml | 37 + 4 files changed, 1834 insertions(+), 259 deletions(-) create mode 100755 support/scripts/generate-gitlab-ci-yml