| Age | Commit message (Collapse) | Author |
|
https://github.com/ruby/actions/actions/runs/11095032727/job/30823174026#step:3:349
|
|
Remove `.ceil` from base time calculation that makes 10x gap.
This will make the assertion more strict and also less flaky.
|
|
strscan, ipaddr and some default gems still support Ruby 2.4.
After this, I extract this CoreAssertions to their repositories.
|
|
|
|
Some symbol argument might not be accepted by Process.clock_gettime.
|
|
To prevent influence from other processes.
|
|
|
|
Increase the timeout limit when variance at rehearsal is small.
|
|
|
|
|
|
|
|
`.bundle/specification/foo-x.y.z.gemspec` may be changed our toolchain
|
|
|
|
|
|
This reverts commit 76c61c9993e59af0b4c400b44f169f4af99c3efa.
|
|
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
|
|
Separate the directly from the customized test-unit, since it may not
work with bundled gems.
|
|
|
|
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(-)
|
|
* 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
|
|
Use bundler-2.3.27
|
|
|
|
* 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
|
|
|
|
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(-)
|
|
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(-)
|
|
|
|
|
|
|
|
|
|
|
|
Added assert_true and assert_false same as test-unit gem
---
tool/lib/test/unit/assertions.rb | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
|
|
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
|
|
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(-)
|
|
Ignore EACCES on Windows
---
tool/ln_sr.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Fix conversion from absolute path to relative path
---
tool/ln_sr.rb | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
|
|
Avoid to symlink under symlink
---
ext/extmk.rb | 2 +-
tool/ln_sr.rb | 21 ++++++++++++++-------
2 files changed, 15 insertions(+), 8 deletions(-)
|
|
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
|
|
Use built bundled gems in test-bundled-gems
---
tool/test-bundled-gems.rb | 49 ++++++++++++++++++++++++-----------------------
1 file changed, 25 insertions(+), 24 deletions(-)
|
|
Kill bundled gem tests when interrupted
---
common.mk | 2 +-
tool/test-bundled-gems.rb | 12 ++++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
|
|
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(-)
|
|
Use cross compiling settings as fake.rb for snapshots
---
tool/make-snapshot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Now fake.rb is needed to prepare sources
---
tool/make-snapshot | 1 +
1 file changed, 1 insertion(+)
|
|
Prefer `File` class methods to write a string
---
tool/make-snapshot | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
|
|
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(-)
|
|
`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(-)
|
|
Create build-only gemspec files only if having an extension
---
tool/gem-unpack.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Set `GEM_PATH` environment variable in runruby.rb
---
tool/runruby.rb | 6 ++++++
1 file changed, 6 insertions(+)
|
|
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(-)
|
|
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(-)
|