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

1765 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 1ad4be13cb
make-snapshot: deprecated -exported option [Bug #16167] 2019-09-15 02:07:00 +09:00
Nobuyoshi Nakada e9c7fc7ca9
Continue to export even if no notes/commits
Just exporting may not imply exporting ChangeLog which needs
notes/commits.  [Bug #16167]
2019-09-14 23:50:45 +09:00
Nobuyoshi Nakada 3ef76ce44a
make-snapshot: -git option is no longer provided [ci skip] 2019-09-08 21:22:37 +09:00
Nobuyoshi Nakada 2d017d6126
make-snapshot: default to the toplevel directory
As this tool has been intended to use in a working directory,
assume that the toplevel directory is under the VCS, and SVN will
no longer be canonical.
2019-09-08 00:48:18 +09:00
Nobuyoshi Nakada f3bae2c6cf
Touch copied cache files to make tarballs stable 2019-09-08 00:22:25 +09:00
Nobuyoshi Nakada 5a6954ba74
Suppress detached head warning 2019-09-08 00:22:24 +09:00
Nobuyoshi Nakada 5511213487
Exit gently if no VCS found but --suppress_not_found is given 2019-09-07 17:26:28 +09:00
Nobuyoshi Nakada 5b5c9b6101
Removed no longer used variable 2019-09-07 17:26:28 +09:00
Nobuyoshi Nakada 8b290448e3
Assign to vcs in new_vcs block not to use rescue result 2019-09-07 11:56:23 +09:00
Nobuyoshi Nakada 59e29389a8
Fixed wrong method at 71f7b0421a 2019-09-07 11:47:45 +09:00
Nobuyoshi Nakada 3fafc549ba
Fix error when checking file modified with git-svn 2019-09-07 11:38:39 +09:00
Nobuyoshi Nakada d783609ac3
Get rid of overwriting revision.h and creating .revision.time 2019-09-07 11:38:39 +09:00
Nobuyoshi Nakada 5118aa2d58
Use `git describe --contains` for tags 2019-09-07 11:38:38 +09:00
Nobuyoshi Nakada 3890c9eeee
Added more debug outputs from VCS::GIT 2019-09-07 11:38:38 +09:00
Nobuyoshi Nakada 71f7b0421a
Refined file2lastrev.rb options
* check --srcdir if given twice or more
* falls back to the current working directory if no --srcdir
  option is given.
* define common VCS options.
2019-09-07 11:38:38 +09:00
Nobuyoshi Nakada 799de9122e
Separated VCS.define_options for common VCS options 2019-09-07 11:38:38 +09:00
Nobuyoshi Nakada 055b441093
VCS::GIT no longer accepts remote repository 2019-09-06 22:15:36 +09:00
卜部昌平 a569bc09e2 add include/ruby/backward/cxxanyargs.hpp
Compilation of extension libraries written in C++ are reportedly
broken due to https://github.com/ruby/ruby/pull/2404

The root cause of this issue was that the definition of ANYARGS
differ between C and C++, and that of C++ is incompatible with the
updated ones.

We are using the incompatibility against itself.  In C++ two distinct
function prototypes can be overloaded.  We provide the old, ANYARGSed
prototypes in addition to the current granular ones; and let the
older ones warn about types.
2019-09-06 15:50:58 +09:00
Yusuke Endoh 41b7c335d3 Revert "Add a temporal stack dumper for debugging on trunk-mjit"
This reverts commit 433c9c00d9.

Successfully captured some traces, and
3b60e5e6bc seems to fix the issue.
2019-09-06 13:04:36 +09:00
Yusuke Endoh 433c9c00d9 Add a temporal stack dumper for debugging on trunk-mjit
This must be definitely removed after we collect the stack traces :-)
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2245710
2019-09-05 22:16:21 +09:00
Nobuyoshi Nakada 8a608f1b1f
Removed -git option of make-snapshot
Git is not for direct access to a remote repository.
Most of its operations need a local clone.
2019-09-05 14:39:53 +09:00
Nobuyoshi Nakada 9f59d30daa
Separate VCS::DEBUG_OUT 2019-09-05 00:33:49 +09:00
Kazuhiro NISHIYAMA 967ef0d4f6
Use `git pull` instead of `git fetch` if master branch 2019-09-04 12:46:26 +09:00
Takashi Kokubun c14b67b2a8
Check frozen flag on MJIT setinstancevariable
It does not seem to have a significant performance impact, hopefully?

```
$ benchmark-driver -v benchmark.yml --rbenv 'before --jit;after --jit' --repeat-count=24 --output=all
before --jit: ruby 2.7.0dev (2019-09-03T21:02:24Z master 77596fb7a9) +JIT [x86_64-linux]
after --jit: ruby 2.7.0dev (2019-09-04T01:54:44Z master 7363e22d79) +JIT [x86_64-linux]
Calculating -------------------------------------
                                 before --jit           after --jit
Optcarrot Lan_Master.nes    48.44054595799523     71.67010255902900 fps
                            71.32797692837639     71.97846863769546
                            72.51921961607691     78.87360980544105
                            73.54082925611047     79.80408132389941
                            74.03503843709451     79.85739528572826
                            74.04863857926493     79.89850834901381
                            75.30266276129467     80.34607233076015
                            75.69063990896244     80.88474397425360
                            75.70458132587405     81.09234267781642
                            77.39842764662852     82.13766823612643
                            77.76922944068329     82.20398304840373
                            81.17984044023393     82.26722630628272
                            82.85235776076533     82.71375902781254
                            83.04906099135320     82.75893420702198
                            83.10214168136230     82.79668965325972
                            83.71456007558125     82.85131667916379
                            84.06658306760725     82.95676565411722
                            84.25690684305728     83.19972846225775
                            84.27938663923503     83.28510503845854
                            84.45467716218090     83.41003730434703
                            84.51563186125925     83.67773614721280
                            84.56139892968321     84.02082201151110
                            84.69819452180658     84.10495346787033
                            84.78125989622576     84.47867803506055
```

Note for backporter:
test_jit's `success_count` would be 1 in Ruby 2.6, since 2.7 introduced
"MJIT recompile" on JIT-ed code cancel.

[Bug #16139]
2019-09-04 11:10:21 +09:00
Takashi Kokubun 1a9cc3b27c Avoid defining unused instructions 2019-09-03 14:22:44 +09:00
Nobuyoshi Nakada e6c4ea22d6
Touch tar file itself to make gz file hash stable 2019-09-03 12:28:00 +09:00
Nobuyoshi Nakada b0a7221dcf
Touch the toplevel directory too 2019-09-03 11:58:02 +09:00
Nobuyoshi Nakada 542a1ade80
--date=iso-local does not work with old git 2019-09-03 11:33:29 +09:00
Nobuyoshi Nakada 703f0cd3d0
Do not keep tar file by the default 2019-09-03 11:30:40 +09:00
Nobuyoshi Nakada c181ecc161
Align timestamps to make tarball stable 2019-09-03 11:14:07 +09:00
Nobuyoshi Nakada d83ade1db5
Use -z option for git-log 2019-09-03 00:33:02 +09:00
Nobuyoshi Nakada 6a9c5ef186
Extract git commit log as raw format like git-svn for ChangeLog 2019-09-02 23:28:21 +09:00
Nobuyoshi Nakada 1f636e74e6
Set mtime of checked out files to past time
instead of waiting 2 seconds, if possible.
2019-09-02 12:16:21 +09:00
Nobuyoshi Nakada f82cf05626
Fixed the directory to be removed 2019-09-02 00:42:23 +09:00
Nobuyoshi Nakada bd785ca077
Restore pwd for each version 2019-09-01 23:24:05 +09:00
Nobuyoshi Nakada fd4aad6d41
Support packaging different branch/tag 2019-09-01 23:22:50 +09:00
Nobuyoshi Nakada d8260bc872
Fetch commit notes 2019-09-01 23:22:49 +09:00
Nobuyoshi Nakada b578c63f83
Resolve symlinks to cache directory under gems 2019-09-01 23:22:49 +09:00
Nobuyoshi Nakada ff7c95dfd9
Support git tags 2019-09-01 23:22:49 +09:00
Nobuyoshi Nakada d7aa1260b6
Remove files/directories for git/github which are committed [ci skip] 2019-08-31 14:45:57 +09:00
Yusuke Endoh 8cb9efbbe6 tool/rbinstall.rb: remove a keyword-argument warning 2019-08-31 07:17:46 +09:00
Nobuyoshi Nakada 96b32aad93
Exclude ripper y.output from packages [ci skip] 2019-08-30 11:26:48 +09:00
Nobuyoshi Nakada 98ccdd744a
Export the last modified revision for tags [ci skip] 2019-08-30 11:23:21 +09:00
Nobuyoshi Nakada e593d5b31a
Suppress uninitialized instance variable warnings [ci skip] 2019-08-30 11:23:21 +09:00
Nobuyoshi Nakada 55f496c89b
Support revision in git-svn log 2019-08-30 11:23:21 +09:00
Nobuyoshi Nakada 1191049436
Updated comment of VCS#get_revisions [ci skip] 2019-08-30 11:23:21 +09:00
Kazuhiro NISHIYAMA a8b310e14c
7z does not accept gzip's options
e.g. `GZIP=-9`
2019-08-30 00:35:37 +09:00
aycabta 2c1e902cba Don't pick up lib/readline.rb from ruby/reline 2019-08-29 21:49:19 +09:00
Nobuyoshi Nakada c1d0b6adfc
Revert "Treat RUBY_REVISION as an integer on old rubies"
This reverts commit 6454808c52.

It is no longer needed, as `VCS::SVN#get_revisions` now returns
`Integer` as revision numbers, and `short_revision` should deal
with it.
2019-08-28 16:51:49 +09:00
NAKAMURA Usaku 2b55df7315
`revision` might be an Integer 2019-08-28 15:57:30 +09:00
nagachika ed8d2e1cfd tool/merger.rb: fix tag existence check with subversion. 2019-08-28 14:50:21 +09:00
Nobuyoshi Nakada c9dc569a94
Ensure the last and changed revisions as Integers 2019-08-28 12:32:43 +09:00
NAKAMURA Usaku 6454808c52
Treat RUBY_REVISION as an integer on old rubies 2019-08-28 00:19:25 +09:00
Nobuyoshi Nakada 2cd68a38d9
Short revision of SVN should be an Integer 2019-08-27 23:43:41 +09:00
aycabta 978ff1ff3a Pick lib/readline.rb from ruby/reline 2019-08-27 05:24:13 +09:00
Nobuyoshi Nakada 48f1a38f23
Limit ChangeLog entries
Since the previous release date, when the starting message is not
found.
2019-08-26 18:27:17 +09:00
Nobuyoshi Nakada c775ab5e28
`local_path?` is a class method [ci skip] 2019-08-25 18:27:57 +09:00
Yusuke Endoh cc6fe15241 tool/lib/vcs.rb: explicitly fail when notes/commits is not available 2019-08-25 16:59:45 +09:00
Kazuhiro NISHIYAMA 1b03d2d76b
Revert workaround 2019-08-25 13:58:30 +09:00
Nobuyoshi Nakada b341e98b04
Simplified f13a00f5b4 [ci skip] 2019-08-25 11:38:15 +09:00
Nobuyoshi Nakada f13a00f5b4
Export all commits as ChangeLog when no starting commit is found [ci skip] 2019-08-25 11:24:53 +09:00
Kazuhiro NISHIYAMA 03ee12a3b8
Add workaround (2nd try)
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190824T153002Z.fail.html.gz
```
/home/gentoo/chkbuild/tmp/build/20190824T153002Z/ruby/tool/lib/vcs.rb:577:in `export_changelog': cannot find the beginning revision of the branch (RuntimeError)
    from ./tool/make-snapshot:353:in `block in package'
    from ./tool/make-snapshot:351:in `chdir'
    from ./tool/make-snapshot:351:in `package'
    from ./tool/make-snapshot:523:in `block in <main>'
    from ./tool/make-snapshot:523:in `collect'
    from ./tool/make-snapshot:523:in `<main>'
```
2019-08-25 00:50:34 +09:00
Kazuhiro NISHIYAMA df348310dc
Add workaround for some CIs
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-master/log/20190824T093005Z.fail.html.gz
```
branches:
* trunk
  remotes/origin/trunk
```
and
```
fatal: Remote branch master not found in upstream origin
```
2019-08-24 23:17:12 +09:00
Kazuhiro NISHIYAMA 97ad7862d5
Add debug print
matser branch not found on some CIs
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190824T063005Z.fail.html.gz
```
fatal: Remote branch master not found in upstream origin
```
2019-08-24 16:22:37 +09:00
Kazuhiro NISHIYAMA fe83ed47e7
Try to fix `make dist` error on chkbuild
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190823T213004Z.fail.html.gz
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-master/log/20190824T003006Z.fail.html.gz
2019-08-24 10:20:44 +09:00
David Rodríguez 3b55394b07 Ensure all default gems have an gem folder
Even if they don't ship with any executables. This makes rbinstall
behaviour consistent with rubygems `gem install --default` command.
2019-08-23 18:20:46 +10:00
Nobuyoshi Nakada af12172035
Removed unused literal assignments [ci skip] 2019-08-20 19:29:43 +09:00
Nobuyoshi Nakada 7a07c54bef
Subjects may contain a comma [ci skip] 2019-08-20 19:29:35 +09:00
David Rodríguez 5a384e2c08 Fix some bundler specs (#2380)
* These seem to consistenly pass already

* Show actual command when running `make test-bundler`

Current the setup command that installs the necessary gems for testing
bundler was printed, but not the actual command that runs the tests.
That was a bit confusing.

* Borrow trick from setproctitle specs

* A title that long doesn't get set sometimes

No idea why, but the test doesn't need that the title is that long.

* Fix most gem helper spec ruby-core failures

* Fix the rest of the gem helper failures

* Fix version spec by improving the assertion

* Remove unnecessary `BUNDLE_RUBY` environment var

We can use `RUBY` when necessary, and `BUNDLE_RUBY` is not a good name
because bundler considers `BUNDLE_*` variables as settings.

* Rename `BUNDLE_GEM` to `GEM_COMMAND`

This is more descriptive I think, and also friendlier for bundler
because `BUNDLE_` env variables are interpreted by bundler as settings,
and this is not a bundler setting.

This fixes one bundler spec failure in config specs against ruby-core.

* Fix quality spec when run in core

Use the proper path helper.

* Fix dummy lib builder to never load default gems

If a dummy library is named as a default gem, when requiring the library
from its executable, the default gem would be loaded when running from
core, because in core all default gems share path with bundler, and thus
they are always in the $LOAD_PATH. We fix the issue by loading lib
relatively inside dummy lib executables.

* More exact assertions

Sometimes I have the problem that I do some "print debugging" inside
specs, and suddently the spec passes. This happens when the assertion is
too relaxed, and the things I print make it match, specially when they
are simple strings like "1.0" than can be easily be part of gem paths
that I print for debugging.

I fix this by making a more exact assertion.

* Detect the correct shebang when ENV["RUBY"] is set

* Relax assertion

So that the spec passes even if another paths containing "ext" are in
the load path. This works to fix a ruby-core issue, but it's a better
assertion in general. We just want to know that the extension path was
added.

* Use folder structure independent path helper

It should fix this spec for ruby-core.

* Fix the last failing spec on ruby-core

* Skip `bundle open <default_gem>` spec when no default gems
2019-08-20 09:46:31 +09:00
NAKAMURA Usaku 4515bcc922
Omit version.h when merging 2019-08-19 15:37:28 +09:00
Hiroshi SHIBATA 51edcbad5b
Use master branch instead of trunk. 2019-08-18 18:08:59 +09:00
Hiroshi SHIBATA 9132153930
Ignore tags on default gems from ruby core repository. 2019-08-18 18:08:59 +09:00
Hiroshi SHIBATA 3ecb5125c6
Gem::ConfigMap is deprecated now 2019-08-18 13:25:31 +09:00
aycabta 0bbbe82986 Fix copy path of ruby/reline's test 2019-08-18 07:52:49 +09:00
SHIBATA Hiroshi 216d230080
Move some assertions to CoreAssertions. (#2354)
They are used by default gems like forwardable.

    * assert_raise_with_message
    * assert_warning
    * assert_warn
2019-08-14 07:44:26 +09:00
Nobuyoshi Nakada 75d9fa8b07
Detect VCS from the current directory by default [ci skip] 2019-08-13 12:24:55 +09:00
Nobuyoshi Nakada 0d1af9f942
Push commits notes too [ci skip] 2019-08-13 12:24:40 +09:00
Nobuyoshi Nakada 066a3498c6
Include commits notes in ChangeLog 2019-08-12 19:02:55 +09:00
Takashi Kokubun b1ef14176b
We did not have tool/ before checkout
anyway we don't need authorization here.
Also retry does not seem to work in the original version, so let's
extend this with retries as a separate github action later.
2019-08-12 14:37:26 +09:00
Takashi Kokubun 4f10a61eaa
Stop relying on actions/checkout
because it randomly fails on authorization like:
https://github.com/ruby/ruby/runs/190887455
Also the backoff seems too short. Maybe we need tool/travis_retry.sh for
this too.

Cloning ruby/ruby does not need authorization. We don't need to use
actions/checkout.
2019-08-12 14:30:43 +09:00
Kazuhiro NISHIYAMA f731cc0984
Use `end_with?` instead of Regexp with missing escape 2019-08-11 10:15:05 +09:00
Koichi Sasada 3cbd56d574 complement `test_` prefix.
`make test-all TESTS=name` can specify running test files by name.
name can be dirname ('dir/') or a file ('.../test_foo.rb'). This
patch complement `test_` prefix for a test. So we only need to
specify `TESTS=ruby/hash` which means `TESTS=ruby/test_hash.rb`.
2019-08-09 16:08:15 +09:00
Hiroshi SHIBATA b39efb163d
Aliases capture_output to capture_io for test-unit compatiblity. 2019-08-08 17:19:23 +09:00
Hiroshi SHIBATA f5481e35ab
Added separator for failing commits from default gems. 2019-08-07 22:30:10 +09:00
Hiroshi SHIBATA 67cde179c5
Skip merge commit created by bundlerbot. 2019-08-07 22:29:02 +09:00
Takashi Kokubun 330e3f19c3
Refactor .travis.yml by introducing travis_retry.sh
Not using official travis_retry.bash, because it's not supporting to
modify backoff seconds.
0ad8f1886b/lib/travis/build/bash/travis_retry.bash

Not using official `travis_apt_get_update` function because it does not
propagate exit status to be used by retries.
0ad8f1886b/lib/travis/build/bash/travis_apt_get_update.bash

Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
2019-08-07 21:47:03 +09:00
Nobuyoshi Nakada 29092d35d3
Moved FailDesc to EnvUtil.failure_description
So EnvUtil does not depends on test/unit.
2019-08-05 10:48:49 +09:00
Marcus Stollsteimer 7614cc5b24
Fix release post output for tool/format-release
Different entries should be separated by an empty line.

Closes: https://github.com/ruby/ruby/pull/2137
2019-08-04 08:58:20 +09:00
Hiroshi SHIBATA d569d721f9
Move assert_ruby_status and assert_throw to CoreAssertions for default gems. 2019-08-03 22:17:45 +09:00
Nobuyoshi Nakada 6623cde731
Added more attributes [ci skip] 2019-08-03 14:56:07 +09:00
Nobuyoshi Nakada 4d75346187
Refine error message
Highlight failed command and suggest installing the command.
[Bug #16042]
2019-08-03 14:20:36 +09:00
Hiroshi SHIBATA eb638b75b3
It can be share to use CoreAssertions for default gems.
ref. https://github.com/ruby/logger/pull/35
2019-08-02 21:09:43 +09:00
Koichi Sasada cac44def0b backtrace can be nil.
Surprisingly, on SystemStackError#backtrace can return nil.
2019-07-31 15:14:50 +09:00
Koichi Sasada efac0a2384 Revert "add debug code"
This reverts commit e83ec207cd.
2019-07-31 15:14:50 +09:00
Koichi Sasada e83ec207cd add debug code 2019-07-31 12:46:34 +09:00
Nobuyoshi Nakada 47144f91a1
Separate VCS::GIT#upstream 2019-07-30 16:44:29 +09:00
nagachika 73530a9619 tool/merger.rb: execute 'svn update' after 'svn ci' to update revision info on working copy. 2019-07-27 20:15:53 +09:00
Hiroshi SHIBATA 58bb7f0ca1
Skip the some of commits when sync default gems from upstream.
* Skip failed to sync commits because it needs to pick manually.
  * Skip empty commit.
2019-07-27 15:47:32 +08:00
Hiroshi SHIBATA 012d39c4e6
Added ignore files to sync_default_gems_with_commits and make constant them. 2019-07-27 15:47:24 +08:00
Hiroshi SHIBATA 95aa60f6cd
Ignore Merge commit and insufficiency commit for ruby core repository. 2019-07-26 17:20:07 +08:00
Hiroshi SHIBATA 071bf88970
Improve the commits list for cherry-picking from default gems.
* Ignore Merge commit from the commit lists before trying to
    pick commit.
  * Show the commits list at first.
2019-07-26 16:06:54 +08:00
Hiroshi SHIBATA 348c9687bf
Escape parentheses for syntax hilighting for VScode. 2019-07-26 15:45:18 +08:00
Hiroshi SHIBATA 51f22deadb
Adjust the test direcotry structure of rdoc. 2019-07-26 15:34:15 +08:00
Nobuyoshi Nakada 7e33f324e1
Get rid of failures about coverage
Run test suites explicitly instead of auto-running, to get rid of
failures when simplecov is not installed but COVERAGE is set.
2019-07-25 20:57:32 +09:00
Nobuyoshi Nakada 8e53d18e67
Separated tool/test/runner.rb and test/runner.rb
As `make test-tool` does not use gems, and no Rubygems stuffs is
needed, so moved such things to test/runner.rb.  Also no longer
nees `--test-target-dir` option.
2019-07-25 16:57:38 +09:00
Nobuyoshi Nakada 46771abfe5
Use libraries in the base directory if given 2019-07-25 16:57:37 +09:00
Nobuyoshi Nakada 4c1db84d17
Added --base-directory option 2019-07-25 16:57:37 +09:00
Nobuyoshi Nakada f5ea054810
Moved NoMemoryError hook
Moved NoMemoryError hook from AutoRunner.run to Runner#run, so
it will work even in non-autorunning mode.
2019-07-25 16:57:37 +09:00
Nobuyoshi Nakada a850be68a5
Moved NoMemoryError hook to Test::Unit::AutoRunner 2019-07-25 08:42:16 +09:00
Nobuyoshi Nakada 82ae462113
Do not fetch remote tags 2019-07-25 08:19:03 +09:00
Nobuyoshi Nakada dc954cbb75
@@project_dir in Gem::TestCase is no longer used 2019-07-24 20:08:40 +09:00
Hiroshi SHIBATA 9f9a6dbc14
Allways fetch the latest commit from default gems repository. 2019-07-22 18:00:37 +09:00
Nobuyoshi Nakada d1c2b19698
Fixed exception message 2019-07-22 13:51:14 +09:00
Nobuyoshi Nakada f6461fa890
Only the first argument can be --test-target-dir option
Raise the proper exception when that option is not given but
non-option argument is.
2019-07-22 13:07:03 +09:00
Yusuke Endoh 24712eeec3 tool/test/runner.rb: support --test-target-dir option
tool/test/runner.rb had been copied from test/runner.rb.
test/runner.rb was for `make test-all`, and tool/test/runner.rb was for
`make test-testframework` and `make test-tool`.
But I want to avoid the code clones.

This change makes tool/test/runner.rb support --test-target-dir option
which allows tool/test/runner.rb to run `make test-all`.
Now we can remove test/runner.rb.
2019-07-21 19:19:08 +09:00
Hiroshi SHIBATA b401fb35a4
Removed needless LOAD_PATH modification.
We can use require_relative now.
2019-07-15 13:44:37 +09:00
Hiroshi SHIBATA badfbdf32c
Move vpath.rb into tool library direcotry. 2019-07-15 13:16:16 +09:00
Hiroshi SHIBATA ac6d137157
Added test-tool target for the test suite of tool/test files. 2019-07-15 11:16:29 +09:00
Hiroshi SHIBATA 41c5f9a166
Put jisx0208.rb to under the library directory. 2019-07-15 11:16:29 +09:00
Hiroshi SHIBATA 08b340d2f6
Separate the assertions of ruby core tests from test/unit/assertions. 2019-07-15 09:40:22 +09:00
Hiroshi SHIBATA e8ddbc0239
Put colorize to library directory.
Same as 66299e7ca83d379d13abaa5411f3e0419334cabb
2019-07-15 09:40:22 +09:00
Hiroshi SHIBATA 0a711b0edf
Put vcs .rb to under the lib direcotory.
Because it's the common library for tool files.
2019-07-15 09:40:22 +09:00
Nobuyoshi Nakada ff3704031a
Insert a newline before `=end`
For a certain editor which cannot handle here-document properly.
2019-07-15 09:28:44 +09:00
Takashi Kokubun e8b6f63039
Drop `make change` and tool/change_maker.rb
because we're not writing ChangeLog anymore.
2019-07-15 06:17:31 +09:00
Hiroshi SHIBATA 8549774430 Tweak upstream information of upstream commit. 2019-07-14 23:07:31 +09:00
Hiroshi SHIBATA a3493521a5 abort sync commit history when it failed to modify commit message. 2019-07-14 21:53:19 +09:00
Hiroshi SHIBATA 8e6a68c18e Use force flag for filter-branch. 2019-07-14 21:53:19 +09:00
Hiroshi SHIBATA c8e1be6f1f Skip merge commit with rubygems and bundler. 2019-07-14 21:53:19 +09:00
Hiroshi SHIBATA 46491af74c Modified commit message with upstream repository name. 2019-07-14 21:53:19 +09:00
Hiroshi SHIBATA 265e94a7fa Added chrry-pick feature from upstream repository. 2019-07-14 21:53:19 +09:00
Hiroshi SHIBATA be082e2800 Try to sync with commit history for default gems. 2019-07-14 21:53:18 +09:00
Takashi Kokubun d30d404bc4
MJIT Support for getblockparamproxy 2019-07-14 18:04:19 +09:00
Koichi Sasada 47e571c951 complement '.rb' on `test-all TESTS=test_xxx`
for test-all rule, we can specify a file with TESTS option like
`TESTS=test_xxx.rb`. However, we can eliminate last '.rb' suffix
so this patch try with '.rb' suffix if the given path is not available.
2019-07-14 17:52:19 +09:00
Hiroshi SHIBATA 4ce935cd5d Removed FileUtils for file manipulations with module inclusion. 2019-07-14 15:24:33 +09:00
Hiroshi SHIBATA a73f452476 Use FileUtils.mkdir_p instead of mkdir command directoly. 2019-07-14 15:24:33 +09:00
Hiroshi SHIBATA e91ff4dbaf Use FileUtils.cp_r instead of cp command directoly. 2019-07-14 15:24:33 +09:00
Hiroshi SHIBATA d25f355c65 Fixup dccb0e1ec94e7b9c13c715939ae7e0ccc4ffb23e 2019-07-14 15:24:33 +09:00
Hiroshi SHIBATA 7d24a7ed7b Use FileUtils.rm_rf instead of rm command directly. 2019-07-14 15:24:33 +09:00
Hiroshi SHIBATA 7504d676c8 Do not use hard-coded file path of default gems upstream. 2019-07-14 15:24:32 +09:00
Takashi Kokubun 34b3ef29b6
Drop obsoleted mjit_cancel_ivar debug_counter
ivar_cancel label is handling mjit_cancel_ivar_inline instead.
2019-07-14 14:09:33 +09:00
Hiroshi SHIBATA 9f275f7971
Restore support library for only test files that are digest and csv. 2019-07-09 21:16:49 +09:00
Hiroshi SHIBATA f9a2440866
Restore support library for only test files. 2019-07-09 21:04:07 +09:00
Hiroshi SHIBATA ad38f02645
Adopt the directory structure of ruby repository for racc extension. 2019-07-08 20:31:40 +09:00
Nobuyoshi Nakada fc4dd7d3e2
Git branch name can contain `#{}` too 2019-07-07 19:05:33 +09:00
Nobuyoshi Nakada 19a4c42d61
Unescape #{} in the last commit title
Get rid of unknown escape sequence warning, as `#` is not a
special character in C.

```
version.c:126:26: warning: unknown escape sequence '\#' [-Wunknown-escape-sequence]
    fputs("last_commit=" RUBY_LAST_COMMIT_TITLE, stdout);
                         ^~~~~~~~~~~~~~~~~~~~~~
revision.h:4:42: note: expanded from macro 'RUBY_LAST_COMMIT_TITLE'
                                         ^~
```
2019-07-07 19:01:48 +09:00
Koichi Sasada 712a66b074 Revert "Avoid corrupting VM stack on inlined setlocal"
This reverts commit ea30dd7025.
because it fails when VM_CHECK_MODE=1.
2019-07-03 03:37:25 +09:00
Takashi Kokubun ea30dd7025
Avoid corrupting VM stack on inlined setlocal
setlocal relies on cfp->ep, and frame-omitted method inlining introduced
in Ruby 2.7 kept it wrong.

This change might slow down frame-omitted method inlining for cfp->ep
manipulation, and it obviously complicates the implementaion more. By
introducing an optimization that changes Ruby's local variable to C
local variable, we could optimize it and simplify the cfp->ep
manipulation later.

[Bug #15971]
2019-07-02 23:35:52 +09:00
Takashi Kokubun 0b858425e1
Use GitHub ruby.git for make-snapshot
Previously @hsbt disabled https git clone from git.ruby-lang.org.

Using git.ruby-lang.org for non-commit purposes is discouraged. GitHub
mirror is actually recommended because it's reliable than single-hosted
git.ruby-lang.org, the mirror is almost always well-maintained, and its
latency is very small (usually about 10s).

So we should just use GitHub here.

[Bug #15969]
2019-07-02 10:40:41 +09:00
Nobuyoshi Nakada 580b7600c7
Substitute autoconf variables by prereq.status 2019-07-02 09:44:37 +09:00
Nobuyoshi Nakada 83fed5a4ed
Adjust minitest file path 2019-07-02 09:37:18 +09:00