Hiroshi SHIBATA
165aeb87fa
-l option of 7z is unknown switch with the ubuntu-latest
.
...
3082317402 (step)
:3:349
2024-09-30 16:01:48 +09:00
tomoya ishida
b33c331184
Improve base time of assert_linear_performance ( #11369 )
...
Remove `.ceil` from base time calculation that makes 10x gap.
This will make the assertion more strict and also less flaky.
2024-09-10 16:00:29 +09:00
Hiroshi SHIBATA
af17a34c88
Added explicitly begin-end block for Ruby 2.4.
...
strscan, ipaddr and some default gems still support Ruby 2.4.
After this, I extract this CoreAssertions to their repositories.
2024-09-10 16:00:29 +09:00
Hiroshi SHIBATA
ebd44ef570
Suppress warning for shadowing outer local variable
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada
bfa4073dc2
core_assertions.rb: Support old rubies
...
Some symbol argument might not be accepted by Process.clock_gettime.
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada
e67ef294fe
core_assertions.rb: Prefer CPU time clocks
...
To prevent influence from other processes.
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada
7bb789bf99
core_assertions.rb: Extract common code block
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada
d86deaf383
core_assertions.rb: Tweak timeout limit
...
Increase the timeout limit when variance at rehearsal is small.
2024-09-10 16:00:29 +09:00
Takashi Kokubun
afbae64f05
Skip assert_linear_performance for RJIT
2024-09-10 16:00:29 +09:00
Hiroshi SHIBATA
e3b4c86a31
Adjust indent
2024-08-07 09:51:48 +08:00
Hiroshi SHIBATA
ca5a69199e
Try to find gemspec from `.bundle/specifications
2024-08-07 09:51:48 +08:00
Hiroshi SHIBATA
0314bc4aad
Try to load original gemspec from .bundle/gems/foo-x.y.z/foo.gemspec
.
...
`.bundle/specification/foo-x.y.z.gemspec` may be changed our toolchain
2024-08-07 09:51:48 +08:00
Hiroshi SHIBATA
8d80dad6bc
Use gemspec that keeps original dependencies
2024-08-07 09:51:48 +08:00
Nobuyoshi Nakada
bc6db54d03
Make installation messages verbose a little [ci skip]
2024-08-07 09:51:48 +08:00
Hiroshi SHIBATA
5b0616b25b
Revert "Backport https://github.com/ruby/ruby/pull/7321 "
...
This reverts commit 76c61c9993
.
2024-08-07 09:51:48 +08:00
nagachika
bbc71e6801
merge revision(s) 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-19 13:34:45 +09:00
Nobuyoshi Nakada
25ac45b76a
Allow test-unit-ruby-core files to be loaded from bundled gems
...
Separate the directly from the customized test-unit, since it may not
work with bundled gems.
2024-06-19 13:34:45 +09:00
Hiroshi SHIBATA
e96ba90fd6
Sync merger.rb and redmine-backporter.rb
2024-05-30 10:34:29 +09:00
Hiroshi SHIBATA
c884de63c8
merge revision(s) 48644e7109
:
...
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(-)
2024-05-23 11:58:26 +09:00
Hiroshi SHIBATA
031d05ccf2
Lock gem versions for C ext dependencies ( #8918 )
...
* Lock rubocop and standard versions for json dependencies
1863688191
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-14 09:27:07 +00:00
Hiroshi SHIBATA
22e1d54f5b
Use bundler-2.3.27 for Ruby 3.1 ( #8895 )
...
Use bundler-2.3.27
2023-11-10 19:42:12 +00:00
Hiroshi SHIBATA
c39b19c5f0
Merge RubyGems-3.3.27 and Bundler-2.3.27 ( #8889 )
2023-11-10 07:56:05 +00:00
Hiroshi SHIBATA
f649177398
Fix test-bundled-gems for Ruby 3.1 ( #7935 )
...
* 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-06-15 17:35:42 +00:00
Hiroshi SHIBATA
66ad6e533e
Added assert_linear_performance for URI tests
2023-03-29 15:27:07 +09:00
nagachika
02bee9d4d4
merge revision(s) f229b36087
: [Backport #18989 ]
...
Fix test fail with assert_ractor outside of ruby/ruby repo
Revert 806583c093
---
tool/lib/core_assertions.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2023-03-25 10:12:02 +09:00
nagachika
485e0e46a5
merge revision(s) 3a7367ccc3
: [Backport #19403 ]
...
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-03-21 15:25:32 +09:00
Hiroshi SHIBATA
76c61c9993
Backport https://github.com/ruby/ruby/pull/7321
2023-02-23 12:45:16 +09:00
nagachika
9ca4b96f9e
disable remote tests in debug.gem on macOS.
2022-11-23 13:32:27 +09:00
Hiroshi SHIBATA
14704023ec
Merge RubyGems-3.3.26 and Bundler-2.3.26
2022-11-22 21:50:22 +09:00
Hiroshi SHIBATA
b102175b4d
Merge RubyGems-3.3.25 and Bundler-2.3.25
2022-11-22 21:50:22 +09:00
Hiroshi SHIBATA
6f59f0bebc
Merge RubyGems-3.3.24 and Bundler-2.3.24
2022-11-22 21:50:22 +09:00
nagachika
7c2b7229b9
merge revision(s) c506ddac6c
:
...
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-24 20:59:05 +09:00
nagachika
e9be76dc69
merge revision(s) 44a0a66559
:
...
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-21 16:23:21 +09:00
nagachika
57d14154a2
merge revision(s) 9de11fe796
:
...
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-21 15:01:57 +09:00
nagachika
022ab25878
merge revision(s) 59eadf3d25
:
...
Ignore EACCES on Windows
---
tool/ln_sr.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-21 15:01:50 +09:00
nagachika
3f3a5ec042
merge revision(s) 6c1d7dab52
:
...
Fix conversion from absolute path to relative path
---
tool/ln_sr.rb | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
2022-10-21 14:56:31 +09:00
nagachika
5822577a9b
merge revision(s) c093e7d645
:
...
Avoid to symlink under symlink
---
ext/extmk.rb | 2 +-
tool/ln_sr.rb | 21 ++++++++++++++-------
2 files changed, 15 insertions(+), 8 deletions(-)
2022-10-21 14:55:30 +09:00
nagachika
d8c232935e
merge revision(s) 78d2be69b5
:
...
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-21 14:54:55 +09:00
nagachika
130ee27382
merge revision(s) b291c972fa
:
...
Use built bundled gems in test-bundled-gems
---
tool/test-bundled-gems.rb | 49 ++++++++++++++++++++++++-----------------------
1 file changed, 25 insertions(+), 24 deletions(-)
2022-10-21 14:17:30 +09:00
nagachika
eb815dfd97
merge revision(s) e0a7e5e131
:
...
Kill bundled gem tests when interrupted
---
common.mk | 2 +-
tool/test-bundled-gems.rb | 12 ++++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
2022-10-21 14:16:19 +09:00
nagachika
4bb62ee572
merge revision(s) 6a8f1a9e5c
:
...
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-20 21:33:39 +09:00
nagachika
75539c2d1e
merge revision(s) 85a483169f
:
...
Use cross compiling settings as fake.rb for snapshots
---
tool/make-snapshot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-18 21:50:27 +09:00
nagachika
09c8604be8
merge revision(s) 2767cb2825
:
...
Now fake.rb is needed to prepare sources
---
tool/make-snapshot | 1 +
1 file changed, 1 insertion(+)
2022-10-18 21:46:33 +09:00
nagachika
9b1cf2c258
merge revision(s) 762fca9b12
:
...
Prefer `File` class methods to write a string
---
tool/make-snapshot | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
2022-10-18 21:46:18 +09:00
nagachika
9fc7df7504
merge revision(s) 464f73a5f0
:
...
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-16 20:39:46 +09:00
nagachika
c1129491bb
merge revision(s) 64cff78005
:
...
`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-16 19:37:57 +09:00
nagachika
174594cf77
merge revision(s) d20886dd22
:
...
Create build-only gemspec files only if having an extension
---
tool/gem-unpack.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
2022-10-16 19:33:02 +09:00
nagachika
50496fb178
merge revision(s) 9d900620ca
:
...
Set `GEM_PATH` environment variable in runruby.rb
---
tool/runruby.rb | 6 ++++++
1 file changed, 6 insertions(+)
2022-10-15 16:35:48 +09:00
nagachika
cc745f2da1
merge revision(s) 416cba90c1
:
...
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-15 16:34:32 +09:00
nagachika
95e996e335
merge revision(s) 2d1032075a
:
...
Stop `build_extensions` when DESTDIR set
Try to fix `make install without root privilege` failures on snapshot CIs.
example: 2315349280
---
tool/rbinstall.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-15 16:33:45 +09:00