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=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no 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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0AFA31F4C4 for ; Tue, 5 Nov 2024 20:09:34 +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=Lfe+itDi; 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=U1Wq2Vxu; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1730837372; bh=sOtA4cuJXosvuR1JQ+iufyVicCQ9FmsIOX9mpLlrWbo=; 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=Lfe+itDiR0t/nhF1JbYbk+aVX378pRFKVQF8GxEWaibAOpvtNLL83dCyD8DHK1Hdr TLEoG5PpORjpsRW/IjVaW6UqXvgo0iNts+4/QoG1trIkqwrURuA1Rk5YwlFl5hl21M 3EuFx9Op4B9h1V9g6IMuUvNRshJDJz+fa1ETvVHc= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 7D4D844B46 for ; Tue, 5 Nov 2024 20:09:32 +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=U1Wq2Vxu; dkim-atps=neutral Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 5F31C445E8 for ; Tue, 5 Nov 2024 20:09:20 +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=AtFs3lFO3fFwEnlBVAEecz+VPVwCwVHswALc3pqB6bw=; b=U1Wq2VxuTfut2RUlv0ITcZGu1U87Oh6/idgPF65ajlz6ff+mEFfqYdAnbiRG8VjySxbm bhYmZJ6bb1YkiSwMD3p2qjQWhnw9oBrXvw0rCrmj5X6PiPyxyzyvgblvlgPPZ4Qb+6sWnA oBjm2aH6Xjbmg+OeSd7EVhF8eK2y19TdIInFp9Sr85+eq91LiZYSoBVCPGOrudz22G6niX 9v0ve45oN6rGBqEWXCCSKHAv2sZXLKRDO/MpSiap8lguarSRwfIhG+mO3ZtwemTZlqkUJB 9dUNM6hjW7+2RbV7Vsinvtgp5p5eF+oQj/S79hVBynO+e1yRlKb//YVG2RuxLBMA== Received: by recvd-5577bcb48c-pd8nc with SMTP id recvd-5577bcb48c-pd8nc-1-672A7B6E-5 2024-11-05 20:09:18.078127224 +0000 UTC m=+4673602.055414883 Received: from herokuapp.com (unknown) by geopod-ismtpd-20 (SG) with ESMTP id xeXZVqS2Trm6ECozf76DEg for ; Tue, 05 Nov 2024 20:09:18.061 +0000 (UTC) Date: Tue, 05 Nov 2024 20:09:18 +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: 96417 X-SG-EID: =?us-ascii?Q?u001=2EGVZzRnrRlk0QOwritE1xd3zUmFjgHvTYllep2muUlP3YJ0v2GPjWgc0=2FE?= =?us-ascii?Q?+BpEH1=2FMWEOBHmvfYQ2pBXwJi7NTJ=2FKo4UkHuw+?= =?us-ascii?Q?cOPvnrQ9J5497319oXimwwJYAA=2FbQ3HgYI435Lr?= =?us-ascii?Q?ppY5HWGjqeoJJPkF1Nwk3AqL+STBVDuUelRZZk1?= =?us-ascii?Q?OtzjLJodSmrwS+bP7D0DCdvW5YMaEmps5bBjdnq?= =?us-ascii?Q?hwGLRXY6ughmcpSap5IOeMs0LPUWpNjIlVlPvbZ?= =?us-ascii?Q?cYiKZzOQhrm7=2FCt+BMxHolg5lA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: YN6CCAEACNXPORBUODRMKKOBIRW2M5RO X-Message-ID-Hash: YN6CCAEACNXPORBUODRMKKOBIRW2M5RO 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:119751] [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 reported by sanderd17 (Sander Deryckere). ---------------------------------------- Bug #20871: Including methods in Enumerable doesn't make them available in Array https://bugs.ruby-lang.org/issues/20871 * 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/