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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E2FE91F4C1 for ; Mon, 18 Nov 2024 05:03:07 +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=kty39j0Y; 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=GAoVyj/R; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1731906155; bh=EXfN0/MVaWzRDrBF2b5RjEJZBs23jGhllhdvO2EcwD8=; 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=kty39j0YFxJGUcg2D0EO3CTe/FevupQkDTCJ/8yfRVZwVKzW0KSniuiTeRV9vxrY8 14DnJtk7mjBfVNE0kyAsB4RgDyDRWTRpEjmcfjRwuh2k2kEuG7oRihwfvCG5yqMmhc 69D6q5rfwloNoqY3ArdFcZTVS0HUljxCggoTuDkE= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 1DB0544BB6 for ; Mon, 18 Nov 2024 05:02:35 +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=GAoVyj/R; dkim-atps=neutral Received: from s.wrqvtvvn.outbound-mail.sendgrid.net (s.wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 5809C44B7B for ; Mon, 18 Nov 2024 05:02: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=NebHI8fqqWIPHn7OxaRw9kAhq/mf5mJxmzqjNlvrorY=; b=GAoVyj/RpiJ0T2bb24glCntes1buvKySReQ75yhhuhSOdnDdKB2mCs7MWFa1w30pkh04 FUSbwSL9nxXRALonbjiD5yN9uzkbd5OwodGaFDTDuhkct9aW6AdZUjMQdGPLdoM83upKtj F3KyH9HUTRtFgMNfgOReZamjoOdSaRqzO7ZV3jY8n/EdEZ6lzUto/Rmh/CwYxqUcU5iFLB dz0FzLYafBl6+wW8VePB/Sto+EqqdjGgUzzun4/wmzi7BogEg5jFkI0JhMEE1ueoPPPfKu YhCJaPSPixLo0OdY25duXsjdWXoTrm9pNyLQ3uGV9oY+nrPmsnvHQQIF4Nh4bRfQ== Received: by recvd-5c8ccdbd88-27ll7 with SMTP id recvd-5c8ccdbd88-27ll7-1-673ACA5D-20 2024-11-18 05:02:21.335304991 +0000 UTC m=+286754.770904599 Received: from herokuapp.com (unknown) by geopod-ismtpd-21 (SG) with ESMTP id NMYh_G2TRsqBjR6-tOoqyg for ; Mon, 18 Nov 2024 05:02:21.293 +0000 (UTC) Date: Mon, 18 Nov 2024 05:02:21 +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: jeremyevans0 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: 96628 X-SG-EID: =?us-ascii?Q?u001=2ELyyp8a6L4BPdoBZ5kcNQuEdalXgUnCKLcPykf2c9d2sTWfvALBzqM4Ij+?= =?us-ascii?Q?Jg9Prp2eVDkf9lIZhzc05KfUT4Npfgnigb95d+v?= =?us-ascii?Q?hGuAMoCQYcJXpkcFshswaZNJshW1iNQIR72X6Ej?= =?us-ascii?Q?lXYwWwCywA+v58=2FZIdrEUl79WaVb0dPs923Vdz6?= =?us-ascii?Q?F=2FbottRF=2FE9ewT9p2fmOhhatxv1ERZeMSrgGWP5?= =?us-ascii?Q?3IASGvo8qICk9tahTkTCq+6VXcwwG8aFWuX+9hJ?= =?us-ascii?Q?4kJb03F+sPd=2F3denygF1eqYXqg=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: JFW4I3ESAIXL4WY5SWEFN7K2S2XL5CUH X-Message-ID-Hash: JFW4I3ESAIXL4WY5SWEFN7K2S2XL5CUH 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:119954] [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: "jeremyevans0 (Jeremy Evans) via ruby-core" Cc: "jeremyevans0 (Jeremy Evans)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20871 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Feedback The example works as expected on Ruby 3.3.6. It seems unlikely the commit you are referencing is related, because the commits fixes an issue where the method cache is not updated on a change, it wouldn't cause the method not to show up at all. Are you able to provide a self-contained reproducible example for this issue? ---------------------------------------- Bug #20871: Including methods in Enumerable doesn't make them available in Array https://bugs.ruby-lang.org/issues/20871#change-110683 * Author: sanderd17 (Sander Deryckere) * Status: Feedback * 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/