Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2E7DC7618A for ; Fri, 17 Mar 2023 16:59:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbjCQQ7P (ORCPT ); Fri, 17 Mar 2023 12:59:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjCQQ7N (ORCPT ); Fri, 17 Mar 2023 12:59:13 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53AD71C337 for ; Fri, 17 Mar 2023 09:59:10 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id s41so4238190oiw.13 for ; Fri, 17 Mar 2023 09:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1679072349; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jbbDQn1A8vthNnznohW7ycJC/LEOJ/kpAS8HmP79G5g=; b=HosbYxwVB7RIW33gKBDWMmwLOhKGvlQ3pOlPd4hpefavfzJ1clj7h2TS2GbVSRi3uv 5eWdDD6HNSDbE1q2T4S66Is7Y7mDSLwPSefJVSNMny17IkWwzWxqqNJuXHfrwDMCP0Lf Er08wiZ2p6fHKOKrldHeWmqSXww/CV7Ehyx2U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679072349; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jbbDQn1A8vthNnznohW7ycJC/LEOJ/kpAS8HmP79G5g=; b=f2zPFj2c+lmRCvXtLnJ4ITr4XCNQ/ld8/zgWpe7E2y8bWQ/WcHEBkoCqixnAhxaewy 9mCRbIGyLj5ZkZ/7mubky/EkqP6wN4AvteTqjhQzFtaIdY1uKVFw8dUBc+Yb8b5VVfLY uOvoG8lQn99kMfsc4AoEhQesmdreikLdkiDXnctSY2jBINn2HgEaaZ0wsPkdW3KOmG80 PTW3tmiOq1Ixvl/8v7YMW7iJu9ISedoJLp2GCjneqkKmnwbW8tffJzGAhch2GFhF0cqE 1CJSM+rulSAz5n6onshchw/n+cjGYCM7a+J5Qf73cfS6ejSC8565M4EnNW4uQpqKZPWZ 36Yg== X-Gm-Message-State: AO0yUKXb6u+YonlE6VFbyLuSIKxwZNwk+JrewfUGuivIEKWozpRp2LWY zOypTqdPVfUVA2QYSoUCgxYMzRrR/cukvAiUZcrScA== X-Google-Smtp-Source: AK7set+L2zleSfw5fVN0Oec1LbJ1X8C6NBaaRrjgnvp15TLcoL2wN9zgbF7gOISJ1rJb3tqW4k+GpBrcUV+ZbvYwyes= X-Received: by 2002:a05:6808:b30:b0:386:bc3c:408b with SMTP id t16-20020a0568080b3000b00386bc3c408bmr1917639oij.8.1679072349591; Fri, 17 Mar 2023 09:59:09 -0700 (PDT) MIME-Version: 1.0 References: <20230314-doc-checkpatch-closes-tag-v1-0-1b83072e9a9a@tessares.net> <81f8be3e-4860-baf9-8e13-fec3a103245b@tessares.net> In-Reply-To: From: Daniel Vetter Date: Fri, 17 Mar 2023 17:58:58 +0100 Message-ID: Subject: Re: [PATCH 0/2] docs & checkpatch: allow Closes tags with links To: Linus Torvalds Cc: Matthieu Baerts , Thorsten Leemhuis , Jonathan Corbet , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , =?UTF-8?Q?Kai_Wasserb=C3=A4ch?= , Andrew Morton , David Airlie , Konstantin Ryabitsev , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, mptcp@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Mar 2023 at 18:30, Linus Torvalds wrote: > > On Thu, Mar 16, 2023 at 4:43=E2=80=AFAM Matthieu Baerts > wrote: > > > > @Linus: in short, we would like to continue using the "Closes:" tag (or > > similar, see below) with a URL in commit messages. They are useful to > > have public bug trackers doing automated actions like closing a specifi= c > > ticket. Any objection from your side? > > As long as it's a public link, I guess that just documents what the > drm people have been doing. > > I'm not convinced "Closes" is actually any better than just "Link:", > though. I would very much hope and expect that the actual closing of > any bug report is actually done separately and verified, rather than > some kind of automated "well, the commit says it closes it, so.." > > So honestly, I feel like "Link:" is just a better thing, and I worry > that "Closes:" is then going to be used for random internal crap. > We've very much seen people wanting to do that - having their own > private bug trackers, and then using the commit message to refer to > them, which I am *violently* against. If it's only useful to some > closed community, it shouldn't be in the public commits. Yeah I think that's fine. The bot can then autogenerate a request in the bug report to confirm that it's fixed, and ask the reporter to close in that case. And then maybe if there's no message a few weeks after the release, auto-close or something. Bot needs to make sure it's only parsing tags for the instance it's botting for anyway, so overloading Link: with all the meanings (absolutely all themeanings!) is not really a problem since Closes: has the same issue if different subsystems use it for different bug tracking needs. > And while the current GPU people seem to use "Closes:" the right way > (and maybe some other groups do too - but it does seem to be mostly a > freedesktop thing), I really think it is amenable to mis-use in ways > "Link:" is not. Huh I didn't realize this picked up. Way back we used Bugzilla: for this sometimes, but I think just using Link: for everything and letting instance-specific bots figure out whether it's relevant for them should be perfectly fine. Humans should have no problem parsing meaning out of a tag soup anyway (I mean we have Cc: stable meaning backport after all, and I think that address is a blackhole). I guess if you feel strongly we can percolate this a bit to submaintainers and contributors in drm. -Daniel > The point of "Link:" is explicitly two-fold: > > - it makes it quite obvious that you expect an actual valid web-link, > not some internal garbage > > - random people always want random extensions, and "Link:" is > _designed_ to counter-act that creeping "let's add a random new tag" > disease. It's very explicitly "any relevant link". > > and I really question the value of adding new types of tags, > particularly ones that seem almost designed to be mis-used. > > So I'm not violently against it, and 99% of the existing uses seem > fine. But I do note that some of the early "Closes:" tags in the > kernel were very much complete garbage, and exactly the kind of thing > that I absolutely detest. > > What does > > Closes: 10437 > > mean? That's crazy talk. (And yes, in that case it was a > kernel.bugzilla.org number, which is perfectly fine, but I'm using it > as a very real example of how "Closes:" ends up being very naturally > to mis-use). > > End result: I don't hate our current "Closes:" uses. But I'm very wary of= it. > > I'm not at all convinced that it really adds a lot of value over > "Link:", and I am, _very_ aware of how easily it can be then taken to > be a "let's use our own bug tracker cookies here". > > So I will neither endorse nor condemn it, but if I see people using it > wrong, I will absolutely put my foot down. > > Linus --=20 Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch