[PATCH 2/2] pw_maintainers_cli: download series mbox for maintainers lookup

Ali Alnubani alialnu at nvidia.com
Tue Jul 28 08:35:27 CEST 2026


On 7/24/26 7:21 PM, David Marchand wrote:

> When looking up trees or maintainers for a series, the script was
> fetching each patch individually just to extract filenames from diffs.
> For a series with N patches, this resulted in N+1 API requests to
> patchwork.
>
> Download the series mbox once and parse filenames locally for the
> list-trees and list-maintainers commands, reducing patchwork load
> from N+1 requests to 2.
>
> The set-pw-delegate command still needs to fetch individual patches
> to check the delegate status, so it keeps the original behavior.
>
> Before:
> DEBUG:urllib3.connectionpool:https://patchwork.dpdk.org:443 "GET /api/1.2/series/38789/ HTTP/1.1" 200 3056
> DEBUG:urllib3.connectionpool:https://patchwork.dpdk.org:443 "GET /api/1.2/patches/166911/ HTTP/1.1" 200 28237
> DEBUG:urllib3.connectionpool:https://patchwork.dpdk.org:443 "GET /api/1.2/patches/166912/ HTTP/1.1" 200 21289
> DEBUG:urllib3.connectionpool:https://patchwork.dpdk.org:443 "GET /api/1.2/patches/166913/ HTTP/1.1" 200 161492
>
> After:
> DEBUG:urllib3.connectionpool:https://patchwork.dpdk.org:443 "GET /api/1.2/series/38789/ HTTP/1.1" 200 3056
> DEBUG:urllib3.connectionpool:https://patchwork.dpdk.org:443 "GET /series/38789/mbox/ HTTP/1.1" 200 191863
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---

Tested-by: Ali Alnubani <alialnu at nvidia.com>
Acked-by: Ali Alnubani <alialnu at nvidia.com>

Thanks,
Ali


More information about the ci mailing list