From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 431841F463 for ; Mon, 9 Dec 2019 12:57:17 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 9466E120A77; Mon, 9 Dec 2019 21:57:05 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 9D469120A6F for ; Mon, 9 Dec 2019 21:57:02 +0900 (JST) Received: by filter0189p3mdw1.sendgrid.net with SMTP id filter0189p3mdw1-10751-5DEE44A1-16 2019-12-09 12:57:05.457254374 +0000 UTC m=+1688732.828111906 Received: from herokuapp.com (unknown [54.88.243.118]) by ismtpd0054p1mdw1.sendgrid.net (SG) with ESMTP id xdGC76UfSXOjzD9vj_mdtQ for ; Mon, 09 Dec 2019 12:57:05.281 +0000 (UTC) Date: Mon, 09 Dec 2019 12:57:05 +0000 (UTC) From: v.ondruch@tiscali.cz Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 71810 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16361 X-Redmine-Issue-Author: vo.x X-Redmine-Sender: vo.x 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-SG-EID: =?us-ascii?Q?mWhqNvD1xlBozk4zn6CTHlnSPHlTKkyHJdiOH=2FzC52h5ENTvztq2GebUrdOlUe?= =?us-ascii?Q?03dE=2FUCHmScUqAsCudLVSrzaf5gU1DUEpHRDPz4?= =?us-ascii?Q?U=2F3CCTbIQYdp8UxLEtj3ktGGUQ2Mfu6GmIUCXV3?= =?us-ascii?Q?1QTRs=2FEC2VMuytUR7rATcZyIdFJpGSO+CJz2y8v?= =?us-ascii?Q?Ae2TK1jFEIScY2O1Pw2WQSFQUZJFRnprbQA=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 96163 Subject: [ruby-core:96163] [Ruby master Bug#16361] TestEnv#test_fetch failure X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16361 has been updated by vo.x (Vit Ondruch). And I can trigger different errors: ~~~ $ make test-all TUST="" TESTS="test/optparse/test_did_you_mean.rb test/ruby/test_env.rb" fatal: not a git repository (or any of the parent directories): .git ./revision.h unchanged Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" --excludes-dir=./test/excludes --name=!/memory_leak/ # Running tests: [11/55] TestEnv#test_fetch = 0.00 s 1) Failure: TestEnv#test_fetch [/builddir/ruby-2.7.0-053f78e139/test/ruby/test_env.rb:123]: [ruby-core:56062] [Feature #8649]. Expected Exception(KeyError) was raised, but the message doesn't match. <"key not found: \"test\""> expected but was <"key not found: \"test\"\n" + "Did you mean? \"TUST\"\n" + " \"TESTS\"">. Finished tests in 0.025079s, 2193.0325 tests/s, 32177.7674 assertions/s. 55 tests, 807 assertions, 1 failures, 0 errors, 0 skips ruby -v: ruby 2.7.0dev (2019-11-22 master 053f78e139) [x86_64-linux] make: *** [uncommon.mk:780: yes-test-all] Error 1 ~~~ ---------------------------------------- Bug #16361: TestEnv#test_fetch failure https://bugs.ruby-lang.org/issues/16361#change-83041 * Author: vo.x (Vit Ondruch) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.7.0dev (2019-11-22 master f9d20a1bf1) [x86_64-linux] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- I am facing following test suite error: ~~~ 1) Failure: TestEnv#test_fetch [/builddir/build/BUILD/ruby-2.7.0-f9d20a1bf1/test/ruby/test_env.rb:123]: [ruby-core:56062] [Feature #8649]. Expected Exception(KeyError) was raised, but the message doesn't match. <"key not found: \"test\""> expected but was <"key not found: \"test\"\n" + "Did you mean? \"TESTS\"">. ~~~ Trying to execute this test independently, it passes just fine. So it seems that the did_you_mean gem is loaded unexpectedly on this place. I just tried: ~~~ mv test/optparse/test_did_you_mean.rb{,.bak} ~~~ since this is the latest addition IMO and the test suite passes just fine. I am not really sure why it should fail on my setup and it probably does not fail in any other CI. Neither I am sure what would be the best option to fix this. The assertion could be updated to accept this message by simple sed: ~~~ sed -i "/'key not found: \"test\"'/ s/'/\//g" test/ruby/test_env.rb ~~~ -- https://bugs.ruby-lang.org/