From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DFA1642671; Fri, 29 Sep 2023 11:21:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6BA1402B1; Fri, 29 Sep 2023 11:21:23 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 0A98540287 for ; Fri, 29 Sep 2023 11:21:21 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38T27fvf021104; Fri, 29 Sep 2023 02:21:21 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2049.outbound.protection.outlook.com [104.47.66.49]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3tcrrs7vgq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 02:21:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J74aRpQ1BdpwldFm9j9XSLdScVNjqhVlncPFbNf69kffPHmHIHVcNVehHpByzbrgVCUza6yhHdaSdxFTmTwSVLgRgyXmwFehh3XKvgpP4GF657BBerheriM6gRewCiLUNhKxdrUCrt93LtvbOb8RSveDTffn3qiJ6PXJG9u2R0/x385uuIJjrkU4+YkDbHgf2DylxxjLs8cEgC2AJe6RHybguZ5ivtjqmcnVPqxwTyv0gvXNuC5FQ5a5imowmVjAuuFL4VeLa1+Mlr9MQfVCMquDYJ03L209PrOMiYwdJgNEifo5ZNd+z3PVUY/Oyaa3yOeRcFLi2tTvviJh2DgwvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=a4Ju9xyoBDjKlHv5+ytfevM4Mk3ZkTYrrzzP1/R94AU=; b=VGQMMjm6OQ36LjmmdCiiCrfSlMp17aJd4PZwMkdPi1Y/JQuKJTE/CbN+83m7CuQz81iNLdqo5okavIVwmQb6K+wukPyrzVtbQbxElfyznFcG+uip5Rj6FT9IkO8jUDqukTEVgoX2vpbcf4R30pTNN9EA467Mqs0YwjP8sSrMx0NyjyoHjcCAeoECqU8OodT0pmR9IjRQaUpAtk+AOvVUzlYngi7Zqv//qZjDbFvuj0Ys9sAPGz5WTORz/vRxYv3l3X8QHUFLLGh4Qix32xBu/gPEeHkq2AwJ+kL/GoVplAysBTd1aRnsuFn5u+T0PlcsQPjMTV72U4epuvrzuf98UQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a4Ju9xyoBDjKlHv5+ytfevM4Mk3ZkTYrrzzP1/R94AU=; b=gq9NT85Du3r4Z0VTjG/sgO9wGPASIEHP7OCS9gl4I/xSnkhBmAppgAuD1aGjj3BkfUbzeAEitJUisuDVHr+uyXBRM85eF0ePyNjzZ5dqXV5veTNDXuLYjAKZD/eSybRmEpsaXqDqII3O62I20s40Sgt7+CTlfLs4o/BnnTJN92E= Received: from PH0PR18MB4086.namprd18.prod.outlook.com (2603:10b6:510:3::9) by MN2PR18MB3575.namprd18.prod.outlook.com (2603:10b6:208:26f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Fri, 29 Sep 2023 09:21:17 +0000 Received: from PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::e6de:4d63:8f64:f0b1]) by PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::e6de:4d63:8f64:f0b1%4]) with mapi id 15.20.6813.017; Fri, 29 Sep 2023 09:21:17 +0000 From: Pavan Nikhilesh Bhagavatula To: Pavan Nikhilesh Bhagavatula , Jerin Jacob Kollanukkaran , "alialnu@nvidia.com" , "aconole@redhat.com" CC: "ci@dpdk.org" Subject: RE: [PATCH] pw_maintainers_cli: enhance tree selection Thread-Topic: [PATCH] pw_maintainers_cli: enhance tree selection Thread-Index: AQHZ8q/UXHA2AM0+ik2PxR9CEJEf3rAxhtxA Date: Fri, 29 Sep 2023 09:21:16 +0000 Message-ID: References: <20230929083443.9925-1-pbhagavatula@marvell.com> In-Reply-To: <20230929083443.9925-1-pbhagavatula@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4086:EE_|MN2PR18MB3575:EE_ x-ms-office365-filtering-correlation-id: 2fff3536-ca6f-48b9-32a1-08dbc0cd6f25 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZuPkXfimt86b6dfTDU6iY06GMQkbifs5fL06ER39i4BCtEWONFPSlo2BMWENwLYdFC+RWwOatqwerjOU0jSyJlPEK0yANWZDCbF/3QAryLtRZHXJZNdAFU0Hb8f42UNNXn2yH2pb8kPZKvRV+7hm/3NmYcucP/ANhJcpiObzO1HO5oM3iUXviVrEno+MMOF8TWWS6wp+GNbU1m6aMaX+cKmnmYK10EHIzNjYWY3SudTK5FpMI/4PnUgkqsrJ1bOcNvMbZpEy0hJNv9cJWkXMhjHNVHnK2wikEJGSnnGzgIRJ/ahxMWnIhSuVgij+o9a25/JHkKVuSSM4o80A95FDggY6XydFr19iDt6Sxr3cJlfJ5FzYnK+1gV8n2TC0nWmIUqKmwk3nWu885jDFqBjmtGxSyFUA/B/42R8l4/oo5Tqr27vyouFz+OA8rbOieumZWfNQtvI4YS6iOU8dGMzHfEND4e4teRG9QXPJLrrKJRWj7nnw+7aSflKCkfCzQLOZsm0J7fIUvpiAe6tFIGJkAzyt4gq/LZPtLWO+bz8oKxhda02yjgf2yZ7IRnuQq1RPJJkSeynfACuW/j+pgt3KBTGA+bHwQx4y20ii2+6WiLY= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4086.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(39850400004)(136003)(396003)(376002)(366004)(230922051799003)(64100799003)(1800799009)(451199024)(186009)(26005)(33656002)(83380400001)(52536014)(5660300002)(4326008)(8676002)(8936002)(9686003)(6506007)(7696005)(122000001)(53546011)(38100700002)(38070700005)(71200400001)(316002)(86362001)(66446008)(66476007)(66556008)(64756008)(66946007)(76116006)(110136005)(55016003)(2906002)(41300700001)(478600001)(966005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HfEqfadSxJUEThwxOC8xhqrE7XvKdx982Ydtpor2QmQyk2xiIgoXv99PRUrF?= =?us-ascii?Q?kGoX663tiAyTe6/r0uCoFng72F3U08d+GnDNinY9pVFBUEFjGOrrOlBm7EoT?= =?us-ascii?Q?nkM26slGaItkQUFl/cMVQ0Yim9qnT9H5UwTKteA5Y5MHV441xjJNhEu0K1F2?= =?us-ascii?Q?RjO9qZA2CiKal4cEnh2T0cHpJ1arPF6e50rPKlRhgcuEGL6GumpeA0aphaHL?= =?us-ascii?Q?he8Pn8PbVq0hJYMJEog1l51baUYai9fLKJ0djR9iwBB1I+KJz/1MYuzPq47h?= =?us-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IDTL/9FVtQXfeQEipVakOEj6L+VE2lAtmyQrc2?= =?us-ascii?Q?pU4otbyo/J+UShaXeCnizDRi1ndViItHvOJI4KSnCbJA5vcR1Ap+eYoJMlS+?= =?us-ascii?Q?bvRNCX+6AUy976jftpfe86vYisIvXIKnLY/P2aBbHp3RrFSJmJATbw/W6pcL?= =?us-ascii?Q?NKfnr3noW8ROm2Qq4RyRLPaB9OttBH/zzY7fUKiTr/5jN66N/Mq5+wfaPDC0?= =?us-ascii?Q?lXiCm8uIuAnE84udkzznuTAtECG/HnQSMI6lSqqSeWD2bNagkpOkGPvpAL8n?= =?us-ascii?Q?S5S3JjvhFwsUIoqVHX5Lr5/3deBP4W8kNoEPzGn3h4MGTnInwAr3E32UPz6S?= =?us-ascii?Q?alM9w1e6mBTWCXwYLSYTb1Jcd17IG0Z3gX+NTdVnSo5VCLRgPxjrCXbBHfOQ?= =?us-ascii?Q?/08vH7CVLBq7lX3reG3TIB2lI1hwdxpJ3sy1ajCq?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4086.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2fff3536-ca6f-48b9-32a1-08dbc0cd6f25 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Sep 2023 09:21:16.7980 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zIWRiMzXZCrlxAtBo3QfaniOJwtMIWUlAW8DWIEj4jcPsCR/jlw3dM3SQF0sk3DojSbcfmmkS7jA+I/G1w/X8Or847JudsAn8qev6xAG7No= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3575 X-Proofpoint-ORIG-GUID: NOXUJxajkegYW3p_WF8FMWmGq64bV4oE X-Proofpoint-GUID: NOXUJxajkegYW3p_WF8FMWmGq64bV4oE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-29_07,2023-09-28_03,2023-05-22_02 X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org > -----Original Message----- > From: pbhagavatula@marvell.com > Sent: Friday, September 29, 2023 2:05 PM > To: Jerin Jacob Kollanukkaran ; alialnu@nvidia.com; > aconole@redhat.com > Cc: ci@dpdk.org; Pavan Nikhilesh Bhagavatula > Subject: [PATCH] pw_maintainers_cli: enhance tree selection >=20 > From: Pavan Nikhilesh >=20 > When longest prefix match doesnt find a suitable tree, pick the > tree which has the highest modified file count instead of defauting > to main tree. >=20 This change is need to find the correct branch when a patch has a specifica= tion Change followed by a implementation of driver layer example: https://patches.dpdk.org/project/dpdk/list/?series=3D29675 > Signed-off-by: Pavan Nikhilesh > --- > tools/pw_maintainers_cli.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/tools/pw_maintainers_cli.py b/tools/pw_maintainers_cli.py > index c7b5ba0..4aa46ae 100755 > --- a/tools/pw_maintainers_cli.py > +++ b/tools/pw_maintainers_cli.py > @@ -46,6 +46,7 @@ import re > import argparse > import fnmatch >=20 > +from collections import Counter > from requests.exceptions import HTTPError >=20 > from git_pw import config > @@ -276,6 +277,7 @@ class Maintainers(object): > dpdk-next-crypto + dpdk-next-virtio =3D dpdk > dpdk-next-net-intel + dpdk-next-net-mlx =3D dpdk-next-net > """ > + highest_tree =3D Counter(tree_list).most_common(1)[0][0] > # Make sure the list is unique. > tree_list =3D list(set(tree_list)) >=20 > @@ -287,7 +289,9 @@ class Maintainers(object): > os.path.commonprefix(_tree_list).rstrip('-').replace( > 'dpdk-next-net-virtio', 'dpdk-next-virtio') > # There is no 'dpdk-next' named tree. > - if common_prefix.endswith('dpdk-next') or > common_prefix.endswith('/'): > + if common_prefix.endswith('dpdk-next'): > + common_prefix =3D highest_tree > + elif common_prefix.endswith('/'): > common_prefix =3D 'git://dpdk.org/dpdk' > return common_prefix >=20 > -- > 2.25.1