From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id BSLqLzCK0GIjhwAAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 23:27:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oBe1LjCK0GJUTAAA9RJhRA (envelope-from ) for ; Thu, 14 Jul 2022 23:27:12 +0200 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 7F498265B9 for ; Thu, 14 Jul 2022 23:27:12 +0200 (CEST) Received: from localhost ([::1]:52706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oC6MY-0006ZH-8S for larch@yhetil.org; Thu, 14 Jul 2022 17:27:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC6MQ-0006Yy-J9 for guix-patches@gnu.org; Thu, 14 Jul 2022 17:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oC6MQ-0004bO-9j for guix-patches@gnu.org; Thu, 14 Jul 2022 17:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oC6MQ-0006ZA-2r for guix-patches@gnu.org; Thu, 14 Jul 2022 17:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56563] [PATCH] gnu: tests: Fix guix-data-service test. Resent-From: Munyoki Kilyungi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Jul 2022 21:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56563 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Timotej Lazar Cc: 56563@debbugs.gnu.org Received: via spool by 56563-submit@debbugs.gnu.org id=B56563.165783400525216 (code B ref 56563); Thu, 14 Jul 2022 21:27:02 +0000 Received: (at 56563) by debbugs.gnu.org; 14 Jul 2022 21:26:45 +0000 Received: from localhost ([127.0.0.1]:39021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC6M8-0006Ye-Jh for submit@debbugs.gnu.org; Thu, 14 Jul 2022 17:26:45 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:36939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC6Ls-0006YB-8X for 56563@debbugs.gnu.org; Thu, 14 Jul 2022 17:26:43 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 11403320094D; Thu, 14 Jul 2022 17:26:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 14 Jul 2022 17:26:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= bonfacemunyoki.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1657833981; x= 1657920381; bh=OUzTcqywb9CaWNu+45Xe2dp1uQC1DdF7Ic1HnQVX5cE=; b=F F6dIZdf60Z+gU0CDqiqhlM1vHup4xbCYYnUdXc0+tbfaI3rBLoCTjd4g8zFlBKrH wd/7UHJc80xgrDSrvYdbTPKjS/JYOiyg0vrkL6xruYnQrPd1YLo5U+JcpOQg5EF1 1/xUY74G+R+2RyfQ4ljaEiSX8WD/8qBB7AfHdRcGaBDN5SIlr7jLki81po/nFdB0 on6kiEAux8n5ghhKGGyKWDuwKVspWKvyLGNXJsJvTZlkHFGpbEuiBLdU4MOSGzye ipYrbxXYz2CC6oHUGokMgjFAbfiJKPm4TN41SZwZ851UfGe8VhA2yDtR0tr+1C0n ai10g7bbkZZ2AGdVmO95Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1657833981; x=1657920381; bh=OUzTcqywb9CaWNu+45Xe2dp1uQC1 DdF7Ic1HnQVX5cE=; b=tq0tx7xSGG73qMtyAtqURg+kqUNG9h9NQnjR2FcgpYGL pxnu4BoIvEzDGH/MCFXodLhDHk52UO3Hx/Lyv47/XbHU2JlEa2jb3eaABKOfeClW fGGJ9oySWcwgE776KAGGBxRcX7BJqlOCTfR93BvFhMT3WqSZ3kmqcdjQKqzH/f3R CwlrSKy0ZuSFDZmDTFiVcf6CWf9DWZV/+fxd5XGaN5Wg8r7KE4P8DuBzQ7Jzc/lT 52X9lpfxiL2byRAhoQ6G10Xll3aO8ChQYVmTsMNr8oVutsLzNtyzS+kZJYmLu60i ySE4RVJxXwkrvsYspS+febwY0kCl0iUc1dONq1B6sg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejledgudeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufhfffgjkfgfgggtsehgtderredtredtnecuhfhrohhmpefouhhn hihokhhiucfmihhlhihunhhgihcuoehmvgessghonhhfrggtvghmuhhnhihokhhirdgtoh hmqeenucggtffrrghtthgvrhhnpeegkeevfefgjedtvdekvdfflefgheeugfejgeffffej udeikedvheejleeuveefteenucffohhmrghinhepghhnuhhpghdrnhgvthenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmvgessghonhhfrggt vghmuhhnhihokhhirdgtohhm X-ME-Proxy: Feedback-ID: ib8a1471e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Jul 2022 17:26:20 -0400 (EDT) From: Munyoki Kilyungi References: <20220714192137.23039-1-timotej.lazar@araneo.si> Date: Fri, 15 Jul 2022 00:26:16 +0300 In-Reply-To: <20220714192137.23039-1-timotej.lazar@araneo.si> (Timotej Lazar's message of "Thu, 14 Jul 2022 21:21:38 +0200") Message-ID: <86v8rze687.fsf@bonfacemunyoki.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657834032; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=OUzTcqywb9CaWNu+45Xe2dp1uQC1DdF7Ic1HnQVX5cE=; b=m+7uORwPaJscRfD2qXjJoOgJn5Bs4VC7zMcbaS7wLhS1wqr9NIzGRqaOwtiDLFn2WQQJ56 uBCnl+ozeaWm2pQqxG+6jEdcxCexwojI93He6ro2rtGCf8odOGaNcCiDvbUuHUWsSLg5Q8 RJ1HARJ3FO/4vabBpbNmpoIfVlSP+ST2mnBENs/G4LoKD5qP6New/UBA+UGlEndLdKVG3Q Bd33b/qNG0pkJJsexMxdYlpcD2k8053klYpqkv7YxRAQ9l1wjRRGcuTff604oXPxWhroCi yyUERpJsNh9h+PfLvBUtUotmJV0O1Rmor0C0NBuFNIphMXCbrH3c8fwoUX4BQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657834032; a=rsa-sha256; cv=none; b=nf6KHcm2w8MkUUO6xbfIbbVF2iqAXW8DF8XoB0+2QVrBNDNILqZmu50eDkWUYOehR3qGjz ClZ+RXA//qEr1neKgZL/zmDSCmzMdc2IxO+RDPO9GH+3tNWllOuahp5fPzIETK/8DJ0ziL 5fCywhoXeT+8+I3zWl7bC3W3rOFw7AuNb17Sje2RxCqlrhZTASglmIt1NPROmr4hudrEP3 IUIilc4YqwU0Txmrfi0DFJYgtYhn3sFRslccTmrXrufyHKBRB5Pe4Xoh9USP0OgGy4D276 f+Cfoz+lFu3oWbaZqoYveIEiKCpAZK5Zsiv/RcZikgV6jmM96BOhQ0DmN0nRWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bonfacemunyoki.com header.s=fm1 header.b="F F6dIZd"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=tq0tx7xS; dmarc=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" X-Migadu-Spam-Score: -1.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bonfacemunyoki.com header.s=fm1 header.b="F F6dIZd"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=tq0tx7xS; dmarc=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" X-Migadu-Queue-Id: 7F498265B9 X-Spam-Score: -1.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: Tx+2wpmnZUf9 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Timotej Lazar anaandika: [...] > + ;; The service starts immediately but replies with status 500 = until > + ;; initialization is complete, so keep trying for a while. > + (define* (try-http-get attempts) Minor nitpick. This function definition does not take any optional or key-word arguments AFAICT, so it should be a "define" instead :) > + (let ((status (let-values (((response text) > + (http-get #$(simple-format > + #f "http://localhos= t:~A/healthcheck" > + forwarded-port)))) > + (response-code response)))) > + (if (or (=3D status 200) (<=3D attempts 1)) > + status > + (begin (sleep 10) (try-http-get (- attempts 1)))))) > + > (test-equal "http-get" > 200 > - (let-values > - (((response text) > - (http-get #$(simple-format > - #f "http://localhost:~A/healthcheck" forw= arded-port) > - #:decode-body? #t))) > - (response-code response))) > + (try-http-get 10)) >=20=20 > (test-end)))) =2D-=20 (Life is like a pencil that will surely run out, but will leave the beautiful writing of life.) (D4F09EB110177E03C28E2FE1F5BBAE1E0392253F (hkp://keys.gnupg.net)) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJKBAEBCAA0FiEE1PCesRAXfgPCji/h9buuHgOSJT8FAmLQifgWHG1lQGJvbmZh Y2VtdW55b2tpLmNvbQAKCRD1u64eA5IlPz6cD/9dJFwY8/Zklw27JijEv4NeldAK NBRfQBovPBfHUJzCP0kLDVzHWn0PfIvNCQRw8Xn2b5gdCMsjcMvDCxabt0bRcjQi YF/iu/W2QDcKbQH2GSwLeOZgqSqLbiHNf0kTkvsiJJc9KusEC8HjjOyDhntgwGkP uKmpg1vLz+095uF5Qjf2hn1lGNfi67N4UVWYTq2oTKY+IHV0H1+jqNqgt0FM/Y4e xNw7zOpdx4VwIbcl7NaGCzQBWH3UkDpGWz+nY6BI2MnUWZQ3hA604dNbgDEcdUzC kaGAyORkFu9qelNuUFJQRUoZGvmRdUaW63Kx2o2t1Nf34PV2iC78PnRTrjO+XiAD nK5GVOB8DjeSR6J80ZUifM48+9LBdqH4VSJATPaQWlMCWH2RarST6dUKhrxTCael J/WhzM7q+HThVoVMd79d9YcR4Fkzi65NX0DAXxgwbjAyotG93nWvkIudc2tNbixe Lz/bEraeomE2HgxMFQPMbQE1xSX4/Ia6C1XZ9J8RdQz+Y1IJBsesj9M66NCo4SsL +dH+XzuJ2ykFGKuMpU7SoryBv3x0QfB+UHPhMo0YA4h9qSdQgioPFtWzc69/Ke4g mn3IWLk0SjAcI64I9dep/1cOH+LgBQdNnNq9U+efRfC5f/D6ZR2dbrE6xQCIcdiq +0jUrqx6Aty6FTwTNw== =rH/u -----END PGP SIGNATURE----- --=-=-=--