ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:95911] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
@ 2019-11-22 14:35 ` v.ondruch
  2019-11-23  0:34 ` [ruby-core:95914] " mame
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: v.ondruch @ 2019-11-22 14:35 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been reported by vo.x (Vit Ondruch).

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:95914] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
  2019-11-22 14:35 ` [ruby-core:95911] [Ruby master Bug#16361] TestEnv#test_fetch failure v.ondruch
@ 2019-11-23  0:34 ` mame
  2019-11-23 20:20 ` [ruby-core:95916] " v.ondruch
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mame @ 2019-11-23  0:34 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by mame (Yusuke Endoh).


How did you run the test?  Currently, bundled gems should be unavailable in `make test-all`, and some tests don't assume that bundled gems are loaded.

Currently, did_you_mean is a bundled gem, so should not be loaded in `make test-all`.  [test/optparse/test_did_you_mean.rb](https://github.com/ruby/ruby/blob/818708edab6e950a8c1828816b73d36f05585f9f/test/optparse/test_did_you_mean.rb#L3) is disabled in effect: `require "did_you_mean" rescue return`.  So this test file should not be loaded in the whole test suite run.

We plan to convert did_you_mean to a default gem.  Until the conversion, the test file will be disabled.

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361#change-82754

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:95916] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
  2019-11-22 14:35 ` [ruby-core:95911] [Ruby master Bug#16361] TestEnv#test_fetch failure v.ondruch
  2019-11-23  0:34 ` [ruby-core:95914] " mame
@ 2019-11-23 20:20 ` v.ondruch
  2019-11-24 14:08 ` [ruby-core:95924] " mame
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: v.ondruch @ 2019-11-23 20:20 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by vo.x (Vit Ondruch).


mame (Yusuke Endoh) wrote:
> How did you run the test?

I am using the snapshot to execute the test suite. Therefore I assume that did_you_mean gem is available and the test suite should pass in this configuration.

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361#change-82758

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:95924] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2019-11-23 20:20 ` [ruby-core:95916] " v.ondruch
@ 2019-11-24 14:08 ` mame
  2019-11-26  8:05 ` [ruby-core:95953] " v.ondruch
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mame @ 2019-11-24 14:08 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by mame (Yusuke Endoh).


I cannot reproduce the issue with ruby 2.7.0-preview3.

```
$ make test-all TESTS=test/ruby/test_env.rb
fatal: not a git repository (or any of the parent directories): .git
./revision.h unchanged
config.status: creating ruby-runner.h
making mjit_build_dir.so
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:

Finished tests in 0.026560s, 1618.9994 tests/s, 40889.1485 assertions/s.
43 tests, 1086 assertions, 0 failures, 0 errors, 0 skips

ruby -v: ruby 2.7.0preview3 (2019-11-22 master 35608760ff) [x86_64-linux]
```

Could you elaborate on what you did?

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361#change-82764

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:95953] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2019-11-24 14:08 ` [ruby-core:95924] " mame
@ 2019-11-26  8:05 ` v.ondruch
  2019-11-26 14:16 ` [ruby-core:95962] " mame
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: v.ondruch @ 2019-11-26  8:05 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by vo.x (Vit Ondruch).


mame (Yusuke Endoh) wrote:
> I cannot reproduce the issue with ruby 2.7.0-preview3.
> 
> ```
> $ make test-all TESTS=test/ruby/test_env.rb
> 
> ... snip ...


That is what I more or less said, quoting myself:

> Trying to execute this test independently, it passes just fine.

You have to run the whole test suite. Take the snapshot (mine was from 2019-11-22) and run the whole test suite:

~~~
$ make test-all
~~~

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361#change-82789

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:95962] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2019-11-26  8:05 ` [ruby-core:95953] " v.ondruch
@ 2019-11-26 14:16 ` mame
  2019-12-09 12:50 ` [ruby-core:96161] " v.ondruch
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mame @ 2019-11-26 14:16 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by mame (Yusuke Endoh).


So are you running just `make test-all` normally?  I misguessed that you reconstructed the tarball for rpm package or something.  Sorry.

I have never seen the issue in CIs (I may overlook of course), and we have no such a report against preview3.  I've run the following but cannot reproduce the issue.

```
$ wget https://cache.ruby-lang.org/pub/ruby/snapshot.tar.gz
$ tar xf snapshot.tar.gz
$ cd snapshot
$ ./configure && make -j && make test-all
```

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361#change-82796

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:96161] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2019-11-26 14:16 ` [ruby-core:95962] " mame
@ 2019-12-09 12:50 ` v.ondruch
  2019-12-09 12:54 ` [ruby-core:96162] " v.ondruch
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: v.ondruch @ 2019-12-09 12:50 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by vo.x (Vit Ondruch).


