From patchwork Wed Sep 27 20:21:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1840434 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=pXnnc9sc; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=BUfX4O1i; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rwp1b0Qf5z1yp0 for ; Thu, 28 Sep 2023 06:22:11 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id CC9163CBA91 for ; Wed, 27 Sep 2023 22:22:08 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 73AE73CBA91 for ; Wed, 27 Sep 2023 22:21:27 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id C2DF31A00EAC for ; Wed, 27 Sep 2023 22:21:26 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 16FB21F37E; Wed, 27 Sep 2023 20:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1695846085; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mGPWp2luWhpj9l06v4FAZJwSZaqIT7TiNr2a5BkuQ2E=; b=pXnnc9sc391eZZVlTetT7MFT/HS5k7mvEXpxwXBE8g9JqEZtDS0rVHuQwNXt6gcnMZG9Iz RAsOfnhD5OZ1dwHlvVXu/KZD+auDdbpACe8dulh6ecFSzU3D1RNPPxIDhieo4cf08Jvob4 l1WwfXBODR1BZ9sOuKHG05BJhumIQp4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1695846085; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mGPWp2luWhpj9l06v4FAZJwSZaqIT7TiNr2a5BkuQ2E=; b=BUfX4O1in6d6jZh0gGKly8dC/QAD0fXd0gOVY6LIG98KEbxy58mbvyE8czJ33sI7fvUj5p KqEI0hJljYTrFpDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id AC90C13479; Wed, 27 Sep 2023 20:21:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qLg6KMSOFGWGewAAMHmgww (envelope-from ); Wed, 27 Sep 2023 20:21:24 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 27 Sep 2023 22:21:16 +0200 Message-Id: <20230927202121.300325-2-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230927202121.300325-1-pvorel@suse.cz> References: <20230927202121.300325-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH v2 1/6] tools: Add a script for tagging the release X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" A helper for new releases. Functions will be reused in another script (next commit). Signed-off-by: Petr Vorel --- tools/lib.sh | 31 ++++++++++++++++++++++++++++++ tools/tag-release.sh | 45 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100755 tools/lib.sh create mode 100755 tools/tag-release.sh diff --git a/tools/lib.sh b/tools/lib.sh new file mode 100755 index 000000000..c96433d28 --- /dev/null +++ b/tools/lib.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# Copyright (c) 2023 Petr Vorel + +ask() +{ + local msg="$1" + local answer + + printf "\n$msg. Proceed? [N/y]: " + read answer + case "$answer" in + [Yy]*) : ;; + *) exit 2 + esac +} + +quit() +{ + printf "\n$@\n" >&2 + exit 1 +} + +rod() +{ + eval "$@" || quit "$@ failed" +} + +title() +{ + echo "===== $1 =====" +} diff --git a/tools/tag-release.sh b/tools/tag-release.sh new file mode 100755 index 000000000..2967c7b4d --- /dev/null +++ b/tools/tag-release.sh @@ -0,0 +1,45 @@ +#!/bin/sh +# Copyright (c) 2023 Petr Vorel +# Tag LTP release. +# https://github.com/linux-test-project/ltp/wiki/LTP-Release-Procedure +set -e + +upstream_git="linux-test-project/ltp" +tag="$(date +%Y%m%d)" +old_tag="$(git describe --abbrev=0)" +tag_msg="LTP $tag" + +. $(dirname "$0")/lib.sh + +cd $(dirname "$0")/.. + +if ! git ls-remote --get-url origin | grep -q $upstream_git; then + quit "Not an upstream project" +fi + +if ! git --no-pager diff --exit-code; then + quit "Please commit your changes before making new release" +fi + +if git show $tag 2> /dev/null; then + quit "Tag '$tag' already exists" +fi + +if grep -q "$tag" VERSION; then + quit "Tag '$tag' already in VERSION file" +fi + +title "git tag" +echo "new tag: '$tag', previous tag: '$old_tag'" +echo "$tag" > VERSION +git add VERSION +rod git commit -S --signoff --message \"$tag_msg\" VERSION +rod git tag --sign --annotate $tag --message \"$tag_msg\" +git --no-pager show $tag --show-signature + +ask "Please check tag and signature" + +title "git push" +ask "Pushing changes to upstream git" +rod git push origin master:master +git push origin $tag From patchwork Wed Sep 27 20:21:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1840428 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=vP7TLqm8; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=ujdutGQn; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rwp135wRrz1yp0 for ; Thu, 28 Sep 2023 06:21:43 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 904A13CDC77 for ; Wed, 27 Sep 2023 22:21:41 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id CAE943CBA91 for ; Wed, 27 Sep 2023 22:21:26 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 29E471A00E7F for ; Wed, 27 Sep 2023 22:21:25 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7C1DF1F38C; Wed, 27 Sep 2023 20:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1695846085; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a5PTLAn4fW7dngDLi8DEO9UtdtLyLSLECyt9HmuNdFI=; b=vP7TLqm8S1fXllUA07nHb9wnQ+Z9GZ2SjSr8OvKEtmq59zC8+3HSQY0QeJuN7xW/KVKdeD T16u7lOFa+JrtCUSNSQL1PPUvjUN+S2Ons/GaR7xuYAcebHVqDcQPHgFv6kAxw9GCxEasQ vxAbbVcovG00HwLU5j8BIrveEPlOkaI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1695846085; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a5PTLAn4fW7dngDLi8DEO9UtdtLyLSLECyt9HmuNdFI=; b=ujdutGQnNSgbQ1abYsYwgwraEfuvIcAHjmDRl2lT6lmw7W12nDhwslyTwwSWlPH2CVxQAu zPVogK9hfA5mWbCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2287513479; Wed, 27 Sep 2023 20:21:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eJH5BsWOFGWGewAAMHmgww (envelope-from ); Wed, 27 Sep 2023 20:21:25 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 27 Sep 2023 22:21:17 +0200 Message-Id: <20230927202121.300325-3-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230927202121.300325-1-pvorel@suse.cz> References: <20230927202121.300325-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH v2 2/6] tools: Add script for creating tarballs and metadata X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" A helper for new releases. Signed-off-by: Petr Vorel --- tools/create-tarballs-metadata.sh | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100755 tools/create-tarballs-metadata.sh diff --git a/tools/create-tarballs-metadata.sh b/tools/create-tarballs-metadata.sh new file mode 100755 index 000000000..e7f93d5c0 --- /dev/null +++ b/tools/create-tarballs-metadata.sh @@ -0,0 +1,56 @@ +#!/bin/sh +# Copyright (c) 2023 Petr Vorel +# Create tarballs and metadata for uploading after tagging release. +# https://github.com/linux-test-project/ltp/wiki/LTP-Release-Procedure +set -e + +tag="$(date +%Y%m%d)" +tarball_dir="ltp-full-$tag" +extensions="bz2 xz" +checksums="md5 sha1 sha256" +git_dir=$(cd $(dirname "$0")/..; pwd) +dir="$(cd $git_dir/../; pwd)/ltp-release-$tag" + +. $(dirname "$0")/lib.sh + +if [ -d $dir ]; then + ask "Directory '$dir' exists, will be deleted" + rm -rf $dir +fi +rod mkdir $dir +cd $dir +dir=$PWD + +# git clone (local) +title "git clone" +rod git clone $git_dir $tarball_dir +rod cd $tarball_dir + +title "Update submodules" +rod git submodule update --init + +title "Generate configure script" +rod make autotools + +# tarballs, checksums +title "Generate tarballs" +cd .. +rod tar --exclude .git -cjf $tarball_dir.tar.bz2 $tarball_dir +rod tar --exclude .git -cJf $tarball_dir.tar.xz $tarball_dir + +title "Generate checksums" +for alg in $checksums; do + for ext in $extensions; do + file="$tarball_dir.tar.$ext" + ${alg}sum $file > "$file.$alg" + done +done + +# metadata documentation +title "Generate metadata documentation" +cd $tarball_dir +rod ./configure --with-metadata-generator=asciidoctor +rod make -C metadata +cp -v docparse/metadata.html $dir/metadata.$tag.html + +echo "Generated files are in '$dir', upload them to github" From patchwork Wed Sep 27 20:21:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1840433 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=B4EKQvHq; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=zJMIEX7b; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rwp1H5NTMz1yp0 for ; Thu, 28 Sep 2023 06:21:55 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 45F8A3CE188 for ; Wed, 27 Sep 2023 22:21:53 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id DFCA43CDC30 for ; Wed, 27 Sep 2023 22:21:26 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 3E4C4200906 for ; Wed, 27 Sep 2023 22:21:26 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 06F601F88F; Wed, 27 Sep 2023 20:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1695846086; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Fq/gZrXuZkYPH65/GvLpPXN0nU8eWTyaz/Bff20g4M=; b=B4EKQvHqdtu9GtWpwz2dymk0piFoaN+Mj97EvgAgKuLuFertDCPQPO+SaKZhqJNaZbs5eB +xB0mD+Jj0I5tatkQt/bErpeme+T3VrsnGNkDdQSa2as3SeTdwLAcWOiIF7WkWrxHHlMsJ pfKFwqRGy1IZIc4bdnopIvPzOLqL5Xs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1695846086; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Fq/gZrXuZkYPH65/GvLpPXN0nU8eWTyaz/Bff20g4M=; b=zJMIEX7bKthfnRbNAWs0NUIO2QvQSMVl2PdfmCTBGu8O3N4QxFhBWPQIaYRaoYq9OPRKZB EBWAP5C8iz6e6ZDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8E34413479; Wed, 27 Sep 2023 20:21:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +IB/IMWOFGWGewAAMHmgww (envelope-from ); Wed, 27 Sep 2023 20:21:25 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 27 Sep 2023 22:21:18 +0200 Message-Id: <20230927202121.300325-4-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230927202121.300325-1-pvorel@suse.cz> References: <20230927202121.300325-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it Subject: [LTP] [PATCH v2 3/6] doc: Rename files to names from ltp.wiki.git X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Keeping the original extension from LTP wiki git brings: * add syntax highlight for editors * no need to add new file (only new extension) Reviwed-by: Cyril Hrubis Signed-off-by: Petr Vorel --- .github/workflows/wiki-mirror.yml | 16 +++------------- ...{build-system-guide.txt => Build-System.rest} | 0 doc/{c-test-api.txt => C-Test-API.asciidoc} | 0 ...-simple.txt => C-Test-Case-Tutorial.asciidoc} | 0 ...ork-c-api.txt => C-Test-Network-API.asciidoc} | 0 doc/{kvm-test-api.txt => KVM-Test-API.asciidoc} | 0 ... LTP-Library-API-Writing-Guidelines.asciidoc} | 0 ...> Maintainer-Patch-Review-Checklist.asciidoc} | 0 ...hell-test-api.txt => Shell-Test-API.asciidoc} | 0 ...ed-kernel,-libc,-toolchain-versions.asciidoc} | 0 ...ines.txt => Test-Writing-Guidelines.asciidoc} | 0 doc/{user-guide.txt => User-Guidelines.asciidoc} | 0 12 files changed, 3 insertions(+), 13 deletions(-) rename doc/{build-system-guide.txt => Build-System.rest} (100%) rename doc/{c-test-api.txt => C-Test-API.asciidoc} (100%) rename doc/{c-test-tutorial-simple.txt => C-Test-Case-Tutorial.asciidoc} (100%) rename doc/{network-c-api.txt => C-Test-Network-API.asciidoc} (100%) rename doc/{kvm-test-api.txt => KVM-Test-API.asciidoc} (100%) rename doc/{library-api-writing-guidelines.txt => LTP-Library-API-Writing-Guidelines.asciidoc} (100%) rename doc/{maintainer-patch-review-checklist.txt => Maintainer-Patch-Review-Checklist.asciidoc} (100%) rename doc/{shell-test-api.txt => Shell-Test-API.asciidoc} (100%) rename doc/{supported-kernel-libc-versions.txt => Supported-kernel,-libc,-toolchain-versions.asciidoc} (100%) rename doc/{test-writing-guidelines.txt => Test-Writing-Guidelines.asciidoc} (100%) rename doc/{user-guide.txt => User-Guidelines.asciidoc} (100%) diff --git a/.github/workflows/wiki-mirror.yml b/.github/workflows/wiki-mirror.yml index 883892bf5..2ac0caf74 100644 --- a/.github/workflows/wiki-mirror.yml +++ b/.github/workflows/wiki-mirror.yml @@ -38,20 +38,10 @@ jobs: commit=$(git log --pretty=format:"%h (\"%s\")" -1 .) cd $GITHUB_WORKSPACE/ltp.wiki - - # Don't forget to update this list, keep it sorted - cp -v $dir/c-test-api.txt C-Test-API.asciidoc - cp -v $dir/c-test-tutorial-simple.txt C-Test-Case-Tutorial.asciidoc - cp -v $dir/library-api-writing-guidelines.txt LTP-Library-API-Writing-Guidelines.asciidoc - cp -v $dir/maintainer-patch-review-checklist.txt Maintainer-Patch-Review-Checklist.asciidoc - cp -v $dir/network-c-api.txt C-Test-Network-API.asciidoc - cp -v $dir/shell-test-api.txt Shell-Test-API.asciidoc - cp -v $dir/supported-kernel-libc-versions.txt Supported-kernel,-libc,-toolchain-versions.asciidoc - cp -v $dir/test-writing-guidelines.txt Test-Writing-Guidelines.asciidoc - cp -v $dir/user-guide.txt User-Guidelines.asciidoc - cp -v $dir/kvm-test-api.txt KVM-Test-API.asciidoc - + # don't forget to add new extensions + cp -v $dir/*.asciidoc $dir/*.rest . git add . + # only commit if there are changes git diff-index --quiet HEAD -- || git commit -m "Update to $commit" . git push diff --git a/doc/build-system-guide.txt b/doc/Build-System.rest similarity index 100% rename from doc/build-system-guide.txt rename to doc/Build-System.rest diff --git a/doc/c-test-api.txt b/doc/C-Test-API.asciidoc similarity index 100% rename from doc/c-test-api.txt rename to doc/C-Test-API.asciidoc diff --git a/doc/c-test-tutorial-simple.txt b/doc/C-Test-Case-Tutorial.asciidoc similarity index 100% rename from doc/c-test-tutorial-simple.txt rename to doc/C-Test-Case-Tutorial.asciidoc diff --git a/doc/network-c-api.txt b/doc/C-Test-Network-API.asciidoc similarity index 100% rename from doc/network-c-api.txt rename to doc/C-Test-Network-API.asciidoc diff --git a/doc/kvm-test-api.txt b/doc/KVM-Test-API.asciidoc similarity index 100% rename from doc/kvm-test-api.txt rename to doc/KVM-Test-API.asciidoc diff --git a/doc/library-api-writing-guidelines.txt b/doc/LTP-Library-API-Writing-Guidelines.asciidoc similarity index 100% rename from doc/library-api-writing-guidelines.txt rename to doc/LTP-Library-API-Writing-Guidelines.asciidoc diff --git a/doc/maintainer-patch-review-checklist.txt b/doc/Maintainer-Patch-Review-Checklist.asciidoc similarity index 100% rename from doc/maintainer-patch-review-checklist.txt rename to doc/Maintainer-Patch-Review-Checklist.asciidoc diff --git a/doc/shell-test-api.txt b/doc/Shell-Test-API.asciidoc similarity index 100% rename from doc/shell-test-api.txt rename to doc/Shell-Test-API.asciidoc diff --git a/doc/supported-kernel-libc-versions.txt b/doc/Supported-kernel,-libc,-toolchain-versions.asciidoc similarity index 100% rename from doc/supported-kernel-libc-versions.txt rename to doc/Supported-kernel,-libc,-toolchain-versions.asciidoc diff --git a/doc/test-writing-guidelines.txt b/doc/Test-Writing-Guidelines.asciidoc similarity index 100% rename from doc/test-writing-guidelines.txt rename to doc/Test-Writing-Guidelines.asciidoc diff --git a/doc/user-guide.txt b/doc/User-Guidelines.asciidoc similarity index 100% rename from doc/user-guide.txt rename to doc/User-Guidelines.asciidoc From patchwork Wed Sep 27 20:21:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1840435 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=hZo1ZF3b; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=b6Frz2xD; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rwp1n26X2z1yp0 for ; Thu, 28 Sep 2023 06:22:21 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 45BB73CDC75 for ; Wed, 27 Sep 2023 22:22:19 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 305293CBA91 for ; Wed, 27 Sep 2023 22:21:27 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id E60091400BDD for ; Wed, 27 Sep 2023 22:21:26 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7368A1F891; Wed, 27 Sep 2023 20:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1695846086; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gS2WKQwJZLmsZsa2+oX5QLx/ny8DNhL88Dn9i3Gif4E=; b=hZo1ZF3bJ4B+IbRyuNB+IU4FFzh5hGHjtOVWx89O0liLd5KilD2hoqFi5Rt6X/2vLKlHyz 3cHMsL7lcTb2Tu+Os5bS5nITa/Dq4QL/aoSbIF1Ay7CRKGddPl5kawaUVdv4J29w0ZedMs dcDDGpzesXKqS87wyUAKHT63M2FHYOs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1695846086; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gS2WKQwJZLmsZsa2+oX5QLx/ny8DNhL88Dn9i3Gif4E=; b=b6Frz2xDqcxjUtFcDhlyYqSC9KjcAttBB3aE0WXdZKzSWAGycAGaGXKv5MKyCCEFNDMsh5 O18vdNWvngl1h7CQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1181013479; Wed, 27 Sep 2023 20:21:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4HMnAsaOFGWGewAAMHmgww (envelope-from ); Wed, 27 Sep 2023 20:21:26 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 27 Sep 2023 22:21:19 +0200 Message-Id: <20230927202121.300325-5-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230927202121.300325-1-pvorel@suse.cz> References: <20230927202121.300325-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH v2 4/6] doc: Add Release procedure X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This slightly outdated document exists in LTP wiki, start versioning it in the original repository. The only unversioned file in the wiki is now Home.rest. Signed-off-by: Petr Vorel --- doc/LTP-Release-Procedure.asciidoc | 67 ++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 doc/LTP-Release-Procedure.asciidoc diff --git a/doc/LTP-Release-Procedure.asciidoc b/doc/LTP-Release-Procedure.asciidoc new file mode 100644 index 000000000..cd7682fb8 --- /dev/null +++ b/doc/LTP-Release-Procedure.asciidoc @@ -0,0 +1,67 @@ +LTP Release Procedure +===================== + +This page contains quick summary of what needs to be done to do a LTP release. It's expected that LTP git is frozen and git HEAD was properly tested and that LTP git tree is cloned to a directory named 'ltp'. + +NOTE: The string YYYYMMDD should be substituted to the current date. + +1. Tag the git +-------------- + +[source,sh] +-------------------------------------------------------------------- +cd ltp +echo YYYYMMDD > VERSION +git commit -s -m 'LTP YYYYMMDD' VERSION +git tag -a YYYYMMDD -m 'LTP YYYYMMDD' +-------------------------------------------------------------------- + +2. Push changes to github +------------------------- +[source,sh] +-------------------------------------------------------------------- +git push +git push --tags +-------------------------------------------------------------------- + +3. Prepare tarballs +------------------- +[source,sh] +-------------------------------------------------------------------- +cd .. +git clone ltp ltp-full-YYYYMMDD +cd ltp-full-YYYYMMDD +# Update mce-inject submodule +git submodule init +git submodule update +# Generate configure script +make autotools +# Prepare the archives +cd .. +tar -cjf ltp-full-YYYYMMDD.tar.bz2 ltp-full-YYYYMMDD --exclude .git +tar -cJf ltp-full-YYYYMMDD.tar.xz ltp-full-YYYYMMDD --exclude .git +-------------------------------------------------------------------- + +4. Upload the tarballs to GitHub +-------------------------------- + +Click on 'releases' then switch to 'tags' then click on 'Add release notes' there should be 'Attach binaries ...' link at the bottom of the page. + +Don't forget to upload md5 and sha-1 sums for the tarballs as well. + +5. Send release announcement +---------------------------- + +Have a look at http://sourceforge.net/p/ltp/mailman/message/34429656/ to get the idea how it should look. + +The announcement is send to: + +* ltp at lists.linux.it +* linux-kernel at vger.kernel.org +* libc-alpha at sourceware.org + +CCed to: + +* lwn at lwn.net +* akpm at linux-foundation.org +* torvalds at linux-foundation.org. \ No newline at end of file From patchwork Wed Sep 27 20:21:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1840437 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=04K+1jHr; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=SiA8P+KV; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rwp2D3gM0z1yp0 for ; Thu, 28 Sep 2023 06:22:44 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 540033CE18B for ; Wed, 27 Sep 2023 22:22:42 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [IPv6:2001:4b78:1:20::5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 713C43CDC79 for ; Wed, 27 Sep 2023 22:21:28 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 7862460047F for ; Wed, 27 Sep 2023 22:21:27 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 04A8F1F894; Wed, 27 Sep 2023 20:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1695846087; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SZt4hdxWenoDJH4FOkFxxjePEO37crMvA9BuW7JMwCs=; b=04K+1jHrGvNQzrP+QunlTvHuSzrm14XR9nX1lCHWzJlasKL8vzXFdP4P49O0he4UK/5mED 9Oj7PnW6HfkEGeJTK2QKDOfx8AU5B+P1u81TYxxMsrsaAKt7anpF+NBIYzbdcxcBw24v+0 gggiOI1ofXnN8SMTnYEmSXV/XwL0bgo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1695846087; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SZt4hdxWenoDJH4FOkFxxjePEO37crMvA9BuW7JMwCs=; b=SiA8P+KVu4HHJXmSFT9oFRXFA9vWde0bHMoEicstyvSnhmTdJZn+cpwjWS+/U4fYrpn3SW LV8qziCWJ5wMKxBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7D68A13479; Wed, 27 Sep 2023 20:21:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gE/hHMaOFGWGewAAMHmgww (envelope-from ); Wed, 27 Sep 2023 20:21:26 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 27 Sep 2023 22:21:20 +0200 Message-Id: <20230927202121.300325-6-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230927202121.300325-1-pvorel@suse.cz> References: <20230927202121.300325-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-5.smtp.seeweb.it Subject: [LTP] [PATCH v2 5/6] doc: Update release procedure X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" * Completely rewrite Release preparation (Cyril). * Update command examples. * Document helper scripts. * Update link to the release announcement. Co-developed-by: Cyril Hrubis Signed-off-by: Petr Vorel Reviewed-by: Avinesh Kumar --- "LTP Release Procedure" wiki page is (temporarily) visible on: https://github.com/pevik/ltp/wiki/TEST doc/LTP-Release-Procedure.asciidoc | 160 +++++++++++++++++++++++++---- 1 file changed, 138 insertions(+), 22 deletions(-) diff --git a/doc/LTP-Release-Procedure.asciidoc b/doc/LTP-Release-Procedure.asciidoc index cd7682fb8..101a1b8cb 100644 --- a/doc/LTP-Release-Procedure.asciidoc +++ b/doc/LTP-Release-Procedure.asciidoc @@ -1,59 +1,175 @@ LTP Release Procedure ===================== -This page contains quick summary of what needs to be done to do a LTP release. It's expected that LTP git is frozen and git HEAD was properly tested and that LTP git tree is cloned to a directory named 'ltp'. +1. Release preparations +----------------------- + +The release procedure generally takes a few weeks. In the first week or two +patches that should go into the release are reviewed and possibly merged. These +patches are either fixes or patches pointed out by the community. + +Patch review, when finished, is followed by a git freeze, which is a period +where only fixes are pushed to the git. During that period community is +expected to run a LTP pre-release tests, reports problems, and/or send fixes to +the mailing list. In this period we are especially making sure that there are +no regressions in the test results on a wide range of distributions and +architectures. + +Once the stabilization period has ended the time has finally come to proceed +with the release. NOTE: The string YYYYMMDD should be substituted to the current date. -1. Tag the git --------------- +2. Prepare the release notes +---------------------------- + +Part of the preparation is also to write the release notes, which are then add +to GitHub release and also send as announcement to various mailing list (see below). + +Have a look at https://lore.kernel.org/ltp/ZGNiQ1sMGvPU_ETp@yuki/ to get the +idea how it should look. + +3. Tag the git and push changes to github +----------------------------------------- [source,sh] -------------------------------------------------------------------- cd ltp echo YYYYMMDD > VERSION -git commit -s -m 'LTP YYYYMMDD' VERSION -git tag -a YYYYMMDD -m 'LTP YYYYMMDD' +git commit -S -s -m 'LTP YYYYMMDD' VERSION +git tag -s -a YYYYMMDD -m 'LTP YYYYMMDD' +git push origin master:master +git push origin YYYYMMDD -------------------------------------------------------------------- -2. Push changes to github -------------------------- +NOTE: You can use './tools/tag-release.sh' script to have the above automated. + It allows you to verify the tag before pushing it and does other checks. + [source,sh] -------------------------------------------------------------------- -git push -git push --tags +$ ./tools/tag-release.sh +===== git push ===== +echo "new tag: 'YYYYMMDD', previous tag: '20230127'" +tag YYYYMMDD +Tagger: Person-who-released LTP +Date: Tue May 16 07:08:27 2023 +0200 + +LTP YYYYMMDD +-----BEGIN PGP SIGNATURE----- + +iQJDBAABCAAtFiEEIBb+pIWLHDazLoM6wN7C7nLzOl8FAmRjD8sPHHB2b3JlbEBz +... +-----END PGP SIGNATURE----- + +commit 3ebc2dfa85c2445bb68d8c0d66e33c4da1e1b3a7 +gpg: Signature made Tue 16 May 2023 07:08:08 AM CEST +gpg: using RSA key 2016FEA4858B1C36B32E833AC0DEC2EE72F33A5F +... +Primary key fingerprint: 2016 FEA4 858B 1C36 B32E 833A C0DE C2EE 72F3 3A5F +Author: Person-who-released LTP +Date: Tue May 16 07:08:08 2023 +0200 + + LTP YYYYMMDD + + Signed-off-by: Person-who-released LTP + +diff --git a/VERSION b/VERSION +index af4c41fec..ae488c0e7 100644 +--- a/VERSION ++++ b/VERSION +@@ -1 +1 @@ +-20230127 ++YYYYMMDD + +Please check tag and signature. Proceed? [N/y]: y +Pushing changes to upstream git. Proceed? [N/y]: y +Enumerating objects: 1, done. +Counting objects: 100% (1/1), done. +Writing objects: 100% (1/1), 811 bytes | 811.00 KiB/s, done. +Total 1 (delta 0), reused 1 (delta 0), pack-reused 0 +To github.com:linux-test-project/ltp.git + * [new tag] YYYYMMDD -> YYYYMMDD -------------------------------------------------------------------- -3. Prepare tarballs -------------------- +4. Prepare tarballs and metadata documentation +---------------------------------------------- + [source,sh] -------------------------------------------------------------------- +# clone already clonned git repository to new folder cd .. git clone ltp ltp-full-YYYYMMDD cd ltp-full-YYYYMMDD -# Update mce-inject submodule -git submodule init -git submodule update + +# update all submodules +git submodule update --init + # Generate configure script make autotools -# Prepare the archives + +# Generate tarballs cd .. tar -cjf ltp-full-YYYYMMDD.tar.bz2 ltp-full-YYYYMMDD --exclude .git tar -cJf ltp-full-YYYYMMDD.tar.xz ltp-full-YYYYMMDD --exclude .git + +# Generate checksums +md5 ltp-full-YYYYMMDD.tar.xz > ltp-full-YYYYMMDD.tar.xz.md5 +sha1 ltp-full-YYYYMMDD.tar.xz > ltp-full-YYYYMMDD.tar.xz.sha1 +sha256sum ltp-full-YYYYMMDD.tar.xz > ltp-full-YYYYMMDD.tar.xz.sha256 + +# Generate metadata documentation +./configure --with-metadata-generator=asciidoctor +make -C metadata +cp -v docparse/metadata.html ../metadata.YYYYMMDD.html -------------------------------------------------------------------- -4. Upload the tarballs to GitHub --------------------------------- +NOTE: You can use './tools/create-tarballs-metadata.sh' script to have the + above automated. All generated files are placed in ltp-release-YYYYMMDD + directory. -Click on 'releases' then switch to 'tags' then click on 'Add release notes' there should be 'Attach binaries ...' link at the bottom of the page. +[source,sh] +-------------------------------------------------------------------- +$ ./tools/create-tarballs-metadata.sh +===== git clone ===== +Cloning into 'ltp-full-YYYYMMDD'... +done. +===== Update submodules ===== +Submodule 'tools/kirk' (https://github.com/linux-test-project/kirk.git) registered for path 'tools/kirk' +Submodule 'tools/ltx/ltx-src' (https://github.com/linux-test-project/ltx.git) registered for path 'tools/ltx/ltx-src' +Submodule 'tools/sparse/sparse-src' (git://git.kernel.org/pub/scm/devel/sparse/sparse.git) registered for path 'tools/sparse/sparse-src' +... +===== Generate configure script ===== +sed -n '1{s:LTP-:m4_define([LTP_VERSION],[:;s:$:]):;p;q}' VERSION > m4/ltp-version.m4 +aclocal -I m4 +autoconf +autoheader +automake -c -a +configure.ac:21: installing './compile' +... +make[1]: Leaving directory '/home/foo/ltp-release-YYYYMMDD/ltp-full-YYYYMMDD/testcases/open_posix_testsuite' +===== Generate tarballs ===== +===== Generate checksums ===== +===== Generate metadata documentation ===== +checking for a BSD-compatible install... /usr/bin/install -c +... +asciidoctor -d book metadata.txt -b xhtml +make[1]: Leaving directory '/home/foo/ltp-release-YYYYMMDD/ltp-full-YYYYMMDD/docparse' +make: Leaving directory '/home/foo/ltp-release-YYYYMMDD/ltp-full-YYYYMMDD/metadata' +'docparse/metadata.html' -> '/home/foo/ltp-release-YYYYMMDD/metadata.YYYYMMDD.html' +Generated files are in '/home/foo/ltp-release-YYYYMMDD', upload them to github +-------------------------------------------------------------------- -Don't forget to upload md5 and sha-1 sums for the tarballs as well. +5. Upload the generated files to GitHub +--------------------------------------- + +Click on 'releases' then switch to 'tags', then click on 'Add release notes'. +There should be 'Attach binaries ...' link at the bottom of the page. + +Don't forget to upload checksums for the tarballs and metadata documentation as well. 5. Send release announcement ---------------------------- -Have a look at http://sourceforge.net/p/ltp/mailman/message/34429656/ to get the idea how it should look. - The announcement is send to: * ltp at lists.linux.it @@ -64,4 +180,4 @@ CCed to: * lwn at lwn.net * akpm at linux-foundation.org -* torvalds at linux-foundation.org. \ No newline at end of file +* torvalds at linux-foundation.org. From patchwork Wed Sep 27 20:21:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1840436 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=LMhFezTE; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=BGSqhj/o; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rwp203G1tz1yp0 for ; Thu, 28 Sep 2023 06:22:32 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 86B053CE18D for ; Wed, 27 Sep 2023 22:22:30 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 57F7A3CBA91 for ; Wed, 27 Sep 2023 22:21:28 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id D06B61A00EAC for ; Wed, 27 Sep 2023 22:21:27 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7DB181F895; Wed, 27 Sep 2023 20:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1695846087; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HC0YnXdYz5UHo37NQ8HEGgaqFyeWC0V+sKw+ix4JSxc=; b=LMhFezTEcqX43u3z15yOM3h+42bXsHNajyPfDW5WF61fCjWOn1OEajYCdD2XhsLpNpI2fC 0OsqmTU9lkeyYKMKJPem/IG5rxQS2+MadKTZe+fexd6W3ojSr4b3VXQQfdhp8407JVNIVJ 47GNKmvmbGw2W5vr0JU/SesEdOolhwo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1695846087; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HC0YnXdYz5UHo37NQ8HEGgaqFyeWC0V+sKw+ix4JSxc=; b=BGSqhj/oixzQFWCw7B6FPcPrPuudtx2lu+94Uu+iaJVXa3XirgqM1gEHbBAFulw+jDO+j6 EpnDFADRt/n2neAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0F39713479; Wed, 27 Sep 2023 20:21:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eAGyAceOFGWGewAAMHmgww (envelope-from ); Wed, 27 Sep 2023 20:21:27 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 27 Sep 2023 22:21:21 +0200 Message-Id: <20230927202121.300325-7-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230927202121.300325-1-pvorel@suse.cz> References: <20230927202121.300325-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH v2 6/6] Remove Makefile.release X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" We now prefer to do local clone instead of make distclean. Signed-off-by: Petr Vorel --- Makefile.release | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 Makefile.release diff --git a/Makefile.release b/Makefile.release deleted file mode 100644 index c81925de5..000000000 --- a/Makefile.release +++ /dev/null @@ -1,46 +0,0 @@ -# -# Release Makefile for LTP. -# -# Copyright (C) 2010, Copyrights-are-for-losers, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Invoke like: -# -# make -f Makefile.release release TARBALL_VERSION=FOO -# -# Cheers. -# - -top_srcdir ?= $(CURDIR) - -include $(top_srcdir)/include/mk/env_pre.mk -include $(top_srcdir)/include/mk/automake.mk - -TARBALL_PREFIX ?= ltp - -ifneq ($(wildcard $(top_srcdir)/Version),) -TARBALL_VERSION ?= $(shell $(top_srcdir)/Version) -endif - -TARBALL_VERSION ?= $(error you must either make Version via make $$PWD/Version or specify an LTP version via TARBALL_VERSION) - -TARBALL := $(TARBALL_PREFIX)-$(TARBALL_VERSION).tgz - -clean: - $(MAKE) -f Makefile $@ - -release: | autotools distclean - tar -cvz --exclude "$(TARBALL)" -f $(TARBALL) .