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 EB187A034F for ; Mon, 11 Oct 2021 22:08:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E65FD4111C; Mon, 11 Oct 2021 22:08:27 +0200 (CEST) Received: from AZHDRRW-EX02.NVIDIA.COM (azhdrrw-ex02.nvidia.com [20.64.145.131]) by mails.dpdk.org (Postfix) with ESMTP id D9C91410FA for ; Mon, 11 Oct 2021 22:08:26 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.175) by mxs.oss.nvidia.com (10.13.234.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Mon, 11 Oct 2021 13:08:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=idM7UtVUguP1871qubWh9n1dLN3NQiiz2MeyxmNwBfiS3bJnBo7g//WRa5z5XZylCI9BPAircaUyg1a97GIOr2hzf9HsmKGennX95RWOzP9oe25GtUMSikNZ17hwIF7XS+EUHVxZVFTg7Y5uM/I1oVWhWackG15Xs/glHInwf8CEMJgz4hYjfjV1u5cjNAFzPqBDQcAAl3/DfGwWfQ041ZAN8WZ+hT6X5YCddGV+Y1UKWmkKuwG9uhkXHBDpy/tbE5NmG+niUyp1a4rWYrcI8QWkVrhw834zIeFHCMpK8kXT/EtAMNGU995IL+XdL3xdWBKfIQ/992YK2jb6Yq4Bew== 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=5VN69slrjpIktJx0sTWBLH4tYNS+/QD0AiQP4viVBnI=; b=eNG14XPOfKDVLoOZaUHLIFF+on/gROvtoNAvvjYpAOOBWh8AbxAwgP1oYqaVmVGAL6SVT0CICny2UuA/2FwlyOcGtPyRIBXyQdd+18f665dw7o6XjraJGQTHlmRV61v9Sfva5FGCo1LsuG5vL9dmt3NkC/Rr3oppKJkNqWmyJ3+OUrmr+5QzPhXgy5jeYBkUsRU5js7E7Zd9ll5DUr8asz9BKruj/5CUIWLg9HbJADagS67hNSwlrAcmV8LF1saH6dEuemjg9nzHhRfWY2NA4z/UCS96ukVKO65K54T2xewuP6wmUcd1wJgDPtp5FgAf6uCjq7BDmCo3wzSM9d77AA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5VN69slrjpIktJx0sTWBLH4tYNS+/QD0AiQP4viVBnI=; b=ea/sl4bdE62GRTTo7RPNxNrgNumaDemf0DHdU5L7zG0Dh6d6I1PdnIQh1mHb7SWawx9ZBERZ1cCCu2U1D3DE5C6NxXuKE04PU5HiqxjCHYYlNMeykCBgUEjQn6HBHf99MzeE3IFvc1W44stHRs6xlcShhi2SLGHFKmS17pT2mJoJCHQPplI4XxEzDK+WJ7BMQ9PhnnRtOkrsX2IBDEKW4kcr+FoPNSEU7bUS9SeEJ+Dh2/8bx4LwfOU9M0YCSFpzsgQ8b2VXRJBFb5JoM1UqC7yfB/v/W1hGUDVzrgYdUREHURy3Y+1P0Oe1q3yD02PDl67bkYWVzEOk6F23ILwy1Q== Received: from DM4PR12MB5167.namprd12.prod.outlook.com (2603:10b6:5:396::10) by DM4PR12MB5134.namprd12.prod.outlook.com (2603:10b6:5:391::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.20; Mon, 11 Oct 2021 20:08:24 +0000 Received: from DM4PR12MB5167.namprd12.prod.outlook.com ([fe80::3c73:8e07:c9ba:f6db]) by DM4PR12MB5167.namprd12.prod.outlook.com ([fe80::3c73:8e07:c9ba:f6db%3]) with mapi id 15.20.4587.026; Mon, 11 Oct 2021 20:08:24 +0000 From: Ali Alnubani To: "ci@dpdk.org" CC: NBU-Contact-Thomas Monjalon , "jerinj@marvell.com" , "ferruh.yigit@intel.com" , "david.marchand@redhat.com" , "juraj.linkes@pantheon.tech" Thread-Topic: [dpdk-ci] [PATCH v2 07/10] tools: filter new patchwork IDs by date Thread-Index: AQHXrvYfaMXwr18vV0yIKcESOEkOAKvOWJTw Date: Mon, 11 Oct 2021 20:08:24 +0000 Message-ID: References: <20210906154537.1299-1-alialnu@nvidia.com> <20210921143542.4412-1-alialnu@nvidia.com> <20210921143542.4412-8-alialnu@nvidia.com> In-Reply-To: <20210921143542.4412-8-alialnu@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 15fcf218-c40f-44a0-3a8a-08d98cf2e1b1 x-ms-traffictypediagnostic: DM4PR12MB5134: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8mgqAwOoIgM3OSQNVmvPI4h0w9qcnSjZw2RI1/XiBhl5LbIR+lp9OuCcny9K8hy5A4a3VJyIHk+5tJ1/uGnySy4u15I8eRc43FjFr3wkbuKgZF8c/uX8n1Qfz4DWXjtQjee0Gut4DMKB9dJyB1zDoAhASL0NCGuqarXANFHGosiMdFVDEa7ihnq362iKAbFjvwltks8gctLScrdShGVvBk1O5m3xZe68osvj7e4zNCxwEKT7IvYgGLSU6mcNOMYgU8zId3e1RgGIr+YkF40dDk7cQg1LWhERIfz1FUL6UHywYtMfia+xLjlsQNlH/phZ2EQ46illZgjfm35IDbe3CFWM0LjJktJBxc8I/3zQef6owP08Awggc1/3y1HRwnSg8FSarMiQQxDxvnL0HzTbmEKemDa61/A8U27VbTxIiTShNjOvvMR58P8ZvjrWMFabhR0oelsCn7pToj2hasmdOspLejaNcUwF+NCLT2/VqETZ9xgbpgDV7K5ZCLNeR95U2/Qn50hPz4esvUJQqSKbJxOCLW8t9443hmkEVw2uFSTzjFDFH3g4nkKFHnytTb7HS8mNv/GMHFvWo95W3UGoKXPQRewoWlf3Ffvc4iASf3IPDWvIK9gcZPY8WI/I1qo9avN/TGB0NkeHx0bYuHfOuniTvsYG9lKiHEoBY0OG90Vb4JmHezCfO8Ymx4rrIp8J378EtFzUZw+QceZ47V6a6w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5167.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(76116006)(5660300002)(52536014)(66556008)(66476007)(64756008)(66446008)(508600001)(66946007)(4326008)(107886003)(6916009)(55016002)(2906002)(316002)(54906003)(9686003)(38070700005)(33656002)(7696005)(8936002)(71200400001)(8676002)(186003)(53546011)(6506007)(83380400001)(86362001)(122000001)(38100700002)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?MOgXVOnBLmMQJba9VluaEdwjQH4lKuflf5KhFHYCkSmdXP6RUnGu6t6Divsc?= =?us-ascii?Q?56KOrxvipxv2tZ4D4PdrxN8SFTlw6s6z6NiyTzhFyKFrF+5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XG6k3ljsNl2qBlMHd+cBNQJPUeHkayUm4aWafKfsXxq?= =?us-ascii?Q?FgOi5E5V8uPaMy92P9b8ilHcDozpuzTOgvC+NBNKRoJNOUjG/uR8hnSqsgkd?= =?us-ascii?Q?ZWxs/3hUkA8AWYMvAJol/0OkIuP0H1ItTYM+IkgZ4uugbcIQrtRffT6jsZkO?= =?us-ascii?Q?rLmJjMEwpKigADTt0TZp2hha35gJZofyfmF/FbI5ro+fmS5H/3WmAq9WiwvY?= =?us-ascii?Q?aL86COvN3Rv17MqTpJkdR9XygylDaHGekP9jYr4TQcNNt56rnPC53I29pAOk?= =?us-ascii?Q?RvZjHdyJiLM04fItjl1o0tgJV9HsodN/NkcVtMFtRqfeGy6/EtgipOz/T4DN?= =?us-ascii?Q?39k=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5167.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15fcf218-c40f-44a0-3a8a-08d98cf2e1b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2021 20:08:24.4585 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: cgVvv67nodRhmv+nSQWE3kJVm1HI2WsZRVafw9Jmz4E6c7wqMgITS5wbect+cS37JlnZELE2f/vuGgcaObQhuw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5134 Subject: Re: [dpdk-ci] [PATCH v2 07/10] tools: filter new patchwork IDs by date 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 Sender: "ci" > -----Original Message----- > From: ci On Behalf Of alialnu@oss.nvidia.com > Sent: Tuesday, September 21, 2021 5:36 PM > To: ci@dpdk.org > Cc: NBU-Contact-Thomas Monjalon ; > jerinj@marvell.com; ferruh.yigit@intel.com; david.marchand@redhat.com; > juraj.linkes@pantheon.tech > Subject: [dpdk-ci] [PATCH v2 07/10] tools: filter new patchwork IDs by da= te >=20 > From: Ali Alnubani >=20 > API resource IDs are guaranteed to be unique, but they aren't guaranteed > to have no gaps, for example, the following series IDs are > nonexistent: 16157, 17181, 18235. > Filtering by the date since the last check is necessary to later > add support for fetching new series IDs in addition to patch IDs. >=20 > Instead of requiring a file that contains the next patch ID, > a file containing the timestamp of the last time the API was fetched > is now used. > Each time the API is fetched for new patches, the timestamp > in the file gets updated, and the script sleeps an amount of time specifi= ed > by PAUSE_SECONDS before attempting to fetch new resources again. >=20 > The pause amount between each poll attempt is still 100 seconds. >=20 > Setting the env variable 'TZ' might be necessary if your timezone > doesn't match the server's timezone. >=20 > The package jq (Command-line JSON processor) is now required by the > script. >=20 > Example usage: > $ export TZ=3D"Europe/Paris" > $ export MAINTAINERS_FILE_PATH=3D/path/to/dpdk/MAINTAINERS > $ ./tools/poll-pw /path/to/last.txt \ > '/path/to/pw_maintainers_cli.py --type patch set_pw_delegate $1' >=20 > Signed-off-by: Ali Alnubani > --- I have mistakenly assumed that the date field I'm filtering with is the dat= e Patchwork creates the ID, when in fact it's the date the patch was create= d on. I'll need to filter the /events end point instead.