From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yT+oBrthU2FehAEAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 20:40:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6DCuAbthU2HuGwAAbx9fmQ (envelope-from ) for ; Tue, 28 Sep 2021 18:40:59 +0000 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 6167E11578 for ; Tue, 28 Sep 2021 20:40:58 +0200 (CEST) Received: from localhost ([::1]:39892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVI2D-0000JK-Dx for larch@yhetil.org; Tue, 28 Sep 2021 14:40:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVI1M-0000Hd-Cp for bug-guix@gnu.org; Tue, 28 Sep 2021 14:40:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVI1K-0000M4-JM for bug-guix@gnu.org; Tue, 28 Sep 2021 14:40:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVI1K-0004tq-Ff for bug-guix@gnu.org; Tue, 28 Sep 2021 14:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50871: Stackage importer change breaks tests/lint, build Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 28 Sep 2021 18:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50871 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice , 50871@debbugs.gnu.org Received: via spool by 50871-submit@debbugs.gnu.org id=B50871.163285438718805 (code B ref 50871); Tue, 28 Sep 2021 18:40:02 +0000 Received: (at 50871) by debbugs.gnu.org; 28 Sep 2021 18:39:47 +0000 Received: from localhost ([127.0.0.1]:46970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVI15-0004tF-GL for submit@debbugs.gnu.org; Tue, 28 Sep 2021 14:39:47 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:34640 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVI13-0004sz-8S for 50871@debbugs.gnu.org; Tue, 28 Sep 2021 14:39:46 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1632854377; bh=CL6oIpGatvjSZQxk9LMbEP9zxD5JcJCpKdg+AB6Ul4Y=; h=From:To:Subject:In-Reply-To:References:Date; b=rYiWB77ZbeEDbd9QL058i6uR9JBfW2xtNNSwJZVf5W1gEQoMdMNFKSNkwwILEfEtZ oaLwLfRcISE7S795o5EK9ShxCE7hu4QdA3NVjpqIV6TWq9ojD6jqYP44Ghyono6eGQ f2U6TnSfWH59CVDRGpCgJOb8UEcdWcGi1/843LII= In-Reply-To: <87a6jw7jgu.fsf@nckx> References: <87a6jw7jgu.fsf@nckx> Date: Tue, 28 Sep 2021 20:39:35 +0200 Message-ID: <87o88c35p4.fsf@yoctocell.xyz> 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632854458; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=TSUvGEFx7hbB+h9cChUOvqGeY3DlzMYOlOlKw5TtDUA=; b=L9CqnNiNsncKZqs29sed7sa120rFjx5JGF2CbEVzhsWdnNcNvOuVRlagP3xRJ/8SQBtrSk Nwy8frCtM4KArywfynE3Ll8STHDocf0CWODSpI2n57HxuM6HBfPFcLcZLCyd0k7qlyKG/n zbrbOPOqRSzfrp4wqVBcWbSTQH1/qsvDT8AtOBEwZFMK1toP97X5MPQHN6XnUQgsWoudlB 7Z/JN9g697zmySAhZzrtLovkrxspyrVNjCJ0dRmML59W4aRjWjUnaLJ930BM0L1iYtO7ON T3oe2nlIiFVJsdCnz47hfFtKEmQOGin3Vmf/aj7hYE3EljF2UmdKawDHAN8IJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632854458; a=rsa-sha256; cv=none; b=Lk+mf9URGw5ZA7mpudQkmwcHWkp1GT66XxN55fS3NKMdORIvZBNY0HeCdDm5DYMtw1pK21 oHWYWHKe5uf/FnOhudOiKyaMwc1FBClbvrceCPUW1JDqB2d9HNpG2KdRKm9CNsPly7bv2Q obI0NvAVuw9K8kIqbeaBirTfvseHBsuyHL1DELvkNd7EaePvsUzHGXTrvja6HjKcG490Jl hmCAVy66qK7OWxnODzOSSYm+Zd1EWU2fDcIlIfnYm5Cizf22QJygNHPwn6Y/vPGfEKkJMV 792pRQFrUZk9L2514VaQBYjJ4bR7Ho+jWZctENJBdysXI2pp5K9jf3dhM0VSjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=rYiWB77Z; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=rYiWB77Z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6167E11578 X-Spam-Score: -3.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: rI1Un1uczt9x --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Sep 28 2021, Tobias Geerinckx-Rice via Bug reports for GNU Guix wro= te: > Guix, > > Guix doesn't currently build because of a =E2=80=98lint=E2=80=99 test fai= lure (log=20 > attached). Reverting commit=20 > 9c5e5ca1c0de56a0d5b2b924de10548172095b58 makes it pass. Thanks for catching this! The attached patch should fix this. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-test-lint-Fix-haskell-stackage-test.patch Content-Transfer-Encoding: quoted-printable From=2045b002a1a39adaf76ca0ab6ca2c1dd95eb26da30 Mon Sep 17 00:00:00 2001 Message-Id: <45b002a1a39adaf76ca0ab6ca2c1dd95eb26da30.1632854267.git.public= @yoctocell.xyz> From: Xinglu Chen Date: Tue, 28 Sep 2021 20:34:25 +0200 Subject: [PATCH] =3D?UTF-8?q?test:=3D20lint:=3D20Fix=3D20=3DE2=3D80=3D98has= kell-stackage?=3D =3D?UTF-8?q?=3DE2=3D80=3D99=3D20test.?=3D MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit This is a follow-up to commit 9c5e5ca1c0de56a0d5b2b924de10548172095b58. The previous package was called =E2=80=9Cghc-x=E2=80=9D which is not availa= ble on Stackage, instead change it to =E2=80=9Cghc-pandoc=E2=80=9D which does exist, and adj= ust its version. * tests/lint.scm ("haskell-stackage"): Add additional metadata for the package; change package name to =E2=80=9Cghc-pandoc=E2=80=9D; and change = to version to =E2=80=9C100.0=E2=80=9D. Reported-by: Tobias Geerinckx-Rice =2D-- tests/lint.scm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/lint.scm b/tests/lint.scm index 0f51b9ef79..e96265a55a 100644 =2D-- a/tests/lint.scm +++ b/tests/lint.scm @@ -1317,29 +1317,30 @@ (define (package-with-phase-changes changes) =20 (test-assert "haskell-stackage" (let* ((stackage (string-append "{ \"packages\": [{" =2D " \"name\":\"x\"," + " \"name\":\"pandoc\"," + " \"synopsis\":\"synopsis\"," " \"version\":\"1.0\" }]}")) (packages (map (lambda (version) (dummy-package =2D (string-append "ghc-x") + "ghc-pandoc" (version version) (source (dummy-origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/" =2D "x-" version "/x-" version ".tar.gz")= ))))) =2D '("0.9" "1.0" "2.0"))) + "pandoc-" version "/pandoc-" version ".= tar.gz")))))) + '("0.9" "1.0" "100.0"))) (warnings (pk (with-http-server `((200 ,stackage) ; memoized =2D (200 "name: x\nversion: 1.0\n= ") =2D (200 "name: x\nversion: 1.0\n= ") =2D (200 "name: x\nversion: 1.0\n= ")) + (200 "name: pandoc\nversion: 1.= 0\n") + (200 "name: pandoc\nversion: 1.= 0\n") + (200 "name: pandoc\nversion: 1.= 0\n")) (parameterize ((%hackage-url (%local-url)) (%stackage-url (%local-url))) (append-map check-haskell-stackage packages))))= )) (match warnings (((? lint-warning? warning)) =2D (and (string=3D? (package-version (lint-warning-package warning))= "2.0") + (and (string=3D? (package-version (lint-warning-package warning)) "= 100.0") (string-contains (lint-warning-message warning) "ahead of Stackage LTS version")))))) =20 base-commit: 5edfa6d15e5bb92609ecff7e37e3985eced1dd4d =2D-=20 2.33.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmFTYWcVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x57hAP/2uNfnGV431vI5dWB37sgGz6fOSk hHgmf8HspRf8JvI/L5i9oX9r7FU41sbdMsKGYKU+FpPfKPkO9kPFIrce7G1Sw/lS jBx0ZJPMY+4mMqCEh/7E5iQCW4+JZXPTgHIwBty5xCXGHYcqu0jeZHqr1nSZaApD sFBvJq4WWpyQP+OlafiQqxHTSikZn90zN0k9GV7fFZ6cjDHLdodppCUMq+1vMdvx pwL8FCjCVzSlzyHEV9npmk+GLf1ImQh/aLXyDPNu/4y2SuCRuT0LXaxGEcgNdRAU CLXGQt1HBhmLgn9eD3MOFkMWgE0CK+dPE0vvXvkSxltIuCIpvbF+RsaimhsVwncq wTUx5N2k55Z+cmtgYN8GmqRp+1UE0bKgAxVrujHP9ZQ4Aq9TQKFkqeWRN9CUpOiz oiY8QDD1SMP/i8GiEGCbZZuKnUePFWnwQBKh3PGVHS+zGBxMo/0lqTpvQNEUAlD8 wQdVKMftevfL/hg4pqQQah2q1SX5ba0nxxbH/a7HPJ4oMCY3w2C7KwTlf2sAS2tT Db/J6uG2gOtYkmJ/l5aoLkl5sH/7/qfRh0LjPNNuZyHi8JCIDV7hGiZhyYf1cZ6q gUhBrw3rVT1pVp/J546yXc4ns1nZemvvDRSFvzrLx6lJnRFXhVrhB+0Fdt+60MTc DOCz+5CckF+E1Wlr =0qD9 -----END PGP SIGNATURE----- --==-=-=--