From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 20 13:25:32 2023 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:25:32 +0000 Received: from localhost ([127.0.0.1]:56125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJGG-0003qL-1G for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:25:32 -0400 Received: from mail-qt1-f177.google.com ([209.85.160.177]:46960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJFG-0003dR-C1 for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:24:31 -0400 Received: by mail-qt1-f177.google.com with SMTP id c19so13958656qtn.13 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679333070; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l7xVtl6SgkgEs102CrB7n4NHuHSD/+9f53KBEDZPprs=; b=lgNstK1HeSGxGLLEqAGmZp3ZwxRe1vbFR24YxJaDvRdGZlBPVHgNmH5hliQJlvBPrF K353tBLy5hwMwAUigZJh1/da/H1HUFTj3iJGwBxXNN6G1lU8zHwaJtdEzcfprm+Hg459 0OpthKY40UDRe8BoNGxUKO7NLns72DdInEqb4SEiVNIoZ5K6dzTgkYYnahH6qlFZm1if cjyFfq4xXql0amuwJdTLsn5gj/JWRnR4+IcV+1d/PnsC1p0A0bPrhrK2GdNmaZZrOdcI juu/uBL2VBDUsFq6ls4yP9cAjI9U4uvHa5n8sQqmPk/Sv1iYm8X4AziBj1oGRhZ+QFCu 08dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679333070; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l7xVtl6SgkgEs102CrB7n4NHuHSD/+9f53KBEDZPprs=; b=go+RR1htL0flu5VDHs4x0NLgrggrZdsTJ3f4wlrA/9kvMJrHFLkqU2ov4b2DVWEbyu JakA/UvZfQPdNuzfV1gM4HbJ8UysnFlJuD+RQ6BDA9UGQn0GbHR5LyYOeTY6LmaEstS1 qMqjly93KomZYjG5fq2BGsQdWgPorfYsyL0QL5wSRlhg4kZad59KvR1/laU2HDssv5MG 4CithaN8+7awZd+rARvAKCt2okauRU1/zIIl64aC4oiJ26FnOSm4chYwWsjbcZl7gmZT heUsmilqSf80LzSEyQQG0ig67ZhVxKmMXwuaR4jHpALMOVOGP4iFaYXlysI8yV/PpM3l jKaw== X-Gm-Message-State: AO0yUKUdSvnCq3DTV/IVKJL8KXNtfOud+uyJyVmx9ti0+Foh+fY4aS9w FH8qzWPZi5JgpbqA1f1uMBxuJDG0x14= X-Google-Smtp-Source: AK7set8umMFPGxa0xKZ6xPnG/JB3L3BR6ZU8qjkRGayOgRpWMR96HQXgfAxUjr7FBlXxsEyIETQP1w== X-Received: by 2002:ac8:7e8c:0:b0:3b6:3a58:912d with SMTP id w12-20020ac87e8c000000b003b63a58912dmr126212qtj.0.1679333069475; Mon, 20 Mar 2023 10:24:29 -0700 (PDT) Received: from localhost.localdomain (dsl-10-128-46.b2b2c.ca. [72.10.128.46]) by smtp.gmail.com with ESMTPSA id i7-20020a378607000000b007422eee8058sm7769352qkd.125.2023.03.20.10.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:24:29 -0700 (PDT) From: Maxim Cournoyer To: 62196@debbugs.gnu.org Subject: [PATCH 137/223] gnu: ruby-actionpack: Update to 7.0.4.3 and enable test suite. Date: Mon, 20 Mar 2023 13:22:23 -0400 Message-Id: <20230320172349.12752-36-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230320172349.12752-1-maxim.cournoyer@gmail.com> References: <20230320172349.12752-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62196 Cc: Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/rails.scm (ruby-actionpack): Update to 7.0.4.3. [source]: Use ruby-rails-monorepo. [arguments]: Delete #:tests? argument. Add #:phases argument. [native-inputs]: New field. [propagated-inputs]: Add ruby-rack-cache and ruby-rack-session. --- gnu/packages/rails.scm | 106 +++++++++++++++++++++++++++++++---------- 1 file changed, 81 insertions(+), 25 deletions(-) diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm index bff4e09264..d3712a93c9 100644 --- a/gnu/packages/rails.scm +++ b/gnu/packages/rails.scm @@ -468,32 +468,88 @@ (define-public ruby-actionview (define-public ruby-actionpack (package - (name "ruby-actionpack") - (version "6.1.3") - (source - (origin - (method url-fetch) - (uri (rubygems-uri "actionpack" version)) - (sha256 - (base32 - "030yyaskzlic5cp4d9zbwwr3rhf4k6hsls44a7ihsfd6r8mlivq5")))) - (build-system ruby-build-system) - (arguments - '(;; No included tests - #:tests? #f)) - (propagated-inputs - (list ruby-actionview - ruby-activesupport - ruby-rack - ruby-rack-test - ruby-rails-dom-testing - ruby-rails-html-sanitizer)) - (synopsis "Conventions for building and testing MVC web applications") - (description - "ActionPack provides conventions for building and testing MVC web + (name "ruby-actionpack") + (version %ruby-rails-version) + (source ruby-rails-monorepo) + (build-system ruby-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'chdir + (lambda _ + (chdir "actionpack"))) + (add-before 'check 'delete-problematic-tests + (lambda _ + (let-syntax ((skip-tests + (syntax-rules () + ((_ file test ...) + (substitute* file + ;; ActiveSupport test case. + (((string-append "test \"" test "\".*") all) + (string-append + all " skip 'fails on guix'\n")) ... + ;; MiniTest test case. + (((string-append "def " test ".*") all) + (string-append + all " skip('fails on guix')\n")) ...))))) + + (with-directory-excursion "test" + (for-each delete-file + ;; These tests depend on rails, which depends on + ;; this package. + '("dispatch/mount_test.rb" + "dispatch/prefix_generation_test.rb" + "dispatch/routing_assertions_test.rb" + "dispatch/routing/inspector_test.rb" + "controller/live_stream_test.rb" + "controller/integration_test.rb" + "controller/test_case_test.rb")) + + ;; The following test failures have been reported upstream + ;; (see: https://github.com/rails/rails/issues/47615). + (skip-tests "controller/new_base/render_streaming_test.rb" + ;; These tests fail due to white space + ;; characters in the compared strings. + "rendering with streaming no layout" + "rendering with streaming enabled at the \ +class level" + "rendering with streaming given to render" + "rendering with layout exception" + "rendering with template exception" + "rendering with streaming do not override \ +explicit cache control given to render") + + (skip-tests "dispatch/system_testing/driver_test.rb" + ;; These tests require Firefox. + "define extra capabilities using headless_firefox" + "define extra capabilities using firefox") + + (skip-tests "dispatch/session/cache_store_test.rb" + ;; This test fails with: "NoMethodError: + ;; undefined method `hash_for' for + ;; #". + "test_getting_session_value_after_session_reset")))))))) + (native-inputs + (list ruby-activemodel + ruby-capybara + ruby-selenium-webdriver + ruby-zeitwerk)) + (propagated-inputs + (list ruby-actionview + ruby-activesupport + ruby-rack + ruby-rack-cache + ruby-rack-session + ruby-rack-test + ruby-rails-dom-testing + ruby-rails-html-sanitizer)) + (synopsis "Conventions for building and testing MVC web applications") + (description + "ActionPack provides conventions for building and testing MVC web applications. These work with any Rack-compatible server.") - (home-page "https://rubyonrails.org/") - (license license:expat))) + (home-page "https://rubyonrails.org/") + (license license:expat))) (define-public ruby-actioncable (package -- 2.39.1