From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YG6XDd3iwmBtZAEAgWs5BA (envelope-from ) for ; Fri, 11 Jun 2021 06:13:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id BezfCN3iwmAobwAAbx9fmQ (envelope-from ) for ; Fri, 11 Jun 2021 04:13:17 +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 DC1ADDBE9 for ; Fri, 11 Jun 2021 06:13:15 +0200 (CEST) Received: from localhost ([::1]:34648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrYXi-0003Pf-H9 for larch@yhetil.org; Fri, 11 Jun 2021 00:13:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrYXW-0003P0-OU for guix-patches@gnu.org; Fri, 11 Jun 2021 00:13:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrYXW-0005f0-Eg for guix-patches@gnu.org; Fri, 11 Jun 2021 00:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lrYXW-0004tm-Az for guix-patches@gnu.org; Fri, 11 Jun 2021 00:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48954] [PATCH] gnu: python-lint-cfn: Fix non-reproducible test suite Resent-From: Ryan Sundberg Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 11 Jun 2021 04:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48954 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48954@debbugs.gnu.org Cc: Ryan Sundberg X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162338477918820 (code B ref -1); Fri, 11 Jun 2021 04:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jun 2021 04:12:59 +0000 Received: from localhost ([127.0.0.1]:37954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrYXT-0004tU-Gp for submit@debbugs.gnu.org; Fri, 11 Jun 2021 00:12:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:50376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrYXN-0004tH-VE for submit@debbugs.gnu.org; Fri, 11 Jun 2021 00:12:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrYXN-0003Oq-PI for guix-patches@gnu.org; Fri, 11 Jun 2021 00:12:53 -0400 Received: from mail.arctype.co ([138.68.9.245]:40130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrYXH-0005Qk-6g for guix-patches@gnu.org; Fri, 11 Jun 2021 00:12:53 -0400 Received: from authenticated-user (mail.arctype.co [138.68.9.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.arctype.co (Postfix) with ESMTPSA id 8D62711EF11; Thu, 10 Jun 2021 21:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arctype.co; s=mail; t=1623384763; bh=PZ/vqY50QeSuBQDfwiKqB7/oLNoojJblZsxJpZB3eU0=; h=From:To:Cc:Subject:Date:From; b=p4JPekmgp24EQG8tnioRNolxQzRqM0VvYYTWYyYxnjGr9fbQm1ZLP8FxGgLqKiRw0 bYthk48L8EpLzDZ+LVZSiFfoabhC1WgWrkoUYzgy8UUHKSwp1qJKrhjl4T6VmJgIR9 WzExHCaypTEWD1GJkRL4mCHmlbq2UXqTn8i4V7AV8cnZ+LA+YMYTECb3ZoCswivCBP p5nf9ilMg2StzpJsbcbXs4DmPj19+U6gT3c46JFlr1nz8M9UHgTBSon1ieKDVqWGYm xmtaV4OftCSKNkYWo/9siSqXHh0WS5yntuavffF0MBj8zTd/qSZ3FPIXsYKclCc3Ud z7qQZ30712bCQ== Date: Thu, 10 Jun 2021 21:12:33 -0700 Message-Id: <20210611041233.19012-1-ryan@arctype.co> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=138.68.9.245; envelope-from=ryan@arctype.co; helo=mail.arctype.co X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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" Reply-to: Ryan Sundberg X-ACL-Warn: , Ryan Sundberg via Guix-patches From: Ryan Sundberg via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623384797; h=from:from:sender:sender:reply-to: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=sikBGBYe/IwqKOiD9jf76K/17yFFzx8q8rkXI3T0ujw=; b=lURas8iFm2yZMdUBab8rERhQHxdd0zfH8muqtirAhPJnn+EYppYKdIblP3furlt5GYehwu SDsDFpGkCZFyo7Sb/WieUKfrTqVrVqQ0vLiKa7B73cUXWbLHlsRQIqgCkrvE6uIlw8Hs6U qibtZrE6HWclIRoM9Z4AVfDQOxbccl4omTAGmEx0D8GAaiQeze8X7nMrWaTHnRP+Xj/+Gv bE5Nr5aGTmzJHnaXAnbaZe7iOXOGRL+ClQylRL+Apqkc9tGjOsIFXhZwazS4/bnxtuz1Wc sJLie4k+wIAK1D7pWQ5uxtAJ+Sqk88BuUlGYvZUuxwXrvgOeG20xxJxjgmvZwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623384797; a=rsa-sha256; cv=none; b=MecvqeFKUudDtoedIDOF9TRKcF/6QeNiQr2ucL3l9I4YOrf67+XuYO+cYupt5+cpbnT5y1 N7R6rWyk7TVEx3D/jTclftsD/VzuEfIqzOBM4SNM3tpOAkMNuZ0Fzd435fgoF7WW3STpT7 6aegdsIU1UMKP8jKHDbN2FZDzJlOvm8qY7H4lxvQoTMwA1y3lfMh6MMA2l3D/7dm8vK8v8 Jral+3fSwF/Rv27NbUoqgsamBWCLYEi2ggCb+h09HruNQHCHq5mGVV+tHIpG5+UTpSDitD P49FfSYMgUejoCdfO5pguhdg/grpKaDj959zJmX++0eC1VLlr3oQcGJ4daXMyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=arctype.co header.s=mail header.b=p4JPekmg; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.08 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=arctype.co header.s=mail header.b=p4JPekmg; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: DC1ADDBE9 X-Spam-Score: 1.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5V42tRTxcStN Some tests for python-cfn-lint are dependent on the date the tests are run, which can cause the tests to spontaneously start failing. See https://github.com/aws-cloudformation/cfn-lint/issues/1705 for the upstream discssion. This patch removes the unstable test cases. * gnu/packages/python-web.scm: Patch python-cfn-lint tests Signed-off-by: Ryan Sundberg --- ...n-lint-disable-nonreproducible-tests.patch | 42 +++++++++++++++++++ gnu/packages/python-web.scm | 6 ++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/python-cfn-lint-disable-nonreproducible-tests.patch diff --git a/gnu/packages/patches/python-cfn-lint-disable-nonreproducible-tests.patch b/gnu/packages/patches/python-cfn-lint-disable-nonreproducible-tests.patch new file mode 100644 index 0000000000..e9fb1bda45 --- /dev/null +++ b/gnu/packages/patches/python-cfn-lint-disable-nonreproducible-tests.patch @@ -0,0 +1,42 @@ +diff --git a/test/integration/test_quickstart_templates.py b/test/integration/test_quickstart_templates.py +index 41058b29..d859b6d1 100644 +--- a/test/integration/test_quickstart_templates.py ++++ b/test/integration/test_quickstart_templates.py +@@ -59,16 +59,6 @@ class TestQuickStartTemplates(BaseCliTestCase): + 'filename': 'test/fixtures/templates/quickstart/openshift_master.yaml', + 'results_filename': 'test/fixtures/results/quickstart/openshift_master.json', + 'exit_code': 8, +- }, +- { +- 'filename': 'test/fixtures/templates/quickstart/openshift.yaml', +- 'results_filename': 'test/fixtures/results/quickstart/openshift.json', +- 'exit_code': 14, +- }, +- { +- 'filename': 'test/fixtures/templates/quickstart/cis_benchmark.yaml', +- 'results_filename': 'test/fixtures/results/quickstart/cis_benchmark.json', +- 'exit_code': 6, + } + ] + +diff --git a/test/integration/test_quickstart_templates_non_strict.py b/test/integration/test_quickstart_templates_non_strict.py +index 7372fb0b..85637c91 100644 +--- a/test/integration/test_quickstart_templates_non_strict.py ++++ b/test/integration/test_quickstart_templates_non_strict.py +@@ -19,16 +19,6 @@ class TestQuickStartTemplates(BaseCliTestCase): + 'filename': 'test/fixtures/templates/quickstart/nist_application.yaml', + 'results_filename': 'test/fixtures/results/quickstart/non_strict/nist_application.json', + 'exit_code': 12, +- }, +- { +- 'filename': 'test/fixtures/templates/quickstart/openshift.yaml', +- 'results_filename': 'test/fixtures/results/quickstart/non_strict/openshift.json', +- 'exit_code': 12, +- }, +- { +- 'filename': 'test/fixtures/templates/quickstart/cis_benchmark.yaml', +- 'results_filename': 'test/fixtures/results/quickstart/non_strict/cis_benchmark.json', +- 'exit_code': 4, + } + ] + diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 1d65b2b0a8..9c05052a7d 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -475,7 +475,11 @@ emit information from within their applications to the AWS X-Ray service.") (file-name (git-file-name name version)) (sha256 (base32 - "0nqs0fmj3hd7pnd9hkb4z57jvi2iv82hh6n3xxba6i6p8zgx75q4")))) + "0nqs0fmj3hd7pnd9hkb4z57jvi2iv82hh6n3xxba6i6p8zgx75q4")) + ;; Some test cases for this program are dependent on the date the + ;; tests are run. Disable those tests. + ;; See https://github.com/aws-cloudformation/cfn-lint/issues/1705 + (patches (search-patches "python-cfn-lint-disable-nonreproducible-tests.patch")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases -- 2.31.1