Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp1397lfb; Wed, 11 May 2022 08:14:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNt9Bcv4f1FzQ8uSCyG/mb9rl0prrxkiYiGzF8/krKczMNz7m/EUnMdY2tH73adD/z7F4M X-Received: by 2002:a17:903:290:b0:15c:1c87:e66c with SMTP id j16-20020a170903029000b0015c1c87e66cmr26086316plr.61.1652282072826; Wed, 11 May 2022 08:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652282072; cv=none; d=google.com; s=arc-20160816; b=DMev6eNFwr03tzsEypROSilZui9yb3OvUzvipeVML7TH+ldUbOehpWckKje41lYLJW NZU/GI49/i58xXXe/NIE5YVn49X4lQ20GVu9jrTECsmkqHYnI3ENI/EVEpgODdagwIoU yvI6YIcjZzqpYEH4uRb5T4hmqHBVXWB25YQqApyNWuqrOjA+FjpiZ5uTIpq8pFxUwwUw yZeLze62D1hIKOlTIMA4Ru7z3EV97K31lxtxzyjzISlozVram9PYqwB1MgP5XY1xddEV GITJSSuURPHjzEBmx+au8xJIa89N1L7za84CPhOFd75HuRdN25tJy0sQXFBlnpm5VxoE KBOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GsXGnGW71xdRX9TpipcU/BgXrkcWkUlQ6Hr+Y0283Ws=; b=QfGrJjVvOJz+S44VWjmzJsZgK0GqDG++F9QWqJvJZ5LYvBBqixRO0ZllqgOtlCSyzp K7CjMZg8WE34OTA+CfSp4CDz3BH9MTuew20Vb4DHEsus2XhRr+X6PLmKmLdeMPIc2Z+A 29srEGRBgna4u8KrcxZDMeSVjedWxPx/sltrSppxfhegVrtXI4zxKdZ29HtHRrgAzxnj 5JB6nCwyNha5wKwf2uO3I8ve+kVII+grq99/tZfbaZHbjW4NupRM1CNEKF0Y1Rtx13uj 7R4qtR5h/ISjOF+qtjehtdueY66BazPl2p8RokAflm2JvNECj1aN05FKDMi+Zrl7w/Gr 8gAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=SJKkejdO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a170903120c00b0015ce750db24si3131204plh.486.2022.05.11.08.13.47; Wed, 11 May 2022 08:14:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=SJKkejdO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242794AbiEKMvq (ORCPT + 99 others); Wed, 11 May 2022 08:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242779AbiEKMvp (ORCPT ); Wed, 11 May 2022 08:51:45 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7209663FD for ; Wed, 11 May 2022 05:51:43 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id kj8so1987254qvb.6 for ; Wed, 11 May 2022 05:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GsXGnGW71xdRX9TpipcU/BgXrkcWkUlQ6Hr+Y0283Ws=; b=SJKkejdOYKhF2vFLREb+t7eLHhIpRD45lCN4nN5wEWJQugUtw0YzSZkfi22MOUqkJv 8G1C3Qi4HsXBluNkNm4uTJTXoY8utMjoPUF7Kfi6GlVA5k0Vfc6TMSTt3intwDiqUgJb HJDfUeNwkOMenrFH4SNbRVVzV7TMh/U0TT5zw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GsXGnGW71xdRX9TpipcU/BgXrkcWkUlQ6Hr+Y0283Ws=; b=ojLZVNPfdXdwQjPO+x6TQ81IxNXmZWUl0j+HWjySu7VkEJ1+W2aJos+CHt3ZJhUM+q 03NA09xwzgpxJmH+zRU8qPH1CEsxrBxP1A+Swu+KZQI0W6Ut45lBFgMSOKUp/+YhoFlf QJbuPHacT+sTAxIP0SjLH8FJWkhvGGjNrjUN9lOwQHw3tjdkRMb+JIc41tGinsZt45hc uo4lAes3aY3N91k7iU2MWfo8S0HPW8IDvvXWF+HsxqWQmUG+rkW9NjXS4KyAeeDQvSU4 1SQWSWW/8K/+tV/nhObWCdSiq5zXEYg1z3CqH/b+MdnAsl3XwBjXD/55kwABRKeXYjWJ j1Mw== X-Gm-Message-State: AOAM532UTHvhJ81asBENGPTRfz1be9LgCugFWooRaYiYRFsDL1kmvmWt NOaNYNdj2tJ0AyemVaIq4KYe7A== X-Received: by 2002:a0c:a699:0:b0:45a:b237:e066 with SMTP id t25-20020a0ca699000000b0045ab237e066mr22195445qva.49.1652273502923; Wed, 11 May 2022 05:51:42 -0700 (PDT) Received: from meerkat.local (bras-base-mtrlpq5031w-grc-32-216-209-220-127.dsl.bell.ca. [216.209.220.127]) by smtp.gmail.com with ESMTPSA id h26-20020ac8505a000000b002f39b99f672sm1043718qtm.12.2022.05.11.05.51.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 05:51:42 -0700 (PDT) Date: Wed, 11 May 2022 08:51:40 -0400 From: Konstantin Ryabitsev To: Linus Torvalds Cc: Nathan Chancellor , "Michael S. Tsirkin" , KVM list , virtualization@lists.linux-foundation.org, Netdev , Linux Kernel Mailing List , mie@igel.co.jp Subject: Re: [GIT PULL] virtio: last minute fixup Message-ID: <20220511125140.ormw47yluv4btiey@meerkat.local> References: <20220510082351-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 10, 2022 at 04:50:47PM -0700, Linus Torvalds wrote: > > For what it's worth, as someone who is frequently tracking down and > > reporting issues, a link to the mailing list post in the commit message > > makes it much easier to get these reports into the right hands, as the > > original posting is going to have all relevant parties in one location > > and it will usually have all the context necessary to triage the > > problem. > > Honestly, I think such a thing would be trivial to automate with > something like just a patch-id lookup, rather than a "Link:". I'm not sure that's quite reliable, and I'm speaking from experience of running git-patchwork-bot, which attempts to match commits to patches. Patch-id has these important disadvantages: 1. git-patch-id can be fragile: if the maintainer changes things like add curly braces, rename a variable, or edit a code comment for clarity, the patch-id stops matching. This happens routinely with git-patchwork-bot, and patchwork uses an even laxer algorithm than git-patch-id. In fact, I had to hack git-patchwork-bot to fall back on Link: tags to match by message-id to address some of the maintainers' complaints. 2. git-patch-id doesn't include author/date/commit message: which can actually be important for establishing provenance and attribution and can confuse automation. E.g. an author submits a patch as part of a large series, gets told to break it apart, then submits it as part of a different series. Automated processes trying to match commits to submissions won't be able to tell from which series the commit came from. Cregit folks (cregit.linuxsources.org) have encountered all of these and I know from talking to them that they are quite happy to have a way to match commit provenance to the exact messages in the archives. > Wouldn't it be cool if you had some webby interface to just go from > commit SHA1 to patch ID to a lore.kernel.org lookup of where said > patch was done? Yes, it's https://cregit.linuxsources.org/ and it's... okay. :) It certainly doesn't manage to match all commits to patches despite having access to all of lore.kernel.org archives. > My argument here really is that "find where this commit was posted" is > > (a) not generally the most interesting thing > > (b) doesn't even need that "Link:" line. > > but what *is* interesting, and where the "Link:" line is very useful, > is finding where the original problem that *caused* that patch to be > posted in the first place. I think the disconnect here is that you're approaching this from the perspective of a human being, while what many want is a dumb and reliable way to match commits to ML submissions, which will allow improving unattended automation. > So that whole "searching is often an option" is true for pretty much > _any_ Link:, but I think that for the whole "original submission" it's > so mindless and can be automated that it really doesn't add much real > value at all. Believe me, I've tried, and I really, really like having a fool-proof way to match commits directly to the exact ML submissions. :( Even a 99%-reliable fuzzy matching algorithm has enough of a failure rate that causes maintainers to get annoyed -- I have many "git-patchwork-bot missed this commit" complaints in the queue to prove this. I think we should simply disambiguate the trailer added by tooling like b4. Instead of using Link:, it can go back to using Message-Id, which is already standard with git -- it's trivial for git.kernel.org to link them to lore.kernel.org. Before: Signed-off-by: Main Tainer Link: https://lore.kernel.org/r/CAHk-=wgAk3NEJ2PHtb0jXzCUOGytiHLq=rzjkFKfpiuH-SROgA@mail.gmail.com After: Signed-off-by: Main Tainer Message-Id: This would allow people to still use Link: for things like linking to actual ML discussions. I know this pollutes commits a bit, but I would argue that this is a worthwhile trade-off that allows us to improve our automation and better scale maintainers. -K