Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7287E1870 for ; Sat, 15 Jun 2024 21:05:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718485534; cv=none; b=u5ObkGCBc8/NBKz4Axcagr16dA6/4cf2fDi+NQ3zxNeRw1VGIUqDc1WUZOVMhEOK+LsvNKOFb5RwWDu93Iq5Ix4tfvoS2T0mXgG+cphWmFh+cRZ3zlOTnHAZD9vy8r2yui24hFEIC7wXfP24oIDhdpUdG8SJ2WsxNVoCvvsOymc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718485534; c=relaxed/simple; bh=2V1ud5/Nzu0lISZsmi+hom5PnQnxM4x/4ZKSIvPOOlA=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=pBwkpIKvRGCMyUCZcxjhS9lNFVg84v3FzkXEiK7JxwQ1uZy8FJ7OeSFaNwm8pKVZCv9HptuISrGLSCo4HcBSXAjAYHoFWIhL0clrE+ah+ggnKtOzEN0uFMKHGFrK/sI/zza3EFmLWsgpfRDtGQfSpPMhVYRzrGnDh+ocALDtwNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kruces.com; spf=pass smtp.mailfrom=kruces.com; dkim=pass (2048-bit key) header.d=kruces-com.20230601.gappssmtp.com header.i=@kruces-com.20230601.gappssmtp.com header.b=byqELlic; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kruces.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kruces.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kruces-com.20230601.gappssmtp.com header.i=@kruces-com.20230601.gappssmtp.com header.b="byqELlic" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-57c5c51cb89so3697765a12.2 for ; Sat, 15 Jun 2024 14:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kruces-com.20230601.gappssmtp.com; s=20230601; t=1718485531; x=1719090331; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=tPumRa20vkKKEd4Tn12QPrsbtxJVImeo51wq/+KywFc=; b=byqELlicpOYdxJkhxfbrb9PZNHdttVGpCZZwc/XTDIFA/nerpzaOg5NUm3UEENzOhs 4HkVUQsM+bI9LcR8U4j0cwe0cHLByI3PMD9xgg8RatEVsu+JwDyy04acTq+6q00hAWcr 7VlMTTL+m3u5BsFfBCoexHT6HKs9K+PJK8575MJhWkwpcUCF+kOr+fgSu3hsFC4W7pbK OvmNHnIMDcaTa04cqEuXYbitbBfcWjVK90Xx8PZ+K35EtLiLK+rUtEVhKQVdi14jx56T QnyCJJ/dxaONTFw2tgIWOsx1DmsBefggSSXn/GaedywudLgJqJcN9eoJecLY/+Ys8t3L PQ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718485531; x=1719090331; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tPumRa20vkKKEd4Tn12QPrsbtxJVImeo51wq/+KywFc=; b=BQLBKUK1s5Tc8Kr6qwP9rsDUOF3mv9Yv8uJkWKsqzqNCYLrgSlwCQFllT2bdMHvYeY au7Xjs7njfy4Au1ZW6k8lIIHTdCRbZVf6v79mqXyAuC4ZunWwrIN4VGQN4rlMVn7MelU 0QeXUtYLgvO/PbD/69Z1jCDo3SOtIBLb/1NzHRbDHuLftkrpeP1q4H6uYPUbnGSy7T02 7RqRQjJZSCspLmx08YkqH2zxV2u1BM2RQ0bK3FQORI/p3fZaXilSGa65+1gSc+El6i70 HV5aFQx35pKPsXEYzAKfQAuqbR8OLDHBe/NJOO3KZiW0UNwirqOWzBwrm5SMxkLlgBrZ FcUw== X-Forwarded-Encrypted: i=1; AJvYcCURxqxvVpkPw89B7hRNqu9A8zdUEq/oZr5tsBvacDLTZZMXocm6FRzq+f4QIEeKevc8oUWasnJEUSC0/XlO6Vx/k1WxJ/EeCQ== X-Gm-Message-State: AOJu0Yx95WmB30GtENJn4/yeYicvFWq46pdK1vRLGz65MG2NcYj+4M5p bffAvRXAMOIJWoazAinog1wzzRC+cZfu8O96bGFyNfIZIaJ4SW58ozDiLimghHI= X-Google-Smtp-Source: AGHT+IGTzJ+6q/aAOwGRRFgW0V23PSCjo2YWVq2WoxO+aB+xusrfXu+mGqa84O9QCCfzmR55/OytWQ== X-Received: by 2002:a17:907:72c9:b0:a6d:de5b:5b1d with SMTP id a640c23a62f3a-a6f60d3785cmr615893366b.18.1718485530576; Sat, 15 Jun 2024 14:05:30 -0700 (PDT) Received: from localhost.. (89-23-255-189.ip4.fiberby.net. [89.23.255.189]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f7ea3a5c9sm13677366b.169.2024.06.15.14.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 14:05:30 -0700 (PDT) Sender: Daniel Gomez From: "Daniel Gomez (Samsung)" X-Google-Original-From: "Daniel Gomez (Samsung)" To: mcgrof@kernel.org, kdevops@lists.linux.dev Cc: da.gomez@samsung.com, gost.dev@samsung.com Subject: [PATCH v4 0/1] linux: generate git refs automatically Date: Sat, 15 Jun 2024 23:05:21 +0200 Message-ID: <20240615210522.39188-1-da.gomez@samsung.com> X-Mailer: git-send-email 2.45.1 Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This adds support to generate git references automatically using git-ls-remote and kernel.org/releases.json. I plan to push this next Monday. Please, let me know if I you find any issues in your workflow after this change. Changes since v3: * Change the strategy for the canon path (linus, next and stable trees): * Current git references used in Kdevops are now included in a YAML file. * This static references will be appended to the latest-and-greatest found by kreleases (kernel.org/releases.json). * Minor typing fixes in generate_refs.py. * --extra (config yaml) is now supported for gitrefs and kreleases sub-commands. * Review files where new vars/configs were required to update because of renaming. * Minor CONFIG renames for consistency. Changes since v2: * Rebase changes to latest kdevops. * Add parser support for kernel.org/releases.json * Add generate_refs.py subcommand support: gitref and kreleases. * gitref: Retrieves refs from upstream repository. * kreleases: Retrieves latest-and-greatest refs from kernel.org/releases. * Integrate yaml with static configuration for mcgrof, jlayton and cel trees. * Generate a default configuration file for all trees except for linus, next and stable. * Kconfig.refs-{linus,next,stable} refs will automatically retrieve the information from kernel.org/releases.json every time make is run. * Kconfig.refs-* files will be generated/forced when make dynconfig is run. * Minor script changes: e.g. special case handling for CUSTOM entries. * Minor Kconfig/Makefile renaming/cleanup. Changes since v1: * Script generation moved and called from the main Makefile. * scripts/gen-refs.Makefile to generate refs. * Conversion to python. * Added support for: * Command-line arguments to control options. * YAML parser to configure extra and static references. Example added for mcgrof and mcgrof-next. * Filter for tags and heads. Example to filter semantic versioning would be --filter-tags "*.*.*". * File generation based on time. Update it every 24h (hardcoded). Possibility to use --force to always generate the file. * git-ls-remote sorting inverted using --sort option and git versionsort.suffix option (to avoid sort --reverse). Daniel Daniel Gomez (1): linux: generate refs automatically .gitignore | 2 + Makefile | 3 + defconfigs/cxl-switch | 8 +- defconfigs/nfsd | 4 +- docs/how-extra-vars-generated.md | 8 +- playbooks/roles/bootlinux/README.md | 4 +- playbooks/roles/bootlinux/defaults/main.yml | 4 +- playbooks/roles/bootlinux/tasks/main.yml | 8 +- .../bootlinux/tasks/update-grub/install.yml | 6 +- scripts/dynamic-kconfig.Makefile | 4 + scripts/gen-gitrefs.Makefile | 111 +++++++ scripts/gen-kreleases.Makefile | 28 ++ scripts/generate_refs.py | 308 ++++++++++++++++++ scripts/workflows/fstests/fstests_watchdog.py | 4 +- scripts/workflows/generic/run_kernel_ci.sh | 2 +- workflows/fstests/Makefile | 4 +- .../xfs/unassigned/fstests-next-20230515 | 2 +- workflows/linux/Kconfig | 46 +-- workflows/linux/Kconfig.btrfs | 4 +- workflows/linux/Kconfig.cel | 31 +- workflows/linux/Kconfig.jlayton | 31 +- workflows/linux/Kconfig.kdevops | 17 +- workflows/linux/Kconfig.linus | 69 +--- workflows/linux/Kconfig.mcgrof | 48 +-- workflows/linux/Kconfig.next | 4 +- workflows/linux/Kconfig.refs-btrfs-devel | 15 + workflows/linux/Kconfig.refs-cel-linux | 27 ++ workflows/linux/Kconfig.refs-jlayton-linux | 27 ++ workflows/linux/Kconfig.refs-kdevops-linus | 15 + workflows/linux/Kconfig.refs-mcgrof-linus | 21 ++ workflows/linux/Kconfig.refs-mcgrof-next | 21 ++ workflows/linux/Kconfig.stable | 63 +--- workflows/linux/Makefile | 14 +- workflows/linux/btrfs-devel-refs.yaml | 6 + workflows/linux/cel-linux-refs.yaml | 14 + workflows/linux/jlayton-linux-refs.yaml | 14 + workflows/linux/kdevops-linus-refs.yaml | 6 + workflows/linux/linus-refs.yaml | 38 +++ workflows/linux/mcgrof-linus-refs.yaml | 10 + workflows/linux/mcgrof-next-refs.yaml | 10 + workflows/linux/next-refs.yaml | 6 + workflows/linux/stable-refs.yaml | 38 +++ 42 files changed, 798 insertions(+), 307 deletions(-) create mode 100644 scripts/gen-gitrefs.Makefile create mode 100644 scripts/gen-kreleases.Makefile create mode 100755 scripts/generate_refs.py create mode 100644 workflows/linux/Kconfig.refs-btrfs-devel create mode 100644 workflows/linux/Kconfig.refs-cel-linux create mode 100644 workflows/linux/Kconfig.refs-jlayton-linux create mode 100644 workflows/linux/Kconfig.refs-kdevops-linus create mode 100644 workflows/linux/Kconfig.refs-mcgrof-linus create mode 100644 workflows/linux/Kconfig.refs-mcgrof-next create mode 100644 workflows/linux/btrfs-devel-refs.yaml create mode 100644 workflows/linux/cel-linux-refs.yaml create mode 100644 workflows/linux/jlayton-linux-refs.yaml create mode 100644 workflows/linux/kdevops-linus-refs.yaml create mode 100644 workflows/linux/linus-refs.yaml create mode 100644 workflows/linux/mcgrof-linus-refs.yaml create mode 100644 workflows/linux/mcgrof-next-refs.yaml create mode 100644 workflows/linux/next-refs.yaml create mode 100644 workflows/linux/stable-refs.yaml -- 2.45.1