summaryrefslogtreecommitdiff
path: root/tool
AgeCommit message (Collapse)Author
2024-09-30-l option of 7z is unknown switch with the `ubuntu-latest`.Hiroshi SHIBATA
https://github.com/ruby/actions/actions/runs/11095032727/job/30823174026#step:3:349
2024-09-10Improve base time of assert_linear_performance (#11369)tomoya ishida
Remove `.ceil` from base time calculation that makes 10x gap. This will make the assertion more strict and also less flaky.
2024-09-10Added explicitly begin-end block for Ruby 2.4.Hiroshi SHIBATA
strscan, ipaddr and some default gems still support Ruby 2.4. After this, I extract this CoreAssertions to their repositories.
2024-09-10Suppress warning for shadowing outer local variableHiroshi SHIBATA
2024-09-10core_assertions.rb: Support old rubiesNobuyoshi Nakada
Some symbol argument might not be accepted by Process.clock_gettime.
2024-09-10core_assertions.rb: Prefer CPU time clocksNobuyoshi Nakada
To prevent influence from other processes.
2024-09-10core_assertions.rb: Extract common code blockNobuyoshi Nakada
2024-09-10core_assertions.rb: Tweak timeout limitNobuyoshi Nakada
Increase the timeout limit when variance at rehearsal is small.
2024-09-10Skip assert_linear_performance for RJITTakashi Kokubun
2024-08-07Adjust indentHiroshi SHIBATA
2024-08-07Try to find gemspec from `.bundle/specificationsHiroshi SHIBATA
2024-08-07Try to load original gemspec from `.bundle/gems/foo-x.y.z/foo.gemspec`.Hiroshi SHIBATA
`.bundle/specification/foo-x.y.z.gemspec` may be changed our toolchain
2024-08-07Use gemspec that keeps original dependenciesHiroshi SHIBATA
2024-08-07Make installation messages verbose a little [ci skip]Nobuyoshi Nakada
2024-08-07Revert "Backport https://github.com/ruby/ruby/pull/7321"Hiroshi SHIBATA
This reverts commit 76c61c9993e59af0b4c400b44f169f4af99c3efa.
2024-06-19merge revision(s) ↵nagachika
9f708d48f6df37ee9600db9d51b57a156609a13b,0301473fb523c71d8cdc4966971f31f502001185,7f0e26b7f99bf76408569892ce20318501f74729: [Backport #20516] Clear runtime dependencies if default gems is specified. The current build system uses runtime dependencies from only `.bundle` directory. We shouldn't install runtime dependencies from rubygems.org when `make test-bundled-gems` is invoked. Fixed dependencies list format Re-use strscan with ruby repo
2024-06-19Allow test-unit-ruby-core files to be loaded from bundled gemsNobuyoshi Nakada
Separate the directly from the customized test-unit, since it may not work with bundled gems.
2024-05-30Sync merger.rb and redmine-backporter.rbHiroshi SHIBATA
2024-05-23merge revision(s) 48644e71096c70132be9dfdcbfb414ec2e68d18b:Hiroshi SHIBATA
tool/runruby.rb: remove LD_PRELOAD-like env-var options from runruby.rb LD_PRELOAD sometimes forces loading libraries into unrelated executables. For example, macOS on recent Apple Silicon can execute arm64 and arm64e binaries by default, and /usr/bin/clang is built as arm64e. If Ruby is built as arm64, and mkmf launched through runruby.rb spawns /usr/bin/clang, dynamic loader tries to load libruby (arm64e) into clang (arm64). This force-load causes library load failure. In theory, we don't need both LD_PRELOAD and LD_LIBRARY_PATH at the same time, because executables requiring libruby already have libruby dependency, so LD_LIBRARY_PATH is enough for this case. --- tool/runruby.rb | 9 --------- 1 file changed, 9 deletions(-)
2023-11-14Lock gem versions for C ext dependencies (#8918)Hiroshi SHIBATA
* Lock rubocop and standard versions for json dependencies https://github.com/ruby/actions/actions/runs/6854220854/job/18636881910 current directory: /home/runner/work/actions/actions/snapshot-ruby_3_1/tmp/7/gems/rubocop/ruby/3.1.0/gems/json-2.6.1/ext/json/ext/generator /usr/local/bin/ruby -I /home/runner/work/actions/actions/snapshot-ruby_3_1/lib extconf.rb extconf failed No such file or directory - /usr/local/bin/ruby * Lock parser version to remove racc dependency
2023-11-10Use bundler-2.3.27 for Ruby 3.1 (#8895)Hiroshi SHIBATA
Use bundler-2.3.27
2023-11-10Merge RubyGems-3.3.27 and Bundler-2.3.27 (#8889)Hiroshi SHIBATA
2023-06-15Fix test-bundled-gems for Ruby 3.1 (#7935)Hiroshi SHIBATA
* pry is not needed for test-bundled-gems * Run test-unit test without rake task to avoid yard dependency * Try to skip Prime_test.rb
2023-03-29Added assert_linear_performance for URI testsHiroshi SHIBATA
2023-03-25merge revision(s) f229b36087f1b387d77af8f3fa50f9bffd2fd44e: [Backport #18989]nagachika
Fix test fail with assert_ractor outside of ruby/ruby repo Revert 806583c093ecc2d67830f0a8f0d94decf0ed71e5 --- tool/lib/core_assertions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2023-03-21merge revision(s) 3a7367ccc319499127ead147e5a08f769e44208e: [Backport #19403]nagachika
mkconfig: Map `includedir` only for system ruby Only when installing to the system path on macOS, prepend '$(SDKROOT)' and remap `includedir`. Fix https://github.com/rbenv/ruby-build/discussions/2123 --- test/mkmf/test_config.rb | 4 ++-- test/test_rbconfig.rb | 9 --------- tool/mkconfig.rb | 4 +++- 3 files changed, 5 insertions(+), 12 deletions(-)
2023-02-23Backport https://github.com/ruby/ruby/pull/7321Hiroshi SHIBATA
2022-11-23disable remote tests in debug.gem on macOS.nagachika
2022-11-22Merge RubyGems-3.3.26 and Bundler-2.3.26Hiroshi SHIBATA
2022-11-22Merge RubyGems-3.3.25 and Bundler-2.3.25Hiroshi SHIBATA
2022-11-22Merge RubyGems-3.3.24 and Bundler-2.3.24Hiroshi SHIBATA
2022-10-24merge revision(s) c506ddac6c88b14daf4a18bddf1c1e57be8d2225:nagachika
Added assert_true and assert_false same as test-unit gem --- tool/lib/test/unit/assertions.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
2022-10-21merge revision(s) 44a0a66559ee4a03a84c27feca05e9b1b0f59df8:nagachika
Move to tool/lib/bundled_gem.rb --- common.mk | 6 +++--- defs/gmake.mk | 4 ++-- tool/gem-unpack.rb | 53 ----------------------------------------------- tool/lib/bundled_gem.rb | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 58 deletions(-) delete mode 100644 tool/gem-unpack.rb create mode 100644 tool/lib/bundled_gem.rb
2022-10-21merge revision(s) 9de11fe796e8caca2d87650278028eb95c1e09a0:nagachika
Quiet if the target is already linked the same source --- ext/extmk.rb | 2 +- tool/ln_sr.rb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-)
2022-10-21merge revision(s) 59eadf3d25b0f53e7570f98f1801737af642f328:nagachika
Ignore EACCES on Windows --- tool/ln_sr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-21merge revision(s) 6c1d7dab52b9bd26cbb624634b4acb86ba37aa7f:nagachika
Fix conversion from absolute path to relative path --- tool/ln_sr.rb | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-)
2022-10-21merge revision(s) c093e7d64545640c8f2e7bb3eb24e3f9e24fb1c5:nagachika
Avoid to symlink under symlink --- ext/extmk.rb | 2 +- tool/ln_sr.rb | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-)
2022-10-21merge revision(s) 78d2be69b500e4552e0e75fdefd26606a0506009:nagachika
Move copying/linking extra files to Makefile so removed by `clean` --- ext/extmk.rb | 81 ++++++++++++++++++++++++----------------- tool/ln_sr.rb | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 161 insertions(+), 33 deletions(-) create mode 100755 tool/ln_sr.rb
2022-10-21merge revision(s) b291c972fa36e05107d13eea25cc445db4b4bec3:nagachika
Use built bundled gems in test-bundled-gems --- tool/test-bundled-gems.rb | 49 ++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 24 deletions(-)
2022-10-21merge revision(s) e0a7e5e13141a06103673b9d4ff21ca864ec38f9:nagachika
Kill bundled gem tests when interrupted --- common.mk | 2 +- tool/test-bundled-gems.rb | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-)
2022-10-20merge revision(s) 6a8f1a9e5cd1c9c2b3c6925d8d3fa76a29dabf73:nagachika
Copy from bundled gem source for test --- common.mk | 13 +++++++---- defs/gmake.mk | 4 ++++ tool/gem-unpack.rb | 63 +++++++++++++++++++++++++++++++++++------------------- 3 files changed, 54 insertions(+), 26 deletions(-)
2022-10-18merge revision(s) 85a483169f8381bec08ff2c9a9fc66167fc8a84a:nagachika
Use cross compiling settings as fake.rb for snapshots --- tool/make-snapshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-18merge revision(s) 2767cb282531be10c6393d3d7c48fcdd2935ca4d:nagachika
Now fake.rb is needed to prepare sources --- tool/make-snapshot | 1 + 1 file changed, 1 insertion(+)
2022-10-18merge revision(s) 762fca9b12b9cfb0159404c95ee4275100169c17:nagachika
Prefer `File` class methods to write a string --- tool/make-snapshot | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-)
2022-10-16merge revision(s) 464f73a5f0c1042bfefdd367b330cbdcafffca95:nagachika
Do not load library files from repository only for test What we want to test should be the bundled and to be installed files, but not the upstream. --- tool/test-bundled-gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-16merge revision(s) 64cff780051adf95a0f1799baddec98ae23e8add:nagachika
`Gem.unpack` extracts gems so able to execute Creates simple bin stubs to load the extracted executable files. After only extracted under `gems` directory, the gems are considered installed but the executable scripts are not found. Also the second argument is now the parent of the previous second and third arguments. --- common.mk | 6 ++---- defs/gmake.mk | 3 +-- tool/gem-unpack.rb | 30 +++++++++++++++++++----------- 3 files changed, 22 insertions(+), 17 deletions(-)
2022-10-16merge revision(s) d20886dd225e07fe14347398c2c0913f3e11d22a:nagachika
Create build-only gemspec files only if having an extension --- tool/gem-unpack.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
2022-10-15merge revision(s) 9d900620cafc379f527ee04a338f3a7f5daf6962:nagachika
Set `GEM_PATH` environment variable in runruby.rb --- tool/runruby.rb | 6 ++++++ 1 file changed, 6 insertions(+)
2022-10-15merge revision(s) 416cba90c1610f54dafd91234de9ec74d73ae22c:nagachika
Try to install also gemspec files under gem directories Gemspec files having extension libraries are placed under each gem directories now. --- tool/rbinstall.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
2022-10-15merge revision(s) 2d1032075a4654b8b54dde96424f299f7f29f9d6:nagachika
Stop `build_extensions` when DESTDIR set Try to fix `make install without root privilege` failures on snapshot CIs. example: https://github.com/ruby/actions/actions/runs/2315349280 --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)