From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UFF4BMJnWGcHkQAA62LTzQ:P1 (envelope-from ) for ; Tue, 10 Dec 2024 16:09:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id UFF4BMJnWGcHkQAA62LTzQ (envelope-from ) for ; Tue, 10 Dec 2024 17:09:38 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=lK2aWvkf; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=PITMtTTw; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=inria.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733846977; a=rsa-sha256; cv=none; b=JeOQxmhXqra/jiBO+JSEiW88tWqoewmoMd3ciaL2wcbPvPn1dvdBUDBqqbLVF6jcniKgWe T86fdG/YtQbmkPRDdsVxowqLVlMl7SXx08k0Pn+uT399WjhczPMX0jYUpuHP8f6/p6CYb+ xciwSEX/UqOfqTa7wrSBwfTzUQ6odJ8Bj82kTl7eW/0HZLJgEuF0is9w4WFlIyS15rW+/R RJ7FiUfeQDhnBNgUE/gRBgmz5UzU1NNjm5pw7jS/G4w9MSh+hh5GDTV9YUfK4POWQrbWZu bU1WODIA3xo4pqIAY2xn/ffibIvU2lkc6IDDTSFwzA2LFUYEqhlfgAvMkOJfUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=lK2aWvkf; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=PITMtTTw; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=inria.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733846977; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Rc/OOSTpAXdVlddawgIIuo5s+DSnF2BzM5Dy/lqV0Bw=; b=uVtIT9NOoM514pw3NtjyTfGvOBPm5CREja8aVCNNDGETaT5TKWxFmxXVm0D/LQ+AzQZUf3 iSPjj14bX6z+LTzAKy8isO72ApMU/UpwsJpzm+gSyPV2h5TsoRy+25bcYRd+sphkmH++S8 wBr16H4HuOSguXmnonLcA5keAIB1JPANID2JldjScL1TmRxiZ7Fw2grIZGUWOjl6dYZMKI cEZRxGCiCgh1TbEg29U3IZpeQEa49IxdTONVDRMKZMJzoIz+O4WQq/50b4jTDlZ3Wrws3z nAKOER1XZ5yZW+XJFrkg0qEKz3CS3olLvE6U9iNC7OtvBqfR6+yG+0MvWBy7sQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A132C55230 for ; Tue, 10 Dec 2024 17:09:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tL2nK-0000gQ-Ix; Tue, 10 Dec 2024 11:09:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tL2nI-0000fq-9t for guix-patches@gnu.org; Tue, 10 Dec 2024 11:09:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL2nH-0005EH-T2 for guix-patches@gnu.org; Tue, 10 Dec 2024 11:09:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=Rc/OOSTpAXdVlddawgIIuo5s+DSnF2BzM5Dy/lqV0Bw=; b=lK2aWvkfp4UOiWbpATzjNK2WMElFwuiwkxHwWgizFwgSXfVBQmOde2aCJnH0hK67AYK4sXg6bTupDWCU9rFhj3RKvnmVlxlMREfHmR0ywMB9kiyQZ73fBLOMaCd+zSd7FMruXh0dOCJFPXuJTuevigJlLF1loQfqnNZenSX6Glv1fk2v85VDV2OWn8Hp6asNCvBfYHLZtzbL+YAHr3POcXoaw24FNFmnRnAKSHAkhI+WmAGuATMnmMDZ644SCVspeui6JgkMAl8Z4w8B1XWrurfvCb8SwAcPRS10xSqpr2T/jDNqmSXRVpOd6n7apgl3JvOdV0C4Anr3FiLCBAHj6g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tL2nH-0001ON-Am for guix-patches@gnu.org; Tue, 10 Dec 2024 11:09:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74769] [PATCH Cuirass 0/4] Forgejo event support Resent-From: Romain GARBAGE Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Dec 2024 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74769 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74769@debbugs.gnu.org Cc: ludovic.courtes@inria.fr, Romain GARBAGE X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17338469295244 (code B ref -1); Tue, 10 Dec 2024 16:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Dec 2024 16:08:49 +0000 Received: from localhost ([127.0.0.1]:59200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tL2n2-0001MR-NG for submit@debbugs.gnu.org; Tue, 10 Dec 2024 11:08:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:52872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tL2mz-0001M1-TG for submit@debbugs.gnu.org; Tue, 10 Dec 2024 11:08:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tL2my-0000E2-N3 for guix-patches@gnu.org; Tue, 10 Dec 2024 11:08:44 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tL2mv-0005CS-JI for guix-patches@gnu.org; Tue, 10 Dec 2024 11:08:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Rc/OOSTpAXdVlddawgIIuo5s+DSnF2BzM5Dy/lqV0Bw=; b=PITMtTTwB2ppEVw9R+EsVnugPSIWFvQJOj4pzNKMHYISRy90Wp25mKQy Ke9v7SaQEy53a6LnRhSIstjML+/SnzS5zCykrSylsGEkQyOc6wFsLeGby syASaj5g2DHu7z9DuJDQ89JFarl5IY+R21kiuWj4UH3WqWCkqNwg3d3Ih A=; X-IronPort-AV: E=Sophos;i="6.12,222,1728943200"; d="scan'208";a="103964414" Received: from unknown (HELO guix-A102.bordeaux.inria.fr) ([193.50.110.191]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2024 17:08:37 +0100 From: Romain GARBAGE Date: Tue, 10 Dec 2024 17:01:04 +0100 Message-ID: <20241210160824.31748-1-romain.garbage@inria.fr> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.134.164.104; envelope-from=romain.garbage@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: A132C55230 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.38 X-Spam-Score: -8.38 X-TUID: 1yhdyTgiZ/k7 This patch series adds support for Forgejo pull request events in Cuirass, as generated using the webhooks mechanism. The first patch refactors code to make it accessible from different test modules. The second patch adds the necessary record type definitions to parse the JSON data sent by Forgejo. The third patch improves Gitlab integration related http tests readability. The fourth patch adds Forgejo integration to Cuirass' web service. Romain GARBAGE (4): tests: Move procedure definition. forgejo: Add module for Forgejo JSON objects definition. tests: Explicit Gitlab endpoint related variables. http: Add admin/forgejo/event. Makefile.am | 2 + doc/cuirass.texi | 38 ++++++++++-- src/cuirass/forgejo.scm | 133 ++++++++++++++++++++++++++++++++++++++++ src/cuirass/http.scm | 62 +++++++++++++++++++ tests/common.scm | 30 ++++++++- tests/forgejo.scm | 79 ++++++++++++++++++++++++ tests/gitlab.scm | 24 -------- tests/http.scm | 114 ++++++++++++++++++++++++++++++---- 8 files changed, 440 insertions(+), 42 deletions(-) create mode 100644 src/cuirass/forgejo.scm create mode 100644 tests/forgejo.scm base-commit: e96f0887923d4d1cd4e35073fcffdb978d7e1e10 -- 2.46.0