From patchwork Mon Jan 22 23:40:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 576 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28A744399F; Tue, 23 Jan 2024 00:40:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11660402A8; Tue, 23 Jan 2024 00:40:42 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 2563440273 for ; Tue, 23 Jan 2024 00:40:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705966840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a0A2Ic48QydJRicYA23hec094PUoHpDZex7nF8A0iFc=; b=Z8d8VnRADypNxMq12nuPHsMsfDidPlvhqt0jGkAos4QjN4rqZHv4SDM5A9HS+CNY82yUBE aMXw6Ny9qoE8TsSd/wnQOeys/Neq2ApUiZcFB9ZF65W6aBahjXTd9Xy+5cafwB27eZ33Gh 4t9arnJN3o/BI6RT99AXvHc5zYr1E7Q= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-121-hwPBZ4_TNTObzaI7p652fw-1; Mon, 22 Jan 2024 18:40:38 -0500 X-MC-Unique: hwPBZ4_TNTObzaI7p652fw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5ADA43C02B70; Mon, 22 Jan 2024 23:40:38 +0000 (UTC) Received: from RHTPC1VM0NT.redhat.com (unknown [10.22.33.141]) by smtp.corp.redhat.com (Postfix) with ESMTP id 236C51121306; Mon, 22 Jan 2024 23:40:38 +0000 (UTC) From: Aaron Conole To: ci@dpdk.org Cc: Michael Santana , Ilya Maximets , Jeremy Kerr Subject: [PATCH v3 0/2] Reduced checks API usage Date: Mon, 22 Jan 2024 18:40:32 -0500 Message-ID: <20240122234034.3883647-1-aconole@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 As Jeremy Kerr reports, we aren't being as nice as we should be w.r.t. API usage - especially around the checks API reporting. While the initial version *worked* for what we wanted, we are heavily using the checks API, especially when we don't need to be. This series should reduce the number of API calls we make into patchwork with respect to the checks API specifically. Additionally, we add a simple token to identify that the requests coming in are from a patchwork robot project (so at least a site admin can start identifying who is actually sending the requests). Aaron Conole (2): treewide: Add a User Agent for CURL requests post_pw: Store submitted checks locally as well ci_mon | 2 +- github_get_logs.sh | 8 ++++---- github_mon | 2 +- github_restart | 6 ++++-- jenkins_lib.sh | 5 +++-- post_pw.sh | 43 ++++++++++++++++++++++++++++++++++++++----- pw_mon | 14 +++++++------- series_db_lib.sh | 25 +++++++++++++++++++++++++ 8 files changed, 83 insertions(+), 22 deletions(-)