Ah, finally I understand where does the issue comes from. I execute the test suite via:

~~~
$ ./configure && make -j && make test-all TESTS="-v "
~~~

(actually this is the specific command [1]) and apparently the `TESTS` comes from this place.


[1]: https://src.fedoraproject.org/rpms/ruby/blob/4f0a1bc2fd2d4f17df37e9bdc249d937a79b424c/f/ruby.spec#_872

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361#change-83039

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:96162] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2019-12-09 12:50 ` [ruby-core:96161] " v.ondruch
@ 2019-12-09 12:54 ` v.ondruch
  2019-12-09 12:57 ` [ruby-core:96163] " v.ondruch
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: v.ondruch @ 2019-12-09 12:54 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by vo.x (Vit Ondruch).


This is shorter reproducer:

~~~
$ make test-all 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?  \"TESTS\"">.

Finished tests in 0.024122s, 2280.0665 tests/s, 32957.3255 assertions/s.  
55 tests, 795 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-83040

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:96163] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2019-12-09 12:54 ` [ruby-core:96162] " v.ondruch
@ 2019-12-09 12:57 ` v.ondruch
  2020-01-08 15:35 ` [ruby-core:96713] " v.ondruch
  2020-01-08 22:06 ` [ruby-core:96717] " mame
  10 siblings, 0 replies; 11+ messages in thread
From: v.ondruch @ 2019-12-09 12:57 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:96713] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
                   ` (8 preceding siblings ...)
  2019-12-09 12:57 ` [ruby-core:96163] " v.ondruch
@ 2020-01-08 15:35 ` v.ondruch
  2020-01-08 22:06 ` [ruby-core:96717] " mame
  10 siblings, 0 replies; 11+ messages in thread
From: v.ondruch @ 2020-01-08 15:35 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by vo.x (Vit Ondruch).


The test case was relaxed by [1] similarly to my initial proposal. If this is desired fix and not just workaround, then this could be closed.


[1]: https://github.com/ruby/ruby/commit/9914d6e992a69587e6d43ba7eaa6cdda9f178f8e

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361#change-83701

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:96717] [Ruby master Bug#16361] TestEnv#test_fetch failure
       [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
                   ` (9 preceding siblings ...)
  2020-01-08 15:35 ` [ruby-core:96713] " v.ondruch
@ 2020-01-08 22:06 ` mame
  10 siblings, 0 replies; 11+ messages in thread
From: mame @ 2020-01-08 22:06 UTC (permalink / raw)
  To: ruby-core

Issue #16361 has been updated by mame (Yusuke Endoh).

Status changed from Open to Closed

Okay, thanks!

----------------------------------------
Bug #16361: TestEnv#test_fetch failure
https://bugs.ruby-lang.org/issues/16361#change-83707

* Author: vo.x (Vit Ondruch)
* Status: Closed
* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-01-08 22:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-16361.20191122143512@ruby-lang.org>
2019-11-22 14:35 ` [ruby-core:95911] [Ruby master Bug#16361] TestEnv#test_fetch failure v.ondruch
2019-11-23  0:34 ` [ruby-core:95914] " mame
2019-11-23 20:20 ` [ruby-core:95916] " v.ondruch
2019-11-24 14:08 ` [ruby-core:95924] " mame
2019-11-26  8:05 ` [ruby-core:95953] " v.ondruch
2019-11-26 14:16 ` [ruby-core:95962] " mame
2019-12-09 12:50 ` [ruby-core:96161] " v.ondruch
2019-12-09 12:54 ` [ruby-core:96162] " v.ondruch
2019-12-09 12:57 ` [ruby-core:96163] " v.ondruch
2020-01-08 15:35 ` [ruby-core:96713] " v.ondruch
2020-01-08 22:06 ` [ruby-core:96717] " mame

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).