From patchwork Thu Nov 25 01:24:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 34796 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DEE1127BBEA; Thu, 25 Nov 2021 01:25:48 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A334327BBE9 for ; Thu, 25 Nov 2021 01:25:48 +0000 (GMT) Received: from localhost ([::1]:38252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mq3WF-0005yp-Sw for patchwork@mira.cbaines.net; Wed, 24 Nov 2021 20:25:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq3VX-0005k0-B2 for guix-patches@gnu.org; Wed, 24 Nov 2021 20:25:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mq3VX-0001vD-1Y for guix-patches@gnu.org; Wed, 24 Nov 2021 20:25:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mq3VW-0007tY-Uq for guix-patches@gnu.org; Wed, 24 Nov 2021 20:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52078] [PATCH v2 1/3] gnu: julia: Disable broken tests. References: <20211124141907.64286-1-zimon.toutoune@gmail.com> In-Reply-To: <20211124141907.64286-1-zimon.toutoune@gmail.com> Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Nov 2021 01:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52078 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52078@debbugs.gnu.org Cc: maxim.cournoyer@gmail.com, zimoun Received: via spool by 52078-submit@debbugs.gnu.org id=B52078.163780350130324 (code B ref 52078); Thu, 25 Nov 2021 01:25:02 +0000 Received: (at 52078) by debbugs.gnu.org; 25 Nov 2021 01:25:01 +0000 Received: from localhost ([127.0.0.1]:55342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq3VU-0007sv-Jr for submit@debbugs.gnu.org; Wed, 24 Nov 2021 20:25:00 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]:45739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq3VS-0007sT-60 for 52078@debbugs.gnu.org; Wed, 24 Nov 2021 20:24:59 -0500 Received: by mail-wr1-f47.google.com with SMTP id o13so7814228wrs.12 for <52078@debbugs.gnu.org>; Wed, 24 Nov 2021 17:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jGW4UmVwHdFkX/RIHu0/mNinjLOGZC+zjSZ9c9Bkne4=; b=fYaB24A4n7lJuJs9WKTTP+fr+20+AsqRGeCyoA7VLM1vwAWZ47GBzQXlYPDzeMf5fS crbv7eF9Q78tF1SM34LWRwI1axOW8fcFiRZcwMEDABrf1XijJdGmKyv0KmY++4hjav0Y Ab8tz9e9iqEba06h2GXW3/9OSbo5ypcrzaoEHbaqS3VfGw3JyLc49Q9Og9pwampd1mb7 tokIFiceHb84DDUjxpA9RuMGslJ93rsgDCxQKgeiS0wkQtBq9i4y/zov8ICutZWyOuQC WPrIHVPDXuXAu9UBSzy+O/wIN3w5MwkSoBMvDJwfpRbpYCHXH4yOB9P5I82aCvsW/uYC fDNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jGW4UmVwHdFkX/RIHu0/mNinjLOGZC+zjSZ9c9Bkne4=; b=slTIUCHqN7gZD0lgTi0+iHz/Q8l/BGwSgaoXB3IqvZZRXdNI/n4PRH2v75TK2/qlGL rZmcHZX89GgTNcAJSpzVkeP7Dckykyfk30f0t9yI69PA4LJX4YQyNMgZmZfdY6XOkkGM nroiH5bMfLNl24jKlZ/1ugEyMwwGXGsI/zm9Y/golrIv/T6jfQZWRUviwCTJFxkYOOJe D6/1SaRBFiB9pDcHuqzDaJTmxeMd22LC6DAwx01/+5I8mloP+6fg8s4/dxjKOEvCd9AL S6Lnb3D0SOatYkksIAfMD6KiEQzYeaJj9DTQ+yqYk6jktjy3lV8teqQIWI0SvDddz61t gj2w== X-Gm-Message-State: AOAM530Jlp9P+CoK9iZ3C+/Qz9pLZ0t+H0XRuyix2Vw2B1K7M5XG4OTT B2yOK6jtzoK/jgIWFkhAyN3A3y9v7x4= X-Google-Smtp-Source: ABdhPJyIta9zRosp93Yejc07u0O7D6gKLYT+ontvhAOf4cvIGHGqzgUS0q/OQm56V/laExthqgt0rg== X-Received: by 2002:adf:f602:: with SMTP id t2mr2045570wrp.539.1637803492250; Wed, 24 Nov 2021 17:24:52 -0800 (PST) Received: from localhost.localdomain ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id p27sm1214691wmi.28.2021.11.24.17.24.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 17:24:51 -0800 (PST) From: zimoun Date: Thu, 25 Nov 2021 02:24:41 +0100 Message-Id: <20211125012443.21840-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/julia.scm (julia)[arguments]: Disable broken tests. --- gnu/packages/julia.scm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) base-commit: c70eadeaed9367e45be3797a17d3a34e5f8f67cd diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm index aff7e1a66f..649ffb8ee4 100644 --- a/gnu/packages/julia.scm +++ b/gnu/packages/julia.scm @@ -358,8 +358,8 @@ (define-public julia ;; Dates/io tests fail on master when networking is unavailable ;; https://github.com/JuliaLang/julia/issues/34655 (substitute* "stdlib/Dates/test/io.jl" - (("\"Dates.Date") "\"Date") - (("\"Dates.Time") "\"Time")) + (("using Dates") "import Dates +using Dates: @dateformat_str, Date, DateTime, DateFormat, Time")) ;; Upstream bug I found when packaging ;; https://github.com/JuliaLang/julia/issues/35785 (substitute* "test/file.jl" @@ -382,7 +382,18 @@ (define-public julia ;(setenv "LC_ALL" "en_US.utf8") (substitute* "test/cmdlineargs.jl" (("test v\\[3") "test_broken v[3") - (("test isempty\\(v\\[3") "test_broken isempty(v[3")))) + (("test isempty\\(v\\[3") "test_broken isempty(v[3")) + ;; These tests randomly fails because they depend on CPU. + (substitute* "stdlib/LinearAlgebra/test/matmul.jl" + ;; Fixed in v1.6.4 + ;; https://github.com/JuliaLang/julia/blob/v1.6.4/stdlib/LinearAlgebra/test/matmul.jl#L155 + (("@test mul\\!\\(C, vf, transpose\\(vf\\), 2, 3\\) == 2vf\\*vf' \\.\\+ 3C0") + "@test mul!(C, vf, transpose(vf), 2, 3) ≈ 2vf*vf' .+ 3C0")) + (substitute* "test/math.jl" + ;; @test_broken cannot be used because if the test randomly + ;; passes, then it also raises an error. + (("@test isinf\\(log1p\\(-one\\(T\\)\\)\\)") + " ")))) (add-before 'install 'symlink-libraries (lambda* (#:key inputs outputs #:allow-other-keys) (let ((link