From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id EE1091F4C4 for ; Tue, 5 Nov 2024 20:25:35 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=tImmOQ5J; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=QubeZOIw; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1730838333; bh=F4dYiZ1mmm80zqRIoWospLcf8XOG240mmGxtR7kVT24=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=tImmOQ5JlEMfRdnP1OihCNRT4rFLdUQaOqFKXt7TbNrZM0gq/6cMdOjx+pkxuFGBC OKijGz/W8dhrv0MAJV5MIdsvhHBoAQA2VL0rC/A5ugkT4H0gXqV+qcHjFNvuMqxzJB gBt7q2J1Xy3u6GcntJ6mNd33rYHl7+z1/XDte23k= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 7586344B23 for ; Tue, 5 Nov 2024 20:25:33 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=QubeZOIw; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 7625644B0B for ; Tue, 5 Nov 2024 20:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=x1qdeCWZpBuwFFV+9UONXl6Ad3vooBEs/cDyuzJmgvY=; b=QubeZOIwKRUlAmJRfxybCTgjh6wzRRhu6Zl2dBuDDR8/ev9Bg6JUlVBEcOIOwsakkP/9 UwdSiSOBzzeII8XmCZAs9z5EI7mEX+24zGp6INbSWV8CJBDZmdQsgCFxOBCRSQq8M2vVR+ Ik44+pbY40cX8uip2PBIx3Dov7TTpKgJKJ4KMkY2gP4P1vA+BaekDjBQIwx/ouTXASGdEo R/TTQaV9RU/o9fSyxtzLGGApN8OELa13pl2wOOO2pWHS7LLcedjRee8wU2dhejAzLzG0eP f8gnNeT45ogVLwncSC1bzTvlTzP6hTOVXm6t6JgGVqHm2MJEO1/d+OYwAzMutJCQ== Received: by recvd-7cc7f7d978-65285 with SMTP id recvd-7cc7f7d978-65285-1-672A7F32-6 2024-11-05 20:25:22.551485817 +0000 UTC m=+4674509.749338330 Received: from herokuapp.com (unknown) by geopod-ismtpd-33 (SG) with ESMTP id B5RI0cFNS5Sl9AvC2RkiYQ for ; Tue, 05 Nov 2024 20:25:22.518 +0000 (UTC) Date: Tue, 05 Nov 2024 20:25:22 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20871 X-Redmine-Issue-Author: sanderd17 X-Redmine-Issue-Priority: Normal X-Redmine-Sender: sanderd17 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 96418 X-SG-EID: =?us-ascii?Q?u001=2EGVZzRnrRlk0QOwritE1xd3zUmFjgHvTYllep2muUlP3YJ0v2GPjWgc0=2FE?= =?us-ascii?Q?+BpEH1=2FMWEOBHmvfYQ2pBXwJi7NTJ=2FKo4UkHuw+?= =?us-ascii?Q?cOPvnrQ9J54KMIa6Cnz2bAa18iSzY6B1n2jgmk5?= =?us-ascii?Q?=2F1ucvL2M7uD3=2FRTHhZz2uNoyF6agcwIPTRzzk5A?= =?us-ascii?Q?sZNBW5AiuvNZmUo+xo2NsYvUvRpaEhmEyMqHacA?= =?us-ascii?Q?r8W2KL2LtTXKaYqhbMMyxX9mUZz50AqesicLNrB?= =?us-ascii?Q?l25+EBmKdJpKAYsOFOszmInbhQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: JVB3SIWSUWZK6ERP5FCRN33TSTCZBP4I X-Message-ID-Hash: JVB3SIWSUWZK6ERP5FCRN33TSTCZBP4I X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119752] [Ruby master Bug#20871] Including methods in Enumerable doesn't make them available in Array List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "sanderd17 (Sander Deryckere) via ruby-core" Cc: "sanderd17 (Sander Deryckere)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20871 has been updated by sanderd17 (Sander Deryckere). Forgot to mention. We use the `parallel_tests` gem to speed up our specs in CI. On my local environment, with synchronous tests, I haven't been able to reproduce the same behaviour either. ---------------------------------------- Bug #20871: Including methods in Enumerable doesn't make them available in Array https://bugs.ruby-lang.org/issues/20871#change-110416 * Author: sanderd17 (Sander Deryckere) * Status: Open * ruby -v: 3.3.6 * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Today, our CI pipeline started failing after the automatic update from v3.3.5 to v3.3.6. After researching, it turned out that our core extensions to the `Array` class weren't loaded anymore. The core-extensions code looks like this: ```ruby module CoreExt module Enumerable def average sum(&:to_f) / count if any? end # def ... end end Enumerable.include CoreExt::Enumerable ``` After some debugging, it turned out that the `average` method was included in the `instance_methods` of `Enumerable`, but not in the `instance_methods` of `Array`. Explicitly adding `Array.include CoreExt::Enumerable` fixes CI for our case. The very strange thing is that it only happens on a release branch we are still maintaining. It doesn't happen on our main development branch (which also updated to v3.3.6 today). I have been unable to find the difference between both branches so far (they diverged a couple of months ago, but the base system is still regularly updated on both, and pretty similar). After some digging around, I assume this commit is related to our issue: https://github.com/ruby/ruby/commit/edeb0319f7a95dfe3f9b895bcf32371dd8514726 -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/