From patchwork Mon Jan 22 17:26:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 573 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 4C71E4399C; Mon, 22 Jan 2024 18:26:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 47923402C3; Mon, 22 Jan 2024 18:26: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 0963A40298 for ; Mon, 22 Jan 2024 18:26:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705944399; 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=NygC3pmNKNHL8VzyoTLud5WLAbiwgXvJL4Zk2NGi49KK0jljvY32K+40XbDMx7mGaqeymR f7yvmRVMPXjaJ5sBui4gLBu363qUqnd8E4b/Z0vZIdlkdhugTdcCoC9dbgqXlEz9hZnG3D 2o2ZATqLWEKlkUJ3gHXTJ+8dSy/bQ0I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-195-2YtmqXzjMLGGe_tbuU5tJA-1; Mon, 22 Jan 2024 12:26:36 -0500 X-MC-Unique: 2YtmqXzjMLGGe_tbuU5tJA-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 CDBB088B7A0; Mon, 22 Jan 2024 17:26:35 +0000 (UTC) Received: from RHTPC1VM0NT.redhat.com (unknown [10.22.33.141]) by smtp.corp.redhat.com (Postfix) with ESMTP id 870291121306; Mon, 22 Jan 2024 17:26:35 +0000 (UTC) From: Aaron Conole To: ci@dpdk.org Cc: Michael Santana , Ilya Maximets , Jeremy Kerr Subject: [PATCH 0/2] Reduced checks API usage Date: Mon, 22 Jan 2024 12:26:33 -0500 Message-ID: <20240122172635.3641078-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(-)