Граф коммитов

60638 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 4adb2d655d
Make RbConfig::CONFIG values mutable [Bug #16738]
As `RbConfig.expand` modifies the argument and involved `CONFIG`
values, its values should be mutable.
2020-03-25 22:09:28 +09:00
Hiroshi SHIBATA 48a5c155fa
Import racc-1.5.0 from upstream repository. 2020-03-25 21:39:03 +09:00
git edffe78a79 * 2020-03-25 [ci skip] 2020-03-25 01:45:46 +09:00
Nobuyoshi Nakada c7d668801b
Fixed crash when argument array is modified 2020-03-25 01:23:03 +09:00
Yusuke Endoh 1b3339528c Skip a test that attempts to remove the current directory on Solaris 2020-03-24 17:43:33 +09:00
Yusuke Endoh 12a3671a9b test/rubygems: Try not only /usr/bin/env but also /bin/env
RubyGems chooses available one from the two: /usr/bin/env or /bin/env

20b0d60948/lib/rubygems/installer.rb (L38)

So, it is good not to hard-code /usr/bin/env in tests.

This is a retry of 65201c054a which was
accidentally deleted by 96064e6f1c
2020-03-24 17:21:55 +09:00
David Rodríguez 96064e6f1c
Sync rubygems with current master (#2889) 2020-03-24 15:39:24 +09:00
Kazuhiro NISHIYAMA 930b012ad9
Add rexml to fix rss of test-bundled-gems (#2976) 2020-03-24 15:36:53 +09:00
Nobuyoshi Nakada f6b6a7ad34
Show failed times 2020-03-24 14:56:03 +09:00
Takashi Kokubun eff0c5bf2a
Try to avoid random failures on clock_getres_spec.rb
This spec fails too often
https://github.com/ruby/ruby/runs/529546249
https://github.com/ruby/ruby/runs/524933256
2020-03-23 22:53:54 -07:00
Takashi Kokubun 5c4847f191
Use miniruby to run tool/mjit_tabs.rb
hoping to fix https://github.com/ruby/actions/runs/527422022
2020-03-23 22:44:57 -07:00
Takashi Kokubun 5b3157a511
Make file names and variable names consistent 2020-03-23 22:33:01 -07:00
Nobuyoshi Nakada 6ab3664635
Moved MJIT_WITHOUT_TABS default to configure.ac
And then the environment variable.
2020-03-24 13:46:00 +09:00
git 448c76be63 * 2020-03-24 [ci skip] 2020-03-24 10:56:10 +09:00
Yusuke Endoh c565dfb09a test/json/test_helper.rb: Do not add a relative path to $LOAD_PATH
... because it conflicts with test/ruby/test_m17n.rb.

An exception `incompatible character encodings: UTF-8 and UTF-16BE`
occurs when:

* a non-existence relative path is added to $LOAD_PATH,
* ASCII-incompatible encoding is set to default_external, and
* some file is loaded.

```
$LOAD_PATH << "no_existing_dir"
Encoding.default_external = Encoding::UTF_16BE
load "dummy.rb" #=> incompatible character encodings: UTF-8 and UTF-16BE
```

This issue can be actually observed by a combination of out-of-place
build and the following command:

make test-all TESTS="json ruby/m17n -n test_object_inspect_external"

http://ci.rvm.jp/logfiles/brlog.trunk-test-random.20200322-221411

ASCII-incompatible default external encoding assumes that the cwd is the
encoding, and it is attempted to beconcatenated with a non-existence
relative LOAD_PATH UTF-8 string, which causes the exception.

This changeset avoids a relative path.
2020-03-24 10:45:52 +09:00
Takashi Kokubun 13e9551b97
Change the filename like make variable
for consistency
2020-03-22 23:15:50 -07:00
Takashi Kokubun 3bd7d5617f
Make the first argument slightly more robust 2020-03-22 23:14:32 -07:00
Takashi Kokubun d578f1d3ea
Change the run_without_tabs switching to dedicated
variable of make instead of d059714746 as requested.

You can disable this like `make MJIT_WITHOUT_TABS=false` or
`export MJIT_WITHOUT_TABS=false`.
2020-03-22 23:12:54 -07:00
Takashi Kokubun d059714746
Disable run_without_tabs when there's no -ggdb3
in debugflags, as requested by nobu

I actually wanted to check debugflags directly rather than MJIT_DEBUGFLAGS
because debugflags is always used but MJIT_DEBUGFLAGS may not be always used.
But I couldn't find a better way to check debugflags.
2020-03-22 20:20:27 -07:00
Koichi Sasada 21d8e69248 disable to show the maximum number of threads.
On Deiban 9 environment, the thread tests failed and
this maximum threads information can finish up the machine
resources. To check it, I turned-off showing this information.
2020-03-23 11:32:20 +09:00
Yusuke Endoh 1d996fe72f test/ruby/test_m17n.rb: Update the debugging code to get C stacktrace 2020-03-23 10:55:09 +09:00
Takashi Kokubun c4e3d9e953
Expand tabs of include/ruby/ruby.h in MJIT header
rb_class_of is indented with tabs
2020-03-22 16:37:19 -07:00
Takashi Kokubun 3cf3427c99
Try asserting no static decl rather than warning
This didn't exist in my machine, but it may exist in some CI
environments.
2020-03-22 15:49:55 -07:00
Takashi Kokubun a55f670757
Reduce the number of lines used by transform_mjit_header 2020-03-22 15:46:53 -07:00
Takashi Kokubun dec0f582e4
Workaround an encoding problem in run_without_tabs
It's to be fixed properly later. But this should be able to avoid the failure.

https://travis-ci.org/github/ruby/ruby/jobs/665580361
https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20200322T190003Z.fail.html.gz
2020-03-22 12:19:24 -07:00
Takashi Kokubun 9ebf74fd78
Expand tabs for rb_mjit_header.h (#2975)
This is necessary to avoid converting a hard tab to just 1 space in
preprocessor to generate rb_mjit_header.h, which is helpful when using
gdb or perf report.

See also: [Misc #16112]

This reverts commit 91acdd17c4.
Fixed permission failure on Travis, encoding, and added SKIPPED_FILES.
2020-03-22 11:50:45 -07:00
Yusuke Endoh 1c05682929 test/ruby/test_m17n.rb: Make the debugging code print to stderr
The test is executed with -j8, so printing someting to stdout may break.
2020-03-23 02:13:28 +09:00
git f757330367 * 2020-03-23 [ci skip] 2020-03-23 01:30:41 +09:00
Jeremy Evans adecd43197
Merge pull request #2721 from jeremyevans/method-inspect-chain-alias-11188
Correctly show defined class for aliases of aliases
2020-03-22 09:30:20 -07:00
Jeremy Evans 4f7b435c95 Support obj.clone(freeze: true) for freezing clone
This freezes the clone even if the receiver is not frozen.  It
is only for consistency with freeze: false not freezing the clone
even if the receiver is frozen.

Because Object#clone is now partially implemented in Ruby and
not fully implemented in C, freeze: nil must be supported to
provide the default behavior of only freezing the clone if the
receiver is frozen.

This requires modifying delegate and set, to set freeze: nil
instead of freeze: true as the keyword parameter for
initialize_clone.  Those are the two libraries in stdlib that
override initialize_clone.

Implements [Feature #16175]
2020-03-22 09:30:07 -07:00
Yusuke Endoh 095e9f57af test/ruby/test_m17n.rb: Add a temporal code for debugging
http://ci.rvm.jp/logfiles/brlog.trunk-test-random.20200322-221411
```
I, [2020-03-22T22:15:50.761950 #23076]  INFO -- :   1) Error:
I, [2020-03-22T22:15:50.761963 #23076]  INFO -- : TestM17N#test_object_inspect_external:
I, [2020-03-22T22:15:50.761974 #23076]  INFO -- : Encoding::CompatibilityError: incompatible character encodings: UTF-8 and UTF-16BE
```
2020-03-22 22:34:49 +09:00
Yusuke Endoh 6ab7d439f8 test/ruby/test_fiber.rb (test_many_fibers_with_threads): relax timeout
This test takes 40..50 seconds under Solaris 11, so the timeout (60
seconds) was too strict.  This change increases it to 180 seconds.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20200322T100007Z.fail.html.gz
```
  1) Error:
TestFiber#test_many_fibers_with_threads:
Timeout::Error: execution of assert_normal_exit expired timeout (60 sec)
```
2020-03-22 21:58:18 +09:00
Takashi Kokubun 91acdd17c4
Revert "Expand tabs for rb_mjit_header.h"
This reverts commit 57119dd561.

Temporarily reverting for Travis failures
2020-03-22 00:53:05 -07:00
Takashi Kokubun 57119dd561
Expand tabs for rb_mjit_header.h
I can't live without this when using gdb or perf report.

See also: [Misc #16112]
2020-03-22 00:37:31 -07:00
git 0bed561f6a * 2020-03-22 [ci skip] 2020-03-22 13:09:58 +09:00
Kazuki Tsujimoto 355c27d2b0
Update power_assert to 1.1.7
This update fixes test-bundled-gems failures:
https://github.com/ruby/actions/actions/runs/60272820
https://github.com/ruby/actions/actions/runs/60273425
2020-03-22 13:07:05 +09:00
Yusuke Endoh 5908914ea2 test/net/http/test_http.rb: relax open_timeout limit
The test fails randomly on the CI of OpenCSW SPARC Solaris 10:

https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20200321T091909Z.fail.html.gz
```
  1) Failure:
TestNetHTTP_v1_2_chunked#test_timeout_during_HTTP_session [/export/home/rubyci/unstable10s/tmp/build/20200321T091909Z/ruby/test/net/http/test_http.rb:575]:
[Net::ReadTimeout] exception expected, not #<Net::OpenTimeout: execution expired>.
```

The environment uses RUBY_TEST_SUBPROCESS_TIMEOUT_SCALE=20, so the open
timeout 0.1 sec. means 2.0 sec. for the environment, but it seems too
strict because the environment is painfully slow.
2020-03-21 23:09:17 +09:00
Nobuyoshi Nakada 5b287481be
Removed non-RUBY_INTEGER_UNIFICATION code 2020-03-21 16:59:55 +09:00
Nobuyoshi Nakada 6f0446785b
Leave power cache table initialized as Qfalse 2020-03-21 16:42:19 +09:00
Nobuyoshi Nakada 318be1cb2f
Show libffi version only if set 2020-03-21 16:38:29 +09:00
taki b2041c8b70 [ci skip]Fix return type on RbConfig.fire_update! 2020-03-21 16:38:04 +09:00
Yusuke Endoh be76e86e69 test/openssl/test_ssl.rb: ignore SSLError when the connection is closed
"test_close_after_socket_close" checks if ssl.close is no-op even after
the wrapped socket is closed.  The test itself is fair, but the other
endpoint that is reading the SSL connection may fail with SSLError:
"SSL_read: unexpected eof while reading" in some environments:

https://github.com/ruby/ruby/actions/runs/60085389 (MinGW)
https://rubyci.org/logs/rubyci.s3.amazonaws.com/android28-x86_64/ruby-master/log/20200321T034442Z.fail.html.gz
```
  1) Failure:
OpenSSL::TestSSL#test_close_after_socket_close [D:/a/ruby/ruby/src/test/openssl/utils.rb:299]:
exceptions on 1 threads:
SSL_read: unexpected eof while reading
```

This changeset rescues and ignores the SSLError in the test.
2020-03-21 15:46:33 +09:00
git 39cefa64d2 * 2020-03-21 [ci skip] 2020-03-21 11:51:57 +09:00
Jun Aruga 86ca640287 Enablie IPv6 on Travis s390s case again.
It seems the issue was fixed by Travis.
See https://travis-ci.community/t/6719/5 .
2020-03-21 11:51:32 +09:00
Kazuhiro NISHIYAMA 7cc7627c2d
Fix typos [ci skip] 2020-03-19 18:11:57 +09:00
Nobuyoshi Nakada b6833ff50d
Get rid of redefinition of `rb_execution_context_t`
Regardless of the order to include "vm_core.h" and "builtin.h".
2020-03-19 13:25:53 +09:00
卜部昌平 eeb178dc1f .travis.yml: allow arm64-linux to fail
Ditto for a833eb29f7
2020-03-19 10:48:32 +09:00
Takashi Kokubun 79b4aca94c
Ignore TestJITDebug in mswin RubyCI for now
It's still pending to be implemented. To be enabled later when it's
implemented.
2020-03-18 18:38:31 -07:00
git 4eeeb1100a * 2020-03-19 [ci skip] 2020-03-19 10:26:39 +09:00
卜部昌平 a833eb29f7 .travis.yml: allow arm32-linux to fail
It seems fragile now, seemingly due to environmental issues.  Lets allow
it to fail for a while.  Reported by Jun Agura <jaruga@redhat.com>
[ruby-core:97540]
2020-03-19 10:20:02 +09:00