Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2221388/?format=api
{ "id": 2221388, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221388/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260409-fix_ci_checks-v1-1-bd1c9a25d3f2@suse.com/", "project": { "id": 59, "url": "http://patchwork.ozlabs.org/api/1.2/projects/59/?format=api", "name": "Linux Test Project development", "link_name": "ltp", "list_id": "ltp.lists.linux.it", "list_email": "ltp@lists.linux.it", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260409-fix_ci_checks-v1-1-bd1c9a25d3f2@suse.com>", "list_archive_url": null, "date": "2026-04-09T11:11:24", "name": "patchwork: Filter checks by CI prefix to avoid skipping untested series", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "44ba960ce15f5cfa850606e21e64e424eb056db0", "submitter": { "id": 83220, "url": "http://patchwork.ozlabs.org/api/1.2/people/83220/?format=api", "name": "Andrea Cervesato", "email": "andrea.cervesato@suse.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260409-fix_ci_checks-v1-1-bd1c9a25d3f2@suse.com/mbox/", "series": [ { "id": 499277, "url": "http://patchwork.ozlabs.org/api/1.2/series/499277/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=499277", "date": "2026-04-09T11:11:24", "name": "patchwork: Filter checks by CI prefix to avoid skipping untested series", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499277/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221388/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/2221388/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "ltp@lists.linux.it" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "ltp@picard.linux.it" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=ySG6dj9s;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.de\n header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=gJdK2aVO;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa\n header.b=ySG6dj9s;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=gJdK2aVO;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)", "smtp-out2.suse.de;\n\tnone" ], "Received": [ "from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fry1M6F6Mz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 21:11:35 +1000 (AEST)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 71B943E159F\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 9 Apr 2026 13:11:33 +0200 (CEST)", "from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 4456C3C9F03\n for <ltp@lists.linux.it>; Thu, 9 Apr 2026 13:11:29 +0200 (CEST)", "from smtp-out2.suse.de (smtp-out2.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 95E4F200B31\n for <ltp@lists.linux.it>; Thu, 9 Apr 2026 13:11:28 +0200 (CEST)", "from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id 2896F5BD1E;\n Thu, 9 Apr 2026 11:11:27 +0000 (UTC)", "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id EF3224A0B3;\n Thu, 9 Apr 2026 11:11:26 +0000 (UTC)", "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id fWOfOF6J12kGOAAAD6G6ig\n (envelope-from <andrea.cervesato@suse.de>); Thu, 09 Apr 2026 11:11:26 +0000" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1775733087;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=y7YuFboBQN7EiCxw6Isnyaahzjztub5WSJnB+KFW/Sw=;\n b=ySG6dj9sVHhdFiiR7Jaj1o6iHyDChOj6pKKozRfO7g+29fC9bqAWEYo+MToT+NO2kBsFxe\n bp5NvO3cHOk4BCtbLnTl3rAM3/x/e365saKFjUoVBcf7vPDBZ2m8fNe7xYikKIGfYT3Otv\n h8X9Df65ZhbMC8dzRFxEyOvXT9koMWE=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1775733087;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=y7YuFboBQN7EiCxw6Isnyaahzjztub5WSJnB+KFW/Sw=;\n b=gJdK2aVOESeRtoYLh5zB5Mnjbl2QjDXzj+zu+RuxPa2V3LR97JlOQ48JF8SNI9bCi9aDxG\n P7LYz/4dM8LztIDg==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1775733087;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=y7YuFboBQN7EiCxw6Isnyaahzjztub5WSJnB+KFW/Sw=;\n b=ySG6dj9sVHhdFiiR7Jaj1o6iHyDChOj6pKKozRfO7g+29fC9bqAWEYo+MToT+NO2kBsFxe\n bp5NvO3cHOk4BCtbLnTl3rAM3/x/e365saKFjUoVBcf7vPDBZ2m8fNe7xYikKIGfYT3Otv\n h8X9Df65ZhbMC8dzRFxEyOvXT9koMWE=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1775733087;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=y7YuFboBQN7EiCxw6Isnyaahzjztub5WSJnB+KFW/Sw=;\n b=gJdK2aVOESeRtoYLh5zB5Mnjbl2QjDXzj+zu+RuxPa2V3LR97JlOQ48JF8SNI9bCi9aDxG\n P7LYz/4dM8LztIDg==" ], "From": "Andrea Cervesato <andrea.cervesato@suse.de>", "Date": "Thu, 09 Apr 2026 13:11:24 +0200", "MIME-Version": "1.0", "Message-Id": "<20260409-fix_ci_checks-v1-1-bd1c9a25d3f2@suse.com>", "X-B4-Tracking": "v=1; b=H4sIAFuJ12kC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE\n vPSU3UzU4B8JSMDIzMDEwNL3bTMivjkzPjkjNTk7GJdy5QkAwsLAxBOVgLqKShKBSoAmxcdW1s\n LAEBV2GlfAAAA", "X-Change-ID": "20260409-fix_ci_checks-9db08800880c", "To": "Linux Test Project <ltp@lists.linux.it>", "X-Mailer": "b4 0.14.2", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1775733086; l=2586;\n i=andrea.cervesato@suse.com; s=20251210; h=from:subject:message-id;\n bh=wcz3M7pbqN6+6Ha22eLP37lZC9aPiQa4SX+V5jJ3pzs=;\n b=QdsmXvibdVqiK8U2mE/C8VcCGJlLJhHC5N7iheqMWGW3fDiQc5m8B0ueox83jHX38S7wUCVN5\n iewDODvEPjjDl6n7cHxwn4PkUgPrumMiVAFplqNk5PXlvpO+Oi6sH19", "X-Developer-Key": "i=andrea.cervesato@suse.com; a=ed25519;\n pk=zKY+6GCauOiuHNZ//d8PQ/UL4jFCTKbXrzXAOQSLevI=", "X-Spam-Score": "-4.30", "X-Spam-Level": "", "X-Spamd-Result": "default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-0.988]; MIME_GOOD(-0.10)[text/plain];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[];\n RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+];\n FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n RCVD_COUNT_TWO(0.00)[2];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:mid,suse.com:email]", "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-7.smtp.seeweb.it", "X-Virus-Scanned": "clamav-milter 1.0.9 at in-7.smtp.seeweb.it", "X-Virus-Status": "Clean", "Subject": "[LTP] [PATCH] patchwork: Filter checks by CI prefix to avoid\n skipping untested series", "X-BeenThere": "ltp@lists.linux.it", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Linux Test Project <ltp.lists.linux.it>", "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>", "List-Archive": "<http://lists.linux.it/pipermail/ltp/>", "List-Post": "<mailto:ltp@lists.linux.it>", "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>", "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it", "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>" }, "content": "From: Andrea Cervesato <andrea.cervesato@suse.com>\n\nOther CI systems adding checks to patches caused this CI to skip\nseries it hadn't tested yet. Prefix check contexts with a configurable\nPATCHWORK_CI_PREFIX and filter by it in already_tested().\n\nSigned-off-by: Andrea Cervesato <andrea.cervesato@suse.com>\n---\nAfter adding copilot review we have a problem to run CI due to the\nbuild scripts. We need to verify that _only_ build checks were not\nadded.\n---\n ci/tools/patchwork.sh | 14 +++++++++++---\n 1 file changed, 11 insertions(+), 3 deletions(-)\n\n\n---\nbase-commit: 3a4bf67d82eae0febb5462077fb43937e875e46e\nchange-id: 20260409-fix_ci_checks-9db08800880c\n\nBest regards,", "diff": "diff --git a/ci/tools/patchwork.sh b/ci/tools/patchwork.sh\nindex 3e18ee9480c443837bc4269a408fc3151d76b165..affa7f2a0a6bb69079308ad6ada4bd6e7f296c26 100755\n--- a/ci/tools/patchwork.sh\n+++ b/ci/tools/patchwork.sh\n@@ -9,6 +9,7 @@\n \n PATCHWORK_URL=\"${PATCHWORK_URL:-https://patchwork.ozlabs.org}\"\n PATCHWORK_SINCE=\"${PATCHWORK_SINCE:-3600}\"\n+PATCHWORK_CI_PREFIX=\"${PATCHWORK_CI_PREFIX:-github-build}\"\n \n command_exists() {\n local cmd\n@@ -93,13 +94,20 @@ set_series_state() {\n \n get_checks() {\n local patch_id=\"$1\"\n+ local prefix=\"$2\"\n local stdout\n \n stdout=\"$(curl -k -G $PATCHWORK_URL/api/patches/$patch_id/checks/)\"\n \n [ $? -eq 0 ] || exit 1\n \n- echo \"$stdout\" | jq -r '.[] | \"\\(.id)\"'\n+ if [ -n \"$prefix\" ]; then\n+ echo \"$stdout\" | jq -r \\\n+ --arg pfx \"$prefix\" \\\n+ '.[] | select(.context | startswith($pfx)) | \"\\(.id)\"'\n+ else\n+ echo \"$stdout\" | jq -r '.[] | \"\\(.id)\"'\n+ fi\n }\n \n already_tested() {\n@@ -108,7 +116,7 @@ already_tested() {\n get_patches \"$series_id\" | while read -r patch_id; do\n [ \"$patch_id\" ] || continue\n \n- get_checks \"$patch_id\" | while read -r check_id; do\n+ get_checks \"$patch_id\" \"$PATCHWORK_CI_PREFIX\" | while read -r check_id; do\n if [ -n \"$check_id\" ]; then\n echo \"$check_id\"\n return\n@@ -146,7 +154,7 @@ send_results() {\n \n verify_token_exists\n \n- local context=$(echo \"$3\" | sed 's/:/_/g; s/\\//-/g; s/\\./-/g')\n+ local context=\"$PATCHWORK_CI_PREFIX/$(echo \"$3\" | sed 's/:/_/g; s/\\//-/g; s/\\./-/g')\"\n \n [ \"$CC\" ] && context=\"${context}_${CC}\"\n [ \"$ARCH\" ] && context=\"${context}_${ARCH}\"\n", "prefixes": [] }