Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2726079rwr; Fri, 28 Apr 2023 15:04:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4tLRPGC52mhesfk8qcGi3Xm1RwUFHkl6m/xaa825Ce+qUjhTQkavCFRme7Jn2QxzAnGtkd X-Received: by 2002:a17:90a:15:b0:249:64da:2f41 with SMTP id 21-20020a17090a001500b0024964da2f41mr5998078pja.4.1682719483254; Fri, 28 Apr 2023 15:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682719483; cv=none; d=google.com; s=arc-20160816; b=cYIX8m4vwgZCEQufJJQWY1GN0NmM3T26aRmYu66Mg2k5OeDuqcP0VC8NTAjC3ER0am L+LlhbOamXWRDggFSRk4BVfETGfbCt7OG1xul/09QiZan1utkFa7vYQwm/2lUvTK2Fso gZSn37B0KXKZSlnw9cKQQBNoG1cAXr0Ef8pR2OWbK4Br/lMSn7w0RZd4ZuGO14keA3gb 6PZyzwz6oImjsoTDx/k23sPhKBga5xY3a0rmQZAj/dgycomR76T7Cnlw9bwyG3QI8YUK 8bRRBl6qCl1V8F07sI9yk+TRm49gWLTeb5bNe5blJ9j9evzXJnpUEVwX3HtRvAr/wFHl CbRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=bn6LwJuo2+bY9QOUZ8hLpI3RpSEOxZf/aUXO7vkkRNA=; b=yGxkKvcUmwvrTLyWOIqvleJvZ8+QKa7f0Y4DMIxfAnuT7VyQBM6WHbFb1jCAs3hJH5 5qe9+hNHLIKTgNzByTf9LOGBGD9YKS6l6frYjDV0CfrxtW3XdHsZNjvCf5h0f1IurKeX /iyU9xi1Gxyya1fx/XwmH2Tnj46KSePqDq+7TPdzS68zrF0vdbMRlpDQJ9BSNGGx0dsm /qy/wVukcbsgQdYKDATmIYgBIbWGmAnkARJ8ukkoEZZTz/q/kBISwFrKOR7P1A6SFwQf X65rxPHw/7EFYYKcQJjoTTuRHrJOWJ7FI+5MiRBUBYBN/S8eBrHirJDPhpaQ/clkxYI4 AgLg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a170903111100b0019e2bd0fea8si22743560plh.143.2023.04.28.15.04.11; Fri, 28 Apr 2023 15:04:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345675AbjD1V6I convert rfc822-to-8bit (ORCPT + 99 others); Fri, 28 Apr 2023 17:58:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbjD1V6G (ORCPT ); Fri, 28 Apr 2023 17:58:06 -0400 Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22EA640CB for ; Fri, 28 Apr 2023 14:58:05 -0700 (PDT) Received: from omf07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 1E2D2160362; Fri, 28 Apr 2023 21:58:04 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA id 433E720024; Fri, 28 Apr 2023 21:58:02 +0000 (UTC) Message-ID: <2a0436c3a3e5345de70f7ba1067afb2a0475e63f.camel@perches.com> Subject: Re: get_maintainer.pl wrong and undeterministic? (was: Re: [PATCH v2 2/2] usb: gadget: udc: Handle gadget_connect failure during bind operation) From: Joe Perches To: Geert Uytterhoeven , Krishna Kurapati PSSNV Cc: Linux Kernel Mailing List Date: Fri, 28 Apr 2023 14:58:00 -0700 In-Reply-To: References: <20230328160756.30520-1-quic_kriskura@quicinc.com> <20230328160756.30520-3-quic_kriskura@quicinc.com> <2070d2fc-9bdc-57f8-d789-4fa6412fc7ed@quicinc.com> <592c2095-a6dc-de4b-713d-a9a582f966e0@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Rspamd-Queue-Id: 433E720024 X-Stat-Signature: tg4gzi8z5dnrfopirtcnyee7cp1upe7t X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Rspamd-Server: rspamout07 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+sTBP9OM4+l0bjgJPwA2018H7KiqBaR6E= X-HE-Tag: 1682719082-400789 X-HE-Meta: U2FsdGVkX18cCEIFGFWvtlSmwtRfYN1a5Bv05E9vRR8hM4mqOQKf4f2qU18Su1my4lvjtDR6NfyvPPf39x1d6g== 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 Thu, 2023-04-27 at 11:09 +0200, Geert Uytterhoeven wrote: > Hi Krishna, > > CC Joe and lkml get_maintainer is sometimes non deterministic. When adding maintainers from git commit logs (and btw, it's not just nominal maintainers, it's any signers), if the same number of signature names are read from the commit logs the selection of the listed entries _is_ random. see: https://lore.kernel.org/lkml/1499984554.4457.64.camel@perches.com/ > > On Thu, Apr 27, 2023 at 10:44 AM Krishna Kurapati PSSNV > wrote: > > On 4/27/2023 1:23 PM, Geert Uytterhoeven wrote: > > > On Thu, Apr 27, 2023 at 5:49 AM Krishna Kurapati PSSNV > > > wrote: > > > > On 4/26/2023 2:48 PM, Geert Uytterhoeven wrote: > > > > > On Wed, Apr 26, 2023 at 3:17 AM Krishna Kurapati PSSNV to l > > > > > wrote: > > > > > > Hi Alan, Geert, > > > > > > > > > > > > Can you help review and provide comments/approval on the following patch. > > > > > > > > > > I don't know why you are addressing me, as I never touched the affected > > > > > file, am not listed as its maintainer, and don't know much about USB UDC. > > > > > > > Apologies. I must have caused some confusion because of same name. I > > > > must have specified clearly whom I was referring to. > > > > > > > > I CC'd and was referring to Geert Uytterhoeven > > > > for comments. > > > > > > That's actually me, too ;-) > > > > > > > As per the output of get_maintainer.pl > > > > > > > > ./scripts/get_maintainer.pl drivers/usb/gadget/udc/core.c > > > > > > > > Greg Kroah-Hartman (supporter:USB > > > > SUBSYSTEM,commit_signer:6/6=100%,authored:1/6=17%,removed_lines:2/26=8%) > > > > Alan Stern > > > > (commit_signer:4/6=67%,authored:3/6=50%,added_lines:36/45=80%,removed_lines:17/26=65%) > > > > TaoXue (commit_signer:1/6=17%) > > > > "Rafael J. Wysocki" (commit_signer:1/6=17%) > > > > Geert Uytterhoeven (commit_signer:1/6=17%) > > > > Colin Ian King (authored:1/6=17%) > > > > Jiantao Zhang > > > > (authored:1/6=17%,added_lines:6/45=13%,removed_lines:6/26=23%) > > > > > > Interesting, I don't see me listed when running that command (on v6.3 and > > > next-20230425), and I never authored any change to that file. > > > What is the tree (commit sha1) you are running ./scripts/get_maintainer.pl on? > > > > I checked it on linux-next a couple of weeks back and it showed me this. > > But when I synced latest linux kernel, it didn't show it today ???? > > Not sure, what is the diff here. > > Interesting: > > $ git checkout next-20230425 > Updating files: 100% (7386/7386), done. > Previous HEAD position was 198925fae644b009 Add linux-next > specific files for 20230329 > HEAD is now at f600e0bbde8562a0 Add linux-next specific files for 20230425 > $ scripts/get_maintainer.pl drivers/usb/gadget/udc/core.c > Greg Kroah-Hartman (supporter:USB > SUBSYSTEM,commit_signer:11/11=100%,authored:3/11=27%,removed_lines:5/73=7%) > Alan Stern > (commit_signer:4/11=36%,authored:3/11=27%,added_lines:36/182=20%,removed_lines:17/73=23%) > Badhri Jagan Sridharan > (commit_signer:2/11=18%,authored:2/11=18%,added_lines:107/182=59%,removed_lines:44/73=60%) > Elson Roy Serrao > (commit_signer:1/11=9%,added_lines:27/182=15%) > Sebastian Reichel (commit_signer:1/11=9%) > Colin Ian King (authored:1/11=9%) > Jiantao Zhang > (authored:1/11=9%,removed_lines:6/73=8%) > linux-usb@vger.kernel.org (open list:USB SUBSYSTEM) > linux-kernel@vger.kernel.org (open list) > $ git checkout next-20230329 > Updating files: 100% (7386/7386), done. > Previous HEAD position was f600e0bbde8562a0 Add linux-next > specific files for 20230425 > HEAD is now at 198925fae644b009 Add linux-next specific files for 20230329 > $ scripts/get_maintainer.pl drivers/usb/gadget/udc/core.c > Greg Kroah-Hartman (supporter:USB > SUBSYSTEM,commit_signer:8/8=100%,authored:3/8=38%,added_lines:5/48=10%,removed_lines:5/29=17%) > Alan Stern > (commit_signer:3/8=50%,authored:3/8=38%,added_lines:36/48=75%,removed_lines:17/29=59%) > Geert Uytterhoeven (commit_signer:1/8=12%) > Sebastian Reichel (commit_signer:1/8=12%) > Heikki Krogerus (commit_signer:1/8=12%) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > I, Sebastian, and Heikki never touched this file... > > Jiantao Zhang > (authored:1/8=12%,added_lines:6/48=12%,removed_lines:6/29=21%) > Colin Ian King (authored:1/8=12%) > linux-usb@vger.kernel.org (open list:USB SUBSYSTEM) > linux-kernel@vger.kernel.org (open list) > $ scripts/get_maintainer.pl drivers/usb/gadget/udc/core.c > Greg Kroah-Hartman (supporter:USB > SUBSYSTEM,commit_signer:8/8=100%,authored:3/8=38%,added_lines:5/48=10%,removed_lines:5/29=17%) > Alan Stern > (commit_signer:4/8=50%,authored:3/8=38%,added_lines:36/48=75%,removed_lines:17/29=59%) > "Rafael J. Wysocki" (commit_signer:1/8=12%) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Heikki and I are gone, but Rafael is new and also hasn't touched this file? > > Colin Ian King > (commit_signer:1/8=12%,authored:1/8=12%) > Sebastian Reichel (commit_signer:1/8=12%) > Jiantao Zhang > (authored:1/8=12%,added_lines:6/48=12%,removed_lines:6/29=21%) > linux-usb@vger.kernel.org (open list:USB SUBSYSTEM) > linux-kernel@vger.kernel.org (open list) > > You can see the differences when running the following multiple times: > > $ diff <(scripts/get_maintainer.pl drivers/usb/gadget/udc/core.c) > <(scripts/get_maintainer.pl drivers/usb/gadget/udc/core.c) > > Looks like scripts/get_maintainer.pl (a) shows wrong committers (they > did provide other e.g. Reviewed-by tags), and (b) is not deterministic? > > Thanks! > > Gr{oetje,eeting}s, > > Geert >