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 22DB2A0C4C for ; Tue, 21 Sep 2021 16:37:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C07541154; Tue, 21 Sep 2021 16:37:00 +0200 (CEST) Received: from AZHDRRW-EX02.NVIDIA.COM (azhdrrw-ex02.nvidia.com [20.64.145.131]) by mails.dpdk.org (Postfix) with ESMTP id DC19741154 for ; Tue, 21 Sep 2021 16:36:58 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) 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; Tue, 21 Sep 2021 07:36:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Orr9BNEeEaklv7Pu1U+QlCpGSom15VBQRNaoYKHUD74cHC2aznG9tPcAYI6fvWYKRdq3qBZnipkIVQ6RQNbPnJGGG/8vvcU/FirixEteKLGUUANEA0YV2qCiuVattTkzdpY7cZekMzx8po+UVOeirW1M9QsYQva0W1hyHvlyFEPnXhZuQD3FjJLFhRivd0N0KZMnqiHtwL3lYFTpW8AxcejuhkKPnjYLW9noStK2I8XOBu3GhVJAsLVNI1+dxAfJY/3JCqUpCxOYR6yuhr3QUQv3O6+hJ2FuWnzrhzTQVi/X030rMBGR71FRR62c55oor0GNTAP4ZPzUk2J6LHac0g== 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; bh=amta6TLWKuzK2a0qgnz0+vdp0Nbav1lFOr7Ts+VcLfk=; b=U7s2cDpp05SHOm2Y8Sn+FbJexA5ygz1ujyvSripJxDhVTrX4R3wyB6fwbPSVvPRtjta5Wo3MBsz9FQlluDjQ21ef9ISwKXgTdHP6hz1uvU7+iVCdoW4Phu9JHtirQQvjTY/4ieobMUVESAO1cr4jNZvIbK2PnIzsPWKaE/lV56y0d5/TYQ8K9HpUyc7GKJOLemPZ7YM+988R55rl6X+L5JX9S6LjiAFCkv+kMaRqP3r6jm3OupiegQq0jlRk5HmlveYIJ1MT6jBAZ1X5qFJwPbZ/2BFbkYqEhkzSnpK8qEod6e+y1Z75bU+M+ZFA0lscqhsPAyW/ZuqST382R9bvlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 216.228.112.35) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=temperror action=none header.from=nvidia.com; dkim=none (message not signed); 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=amta6TLWKuzK2a0qgnz0+vdp0Nbav1lFOr7Ts+VcLfk=; b=hzttoVc/7GQ/ceWp81dNGRMPmBtKDkv162HWKQR7dPg5lbpTz6GPZknuA0YI660GQAL55dR8Gi2mH7V3ULNO4lH3yAzDqVy3gYNSU9WvVjr9nN6hFpBcOZTP+IsHMmyKdAKAn0pwsHBRvHi8uyNyTv0LMoDdrdsDP+tVlN7O8zuj2gTyjSR2GPu72ERD6VjyKCwHuQLW97euFZQksjkud+oHsme3p5gwSWBcJ1RUyuepxe1SUlkuFCdUqI0u2ZTIvnxdsAWZyJvwoMNcTzCsqEepv5zB9KBPe3brBXv9mz1/XDeQswPKuSMqYbABCmfxVe8UE99oPahmGm66C7aNuw== Received: from BN6PR1101CA0003.namprd11.prod.outlook.com (2603:10b6:405:4a::13) by MWHPR12MB1358.namprd12.prod.outlook.com (2603:10b6:300:d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Tue, 21 Sep 2021 14:36:56 +0000 Received: from BN8NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:405:4a:cafe::41) by BN6PR1101CA0003.outlook.office365.com (2603:10b6:405:4a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Tue, 21 Sep 2021 14:36:56 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 216.228.112.35) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=temperror action=none header.from=nvidia.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of nvidia.com: DNS Timeout) Received: from mail.nvidia.com (216.228.112.35) by BN8NAM11FT037.mail.protection.outlook.com (10.13.177.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4523.14 via Frontend Transport; Tue, 21 Sep 2021 14:36:54 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 21 Sep 2021 14:36:53 +0000 Received: from nvidia.com (172.20.187.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 21 Sep 2021 14:36:51 +0000 From: To: CC: , , , , Date: Tue, 21 Sep 2021 17:35:42 +0300 Message-ID: <20210921143542.4412-11-alialnu@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210921143542.4412-1-alialnu@nvidia.com> References: <20210906154537.1299-1-alialnu@nvidia.com> <20210921143542.4412-1-alialnu@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 516c4a76-3ef2-456c-4b69-08d97d0d4235 X-MS-TrafficTypeDiagnostic: MWHPR12MB1358: 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:3968; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Gk7iB/qr816z56M5xghCtQ0cUaLo9TzXX+1ALXC3UJij3GqqTF2zKgw8rx4IzmlGoKnpTMeWzb9ndSXUKDMkYhfADckiuVTsWDp0n1FUIXUiWxj1HF7TlNwaojQdt8KGXW6neSkxVqK3XFan0RS5VCQRZ1anMGnp2p9aEIU5PBO0jhO6YN7Hz29dS5legW2zqhH3/G4UFT8icVKSV2A+kvImWYuG1PQ8Y0sqEnS5F3N0WNduhXYO5KM1QQ6G3YMH6o4kjelWEeAtg9oVS2wEUqhDvB9W5xUWGoWd2rOMULBctKjITH1AdVVrmFLO816ItAQYIzm4jEo6uFiaYZKudPhXqVhLimjiCfcxlO4Yskeolq+G62dOLTKJ0n3+Wk9EAJGLSjYyvv54ueXjDYaKKzLHHaNuo32ixUswUOXTfZxoFs7cnGyE4Ree7M6gQU3HZE8Jy41iCtDTwTvNlEQQITkiFF2WEkxW+yOZ0E79cICrJas7lxdFf/HuVtL5vH1WYTx3SqVkZSdivMfymHYkDF7CzkzlE+N3c8MjvvKvKbmHSi2Tetv8TZCin15YdQB1E4nVQPK7fFYhZ9ehLdq1jJQENy3nNTNaHl5K5RJw9to6lyPetbUdNjiZf6rvS0XTCJHOu7iGA2tPK4nRZZqWsy5UIcWwgTUPh5bbShIancSHnrpE/QaxHb09IJD/f9mIjXxNW//wfsLcKNkGkP2ufA== X-Forefront-Antispam-Report: CIP:216.228.112.35; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid02.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(7636003)(70206006)(36756003)(5660300002)(86362001)(54906003)(63370400001)(2906002)(70586007)(2876002)(426003)(63350400001)(2616005)(8676002)(6916009)(6286002)(336012)(7696005)(8936002)(508600001)(4326008)(36860700001)(47076005)(1076003)(26005)(4744005)(36906005)(107886003)(316002)(82310400003)(186003)(356005)(55016002)(16526019)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2021 14:36:54.6652 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 516c4a76-3ef2-456c-4b69-08d97d0d4235 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.35]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1358 Subject: [dpdk-ci] [PATCH v2 10/10] tools: skip the IDs we already fetched 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" From: Ali Alnubani Store the IDs we already fetched in a file and don't run 'callcmd' again for them. Signed-off-by: Ali Alnubani --- tools/poll-pw | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/poll-pw b/tools/poll-pw index e197a91..dacf34b 100755 --- a/tools/poll-pw +++ b/tools/poll-pw @@ -65,6 +65,11 @@ if [ ! $? -eq 0 ] ; then exit 1 fi +poll_pw_ids_file=/tmp/poll_pw_${resource_type}_ids +if [ ! -f "$poll_pw_ids_file" ] ; then + touch $poll_pw_ids_file +fi + URL="${URL}/${resource_type}/?project=${project}&" callcmd () # @@ -77,7 +82,11 @@ while true ; do date_now=$(date '+%FT%T') since=$(date -d $(cat $since_file | tr '\n' ' ') '+%FT%T') for id in $(curl -s "${URL}since=${since}" | jq '.[].id') ; do + if grep -q "^${id}$" $poll_pw_ids_file ; then + continue + fi callcmd $id + echo $id >>$poll_pw_ids_file done echo -n $date_now >$since_file # pause before next check -- 2.25.1