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
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 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.
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.
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