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

3421 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada ced648f96f
Shorten too long message at uninstalling 2024-03-09 18:04:42 +09:00
Kevin Newton e13fd48f55 [PRISM] Update dependencies for prism diagnostics 2024-03-06 21:42:54 -05:00
Jean Boussier b4a69351ec Move FL_SINGLETON to FL_USER1
This frees FL_USER0 on both T_MODULE and T_CLASS.

Note: prior to this, FL_SINGLETON was never set on T_MODULE,
so checking for `FL_SINGLETON` without first checking that
`FL_TYPE` was `T_CLASS` was valid. That's no longer the case.
2024-03-06 13:11:41 -05:00
Nobuyoshi Nakada e9a7801a93
Drop support for old ERB 2024-03-03 00:55:45 +09:00
Takashi Kokubun 607b86ed1f Update a stubbed type for RJIT
cfunc.func is actually used by RJIT
2024-03-01 15:10:26 -08:00
Hiroshi SHIBATA 874e9fc34d Don't need to remove ruby2_keywords dependency from drb 2024-03-01 12:32:40 +09:00
Nobuyoshi Nakada 114c0b71be
Inform failures in parallel tests before retrying
Displays for each failure which test it actually occurred in.  The
output destination follows the --{stdout,stderr}-on-failure option.
2024-02-29 18:05:00 +09:00
Hiroshi SHIBATA 75a4aa2052 Support file listing with IO.poepn style 2024-02-28 13:30:16 +09:00
KJ Tsanaktsidis fe0b704df5 Skip assert_no_memory_leak when ASAN is enabled
ASAN greatly increases the memory footprint of Ruby, so these static
thresholds are not appropriate. There's no real need to run these tests
under ASAN.

[Bug #20274]
2024-02-28 14:41:03 +11:00
Nobuyoshi Nakada 3c4d0b1313
Exclude `.mailmap` from snapshots [ci skip]
It is only for old commits, useless without full repository logs.
2024-02-25 19:12:55 +09:00
Naoto Ono 3371936b6f Add Launchable into CI 2024-02-23 14:10:01 +01:00
Takashi Kokubun bccf4b30fa
Skip under_gc_compact_stress on s390x (#10073) 2024-02-22 14:34:19 -08:00
Nobuyoshi Nakada 5f7f229ae7
Adjust indent [ci skip] 2024-02-22 22:22:56 +09:00
Nobuyoshi Nakada 183c574d54
Save the performance warning flag 2024-02-22 22:05:04 +09:00
Nobuyoshi Nakada 1fa4d15ca7
Add `Test::Unit::TestCase#method_name`
For the compatibility with test-unit gem.
2024-02-21 15:45:53 +09:00
Takashi Kokubun c0e5de9567 Fix the version in missing-baseruby 2024-02-20 09:13:36 -08:00
Nobuyoshi Nakada 4e864d0a82
Architecture-dependent files must not pollute libdir [ci skip]
Copying compiled binaries to libdir is a really evil practice.
2024-02-20 13:14:09 +09:00
Hiroshi SHIBATA cdf39ed673
Don't sync prism.{so,bundle,dll} from `ruby/prism` 2024-02-20 09:56:05 +09:00
Nobuyoshi Nakada 120c291faf
Link ruby.pc to pkg-config data directory 2024-02-18 15:08:27 +09:00
Nobuyoshi Nakada 87c4c6c082
Install binary executable files to architecture dependent path 2024-02-18 15:07:42 +09:00
Nobuyoshi Nakada 104100f554
Split path.rb from mkrunnable.rb 2024-02-18 00:18:19 +09:00
Hiroshi SHIBATA 0301473fb5
Fixed dependencies list format 2024-02-16 17:59:38 +09:00
Hiroshi SHIBATA e3f452e5d7
Adjust indent 2024-02-16 17:57:38 +09:00
Hiroshi SHIBATA 9f4d5eb1f4 Try to find gemspec from `.bundle/specifications 2024-02-16 17:28:00 +09:00
Hiroshi SHIBATA 9f708d48f6 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.
2024-02-16 17:28:00 +09:00
Hiroshi SHIBATA 4047222aca 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-02-16 17:28:00 +09:00
Takashi Kokubun bc7266c5ce
Bump the required BASERUBY version to 3.0 (#9976) 2024-02-15 23:13:45 -08:00
Yusuke Endoh 9d1b000bd1 Show the method owner in backtraces
```
test.rb:1:in 'Object#toplevel_meth': unhandled exception
        from test.rb:4:in 'Foo.class_meth'
        from test.rb:6:in 'Foo#instance_meth'
        from test.rb:11:in 'singleton_meth'
        from test.rb:13:in '<main>'
```

[Feature #19117]
2024-02-15 19:11:58 +09:00
yui-knk 06ad00adc2 Lrama v0.6.3 2024-02-15 07:44:30 +09:00
Hiroshi SHIBATA 007c75ce4c
Skip to install bundled gems that is C extension and build failed.
Ex. We can't build syslog gem in Windows platform. We should skip install
syslog as bundled gems.
2024-02-09 14:40:12 +09:00
Hiroshi SHIBATA 908cedf703
Removed accidentally commit for lockfile 2024-02-08 15:29:16 +09:00
KJ Tsanaktsidis 565ef06e91 Ignore _odr_asan symbols in leaked-globals
ASAN includes these to detect violations of the ODR rule.

[Bug #20221]
2024-02-07 19:42:07 +11:00
Yuta Saito 02c88477ce [wasm] tool/m4/ruby_wasm_tools.m4: Add default value for OBJCOPY
The tool is used to build shared libraries but system installed
tools usually don't support WebAssembly, so use WASI SDK's tools by default.
2024-02-06 01:08:18 +09:00
Nobuyoshi Nakada c0629a055a
Prefer `IO.popen` over `IO.foreach` with `|` 2024-02-02 10:42:53 +09:00
Nobuyoshi Nakada f22bec79fe
leaked-globals: More accurately extract checked function names 2024-02-02 10:42:53 +09:00
Naoto Ono a7ebe467a7 Add newline between end and def 2024-01-31 16:14:50 +09:00
Naoto Ono 45b53dd897 Add the ability to generate Launchable test reports 2024-01-31 16:14:50 +09:00
Nobuyoshi Nakada 4e72c9af87
rbinstall.rb: Fix a closing parenthesis [ci skip] 2024-01-30 23:45:43 +09:00
Nobuyoshi Nakada 64fa4c7587
rbinstall.rb: Show types to install in the help [ci skip] 2024-01-30 22:36:47 +09:00
yui-knk 70cb0a4dec Lrama v0.6.2 2024-01-27 11:51:27 +09:00
Soutaro Matsumoto b822f9f6fc
Bundle rbs-3.4.3 (#9702)
* Bundle rbs-3.4.3
* Remove rbs from `TEST_BUNDLED_GEMS_ALLOW_FAILURES` list
* Add the failing tests to `rbs_skip_tests`
2024-01-26 08:47:29 +09:00
Hiroshi SHIBATA a170f1859b
No longer needed to sync syslog 2024-01-24 10:44:18 +09:00
Takashi Kokubun 996776e936 Leave a comment about the limitation of Primitive
and adjust some code styling from that PR.
2024-01-23 14:39:37 -08:00
Takashi Kokubun c84237f953
Rewrite Array#each in Ruby using Primitive (#9533) 2024-01-23 20:09:57 +00:00
Takashi Kokubun 27c1dd8634
YJIT: Allow inlining ISEQ calls with a block (#9622)
* YJIT: Allow inlining ISEQ calls with a block

* Leave a TODO comment about u16 inline_block
2024-01-23 19:36:23 +00:00
Aaron Patterson 8c3eb47fff All btests are passing with Prism
We can remove the exclusion list now
2024-01-22 16:35:58 -08:00
Aaron Patterson f423ced5ab update tests 2024-01-22 16:02:41 -08:00
Matt Valentine-House d8af85ad14 [Prism] Uncomment tests that now pass 2024-01-22 15:15:32 -08:00
Aaron Patterson 7db6832225 Fix compiling rescue + ensure
When we're compiling begin / rescue / ensure nodes, we need to "wrap"
the code in the begin statements correctly.  The wrapping is like this:
(ensure code (rescue code (begin code)))

This patch pulls the each leg in to its own function, then calls the
appropriate wrapping function depending on whether there are ensure /
rescue legs.

Fixes: https://github.com/ruby/prism/issues/2221
2024-01-22 12:02:03 -08:00
Kevin Newton ee8f92673b Enable test_syntax.rb 2024-01-22 09:10:43 -05:00
Nobuyoshi Nakada d940e3b2c3 `cexpr!` must be up to one per line now 2024-01-22 19:39:34 +09:00
Nobuyoshi Nakada 127b19ab56 Use line numbers as builtin-index
The order of iseq may differ from the order of tokens, typically
`while`/`until` conditions are put after the body.

These orders can match by using line numbers as builtin-indexes, but
at the same time, it introduces the restriction that multiple `cexpr!`
and `cstmt!` cannot appear in the same line.

Another possible idea is to use `RubyVM::AbstractSyntaxTree` and
`node_id` instead of ripper, with making BASERUBY 3.1 or later.
2024-01-22 19:39:34 +09:00
Hiroshi SHIBATA 754e4e0c9c Stop sync csv repo 2024-01-22 18:23:05 +09:00
Hiroshi SHIBATA f869f2ecf1 Stop sync nkf repo 2024-01-22 14:17:52 +09:00
Hiroshi SHIBATA c44d15c639
Stop sync drb repo 2024-01-22 12:35:04 +09:00
Kevin Newton 99d6e2f1ee [PRISM] Revisit target nodes 2024-01-19 20:12:07 -05:00
eileencodes ed50161bd6 [PRISM] Fix ensure code running twice
Fixes: ruby/prism#2212
2024-01-19 13:04:01 -08:00
Hiroshi SHIBATA fa5094e183 Stop sync rinda repo 2024-01-19 20:02:19 +09:00
Hiroshi SHIBATA 31a5d4a0cd Skip test task for resolv-replace 2024-01-19 17:44:58 +09:00
Hiroshi SHIBATA 36095ed3db Removed sync task for resolv-replace 2024-01-19 17:44:58 +09:00
Hiroshi SHIBATA 11ec59c92b Removed sync task for abbrev 2024-01-19 16:27:45 +09:00
Hiroshi SHIBATA d3898e9752
Removed sync task for observer 2024-01-19 15:56:55 +09:00
David Rodríguez a8fa28ab80
Bump uri version used in development 2024-01-19 11:29:55 +09:00
Nobuyoshi Nakada 97721fa4e1
Old sh does not allow `:` in function names [ci skip] 2024-01-18 19:56:52 +09:00
Nobuyoshi Nakada 264b7363aa
Preserve spaces in messages [ci skip] 2024-01-18 18:09:42 +09:00
Nobuyoshi Nakada a3e6546e7e
Print error messages to the stderr [ci skip] 2024-01-18 16:36:09 +09:00
Kazuhiro NISHIYAMA 8370b3bc32
Add baseruby version message
Because `--with-baseruby=/usr/bin/ruby` on macOS is Ruby 2.6,
I was confused why `--with-baseruby` was ignored.
2024-01-18 08:40:16 +09:00
Hiroshi SHIBATA 4dde4d1437 Stop sync commits from bigdecimal repo 2024-01-18 07:44:13 +09:00
Kevin Newton b0a32b7249 [PRISM] Enable more btests 2024-01-17 15:04:01 -05:00
Nobuyoshi Nakada c68ce6f7f5
Skip checking for symbol leaks in libruby.so linking extensions
The libruby.so linking extension libraries contain symbols exported
from extension libraries, and is not subject of test-leaked-globals.
2024-01-17 19:37:56 +09:00
Takashi Kokubun e37a37e696 Drop obsoleted BUILTIN_ATTR_NO_GC attribute
The thing that has used this in the past was very buggy, and we've never
revisied it. Let's remove it until we need it again.
2024-01-16 17:27:53 -08:00
Hiroshi SHIBATA 6c016a4197 Inject base64 for basic auth examples of bundler 2024-01-17 08:28:31 +09:00
Hiroshi SHIBATA 42aa24a24c No longer needed to sync base64 2024-01-17 08:28:31 +09:00
Hiroshi SHIBATA 3f5016178c We don't need to sync getoptlong 2024-01-16 17:07:10 +09:00
Hiroshi SHIBATA c5d54e1db1
We don't need to sync mutex_m 2024-01-16 16:29:16 +09:00
yui-knk b92c8934a2 Lrama v0.6.1 2024-01-13 20:03:54 +09:00
Aaron Patterson 475663f039 Only intern constants upon compilation entry
Before this commit the Prism compiler would try to intern constants
every time it re-entered. This pool of constants is "constant" (there is
only one pool per parser instance), so we should do it only once: upon
the top level entry to the compiler.

This change does just that: it populates the interned constants once.

Fixes: https://github.com/ruby/prism/issues/2152
2024-01-12 14:53:14 -08:00
Aaron Patterson 2c27a3a0dd Fix splat assigns with no lefties
We still need to emit an expand array even if there's no "left side"
variables

Fixes: https://github.com/ruby/prism/issues/2153
2024-01-12 12:46:28 -08:00
Hiroshi SHIBATA 51ba654939
Set prerelease flag if tag includes preview or rc 2024-01-12 15:36:08 +09:00
Hiroshi SHIBATA 6a45320c25
Truncate only prefix. Don't remove v from like preview1 2024-01-12 14:56:04 +09:00
John Hawthorn 18573b8d05 Avoid reading unused lvars in Primitive.cexpr
Previously on builds with optimizations disabled, this could result in
an out of bounds read. When we had all of:
* built with -O0
* Leaf builtin
* Primitive.mandatory_only
* "no args builtin", called by vm_call_single_noarg_inline_builti
* The stack is escaped to the heap via binding or a proc

This is because mk_builtin_loader generated reads for all locals
regardless of whether they were used and in the case we generated a
mandatory_only iseq that would include more variables than were actually
available.

On optimized builds, the invalid accesses would be optimized away, and
this also was often unnoticed as the invalid access would just hit
another part of the stack unless it had been escaped to the heap.

The fix here is imperfect, as this could have false positives, but since
Primitive.cexpr! is only available within the cruby codebase itself
that's probably fine as a proper fix would be much more challenging (the
only false positives we found were in rjit.rb).

Fixes [Bug #20178]

Co-authored-by: Adam Hess <HParker@github.com>
2024-01-11 16:53:20 -08:00
Hiroshi SHIBATA b10aa7757e
Disable to add latest label when running with --no-dry-run option 2024-01-11 17:36:51 +09:00
Kevin Newton 5906f6a50e Add a GitHub workflow for prism btests 2024-01-10 15:36:19 -05:00
Hiroshi SHIBATA 3ecfea6075
Need newline after changes list 2024-01-10 13:43:04 +09:00
Nobuyoshi Nakada 7285b165a4 outdate-bundled-gems.rb: Make platform and version options optional 2024-01-09 16:42:20 +09:00
Nobuyoshi Nakada 1288e7e962 outdate-bundled-gems.rb: Remove timestamp files for revisions to test 2024-01-09 16:42:20 +09:00
Nobuyoshi Nakada 60cd5230f6 outdate-bundled-gems.rb: Sort outputs in depth order 2024-01-09 16:42:20 +09:00
Nobuyoshi Nakada 72a78ecd33 outdate-bundled-gems.rb: Add `--all` option
Unless this option is given, keep other gems that may be used by
`test-bundled-gems`.
2024-01-09 16:42:20 +09:00
Nobuyoshi Nakada bf108636df outdate-bundled-gems.rb: Add `--only={all,curdir,srcdir}` option 2024-01-09 16:42:20 +09:00
Nobuyoshi Nakada 963131a2d9 outdate-bundled-gems.rb: Pass platform and version explicitly
For different version baseruby, use the target platform and version
instead of the info of baseruby.
2024-01-09 16:42:20 +09:00
Nobuyoshi Nakada 8f61617a95 outdate-bundled-gems.rb: Do not clean the same directory twice 2024-01-09 16:42:20 +09:00
yui-knk db476cc71c Introduce NODE_SYM to manage symbol literal
`:sym` was managed by `NODE_LIT` with `Symbol` object.
This commit introduces `NODE_SYM` so that

1. Symbol literal is detectable from AST Node
2. Reduce dependency on ruby object
2024-01-09 16:07:19 +09:00
Hiroshi SHIBATA f82a6172a2
Avoid the duplicated entries of GitHub releases 2024-01-09 14:53:22 +09:00
S-H-GAMELINKS e4a9a73931 Skip some RBS test 2024-01-07 09:24:34 +09:00
Nobuyoshi Nakada 9b78ef7552 [DOC] Load options and parse files from srcdir
RDoc options that do not change and can be written in `.rdoc_options`
file are moved, so that they match when called without `make`.

Get rid of parsing the files in `page_dir` twice (as relative paths
and absolute paths).
2024-01-06 21:19:51 +09:00
Hiroshi SHIBATA 900fb48e68
Support Feature and Bug tickets for release note generator 2024-01-05 18:29:02 +09:00
Luke Gruber e12d4c654e Don't create T_MATCH object if /regexp/.match(string) doesn't match
Fixes [Bug #20104]
2024-01-01 13:28:26 -08:00
Nobuyoshi Nakada 67026af146
Exclude [ci skip] commits from ChangeLog 2023-12-28 15:01:25 +09:00
Nobuyoshi Nakada 606f7540ee
Exclude dependabot from ChangeLog [ci skip] 2023-12-28 15:01:24 +09:00
Nobuyoshi Nakada 2a4a84664a [Bug #20088] Fix ARCH_FLAG for cross compiling 2023-12-27 19:11:54 +09:00
KJ Tsanaktsidis 3d24254b55 Make sync script work correctly with Windows-style newlines
I'm almost certain nobody is actually running this script on Windows,
but the tests for it do run during `nmake check`, and they fail at least
on my git configuration.

The $ anchor doesn't match \r\n with git's -E regex matching, so we need
to add \r? to gobble the carriage-return up too if needed.
2023-12-27 14:11:59 +11:00
KJ Tsanaktsidis dc532b7c4e Fix WEBrick::TestFileHandler#test_short_filename test not working
The test is currently skipped and can't possibly work on windows at the
moment. It fails because $LOAD_PATH is not set up properly in the forked
CGI process, so `require 'uri'` fails.

This works properly in the test_cgi.rb tests, because it sets up a
:RequestCallback to fix things up. Let's move the setup there into
util.rb, so it can be shared with test_filehandler.rb as well.
2023-12-27 12:54:25 +11:00
Hiroshi SHIBATA 99f8bb1331
Fetch tags with test-bundled-gems
make test-bundled-gems failed when default branch didn't have tag ref at target repository.

  ```
  updating rbs ...
  From ssh://github.com/ruby/rbs
   - [deleted]           (none)                             -> origin/dependabot/bundler/steep/rbs-3.4.0
  remote: Enumerating objects: 68, done.
  remote: Counting objects: 100% (68/68), done.
  remote: Compressing objects: 100% (43/43), done.
  remote: Total 68 (delta 19), reused 61 (delta 18), pack-reused 0
  Unpacking objects: 100% (68/68), 204.84 KiB | 633.00 KiB/s, done.
   * [new branch]        aaa-3.4.x                          -> origin/aaa-3.4.x
   * [new branch]        dependabot/bundler/steep/rbs-3.4.1 -> origin/dependabot/bundler/steep/rbs-3.4.1
     01371463..fea0932b  master                             -> origin/master
  checking out v3.4.1 (v=3.4.1, r=) ...
  fatal: invalid reference: v3.4.1
  fatal: invalid reference: 3.4.1
  make: *** [uncommon.mk:1553: yes-test-bundled-gems-fetch] Error 1
  ```
2023-12-27 10:30:38 +09:00
Sorah Fukumori fac2536776
Test_SyncDefaultGems: Fail when editor run (#9365)
When something went wrong and git launches editor, and a editor chosen
was terminal-based, a test run unnoticeably hangs.

As we intend editors not to be ran with --no-edit, GIT_EDITOR should be
defaulted to `false` so let Git command fails when it attempts to start a
editor. This allows catching such unintentional behaviour in test suite.

(Note: Prior to Git v2.32.0, git cherry-pick --no-edit doesn't work for
conflict resolution so currently the test hangs when older Git is in use.
39edfd5cbc
i.e. Ubuntu 20.04, Debian Bullseye doesn't satisfy this prerequisite.)
2023-12-26 21:43:23 +00:00
yui-knk 12b69bf515 Lrama v0.6.0 2023-12-25 20:33:22 +09:00
Hiroshi SHIBATA 27ead9907d
Typofix under lib and test, tool directories 2023-12-25 11:32:42 +09:00
Takashi Kokubun c25705c267 Get rid of obsoleted RJITFirst
It was renamed from test_mjit, but we did not maintain it as test_rjit.
We test RJIT very differently.
2023-12-22 20:20:42 -08:00
Takashi Kokubun 19d082dcfa RJIT: Distinguish Pointer with Array
This is more convenient for accessing those fields.
2023-12-22 11:24:04 -08:00
Jeremy Evans 7dca6b53a9
Add tool/missing-baseruby.bat, used when BASERUBY not available
Previously, the embedded semicolon in BASERUBY if BASERUBY is
not available breaks tarball builds without BASERUBY when using
OpenBSD make, due to the inability to escape MFLAGS correctly.
This moves the same BASERUBY code into a separate file, avoiding
the MFLAGS quoting issue.

BASERUBY must be passed to build-ext because it is required
by ripper since the introduction of lrama.

Fixes [Bug #19683]

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-12-19 21:30:47 -08:00
Peter Zhu 32ecda354f Support `GC.auto_compact = :empty` on debug builds
This commit adds `GC.auto_compact = :empty` which will run
auto-compaction sorting pages by empty slots so the most amount of
objects will be moved. This will make it easier to write tests for
auto-compaction.
2023-12-19 18:29:36 -05:00
Takashi Kokubun eb872d1752 RJIT: Share rb_vm_insns_count for vm_insns_count 2023-12-18 23:55:40 -08:00
Hiroshi SHIBATA ad2a38dce4
Added simple test script 2023-12-16 16:36:47 +08:00
Hiroshi SHIBATA 6f6b36b7e4
Added test for sub-feature like bigdecimal/util 2023-12-16 15:44:34 +08:00
Hiroshi SHIBATA dd49ee152b
Use minimum arguments for Bootsnap 2023-12-16 14:41:43 +08:00
David Rodríguez d5af5a48a5
Fix Sinatra warning during specs
Some specs now print the following warning:

```
/path/to/bundler/tmp/1/gems/base/ruby/3.2.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:902: warning: constant Tilt::Cache is deprecated
```

Updating sinatra to latest & greatest fixes it.

Update other deps too since at it.
2023-12-16 10:09:50 +08:00
Samuel Giddins ca7f7c0f51 [rubygems/rubygems] Refactor vendoring to allow validating vendoring is reproducible
Helps ensure that unsuspecting diffs to the vendored code arent accidentally introduced

https://github.com/rubygems/rubygems/commit/7c425d49dd
2023-12-15 14:48:25 +00:00
Nobuyoshi Nakada 7cbc08b388 Follow removed conflict files
After editing a conflict, continue without removed files.
2023-12-15 22:37:38 +09:00
Nobuyoshi Nakada 4d5bfa7c3b
Ignore the spcial case of target_cpu
On Windows, x86_64 is called as x64.
2023-12-15 15:39:14 +09:00
Nobuyoshi Nakada 2c2c6bc3fa
Fix `ARCH_FLAG` when cross-compiling on macOS 2023-12-15 15:19:16 +09:00
Nobuyoshi Nakada 1e5c4026d5
Fix `ARCH_FLAG` when `--with-arch` with single CPU 2023-12-15 14:10:02 +09:00
Hiroshi SHIBATA cc9aeec23e
Explained about test_for_warn_bundled_gems 2023-12-15 14:14:48 +08:00
git 202c608248 * append newline at EOF. [ci skip] 2023-12-15 06:05:41 +00:00
Hiroshi SHIBATA 8df46d54bf
Added test case of dash gem like net-smtp 2023-12-15 14:05:13 +08:00
Hiroshi SHIBATA 9a204fb82e
Added test case of bootsnap 2023-12-15 14:05:13 +08:00
Hiroshi SHIBATA 25a133ba17
Added test case of bundle exec 2023-12-15 14:05:13 +08:00
Hiroshi SHIBATA 66b82a4430
Added test case of bundled gems dependencies 2023-12-15 14:05:13 +08:00
Hiroshi SHIBATA 76c1ce4e37
Added basic test case of bundled gems warning 2023-12-15 14:05:13 +08:00
Jeremy Evans c42e4a38e9 Fix tool/ln_sr.rb passing 2 arguments to String#chomp!
I'm guessing String#sub! was desired here.
2023-12-13 07:05:21 -08:00
David Rodríguez 6b3c9cebe9 Normalize bundler bindir
This makes bundler consistent with all other gems, and makes the default
installation of Bundler in the release package look like any other
bundler installation.

Before (on preview3, for example), Bundler executable is installed at:

lib/ruby/gems/3.3.0+0/gems/bundler-2.5.0.dev/libexec/bundle

Now it's installed in the standard location:

lib/ruby/gems/3.3.0+0/gems/bundler-2.5.0.dev/exe/bundle
2023-12-13 12:59:23 +09:00
David Rodríguez 1572322e17
Sync with upstream rubygems (#9206) 2023-12-12 11:49:25 -08:00
Takashi Kokubun fd7decbf04 Allow syncing tool/bundler 2023-12-12 11:19:02 -08:00
NARUSE, Yui 6b3abcf462 fix regexp pattern of diff 2023-12-12 11:22:40 +09:00
David Rodríguez 8c2480c9ed
Unlock tilt since we no longer support Ruby 2.6 2023-12-12 10:04:57 +09:00
Kazuhiro NISHIYAMA 9765ada69c Fix NoMethodError on fail
```
.../tool/lib/colorize.rb:56:in `resolve_color': undefined method `gsub' for an instance of Symbol (NoMethodError)

    color.gsub(/\b[a-z][\w ]+/) do |n|
	 ^^^^^
	from .../tool/lib/colorize.rb:47:in `decorate'
	from .../tool/lib/test/unit.rb:1012:in `block in failed'
```
2023-12-12 09:14:11 +09:00
Nobuyoshi Nakada d9dbcd848f
Add bright colors and multiple attributes [ci skip]
Not only:
```
$ ruby colorize.rb fail foo
```

Also:
```
$ ruby colorize.rb 'bright_blue;bold' foo
```
2023-12-10 20:43:47 +09:00
Nobuyoshi Nakada 0096d6a809
Extract configuration and lookup methods [ci skip] 2023-12-10 20:43:44 +09:00
Hiroshi SHIBATA f2c84c4884 Pick commit from https://github.com/rubygems/rubygems/pull/7085
Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
2023-12-08 16:01:01 +09:00
Hiroshi SHIBATA dab30b4d71 Pick commit from https://github.com/rubygems/rubygems/pull/7227
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2023-12-08 16:01:01 +09:00
yui-knk 071df40495 Lrama v0.5.12 2023-12-07 21:07:38 +09:00
Hiroshi SHIBATA 440ea778f2
VERSION file of JSON is removed from upstream 2023-12-05 14:27:19 +09:00
yui-knk 9f6c6f88c3 Lrama v0.5.11 2023-12-02 08:58:32 +09:00
Peter Zhu 128837e4a2 Support RUNRUBY_USE_RR for rr debugger 2023-11-29 17:54:58 -05:00
Peter Zhu aee275165b debugger can never be nil 2023-11-29 17:54:58 -05:00
Peter Zhu 150ed44d87 Fix compaction during ary_make_partial
The ary_make_shared call may allocate, which can trigger a GC
compaction. This can cause the array to be embedded because it has a
length of 0.
2023-11-27 12:40:26 -05:00
Soutaro Matsumoto 1886ee190a
Bundle rbs-3.3.1 (#8921)
* bundle rbs-3.3.1
* Restore diff/subtract tests
2023-11-21 09:21:24 +00:00
Kevin Newton 323bec6295 RubyVM::InstructionSequence.compile_file_prism
* Provide a new API compile_file_prism which mirrors compile_file
but uses prism to parse/compile.
* Provide the ability to run test-all with RUBY_ISEQ_DUMP_DEBUG set
to "prism". If it is, we'll use the new compile_file_prism API to
load iseqs during the test run.
2023-11-20 12:45:29 -08:00
yui-knk c56dd94db0 Lrama v0.5.10 2023-11-18 19:38:55 +09:00
Yusuke Endoh 5bf75c20a2 Refactor the settings of test-all out
test/runner.rb and tool/lib/test/unit/parallel.rb must use the same
settings. However, some settings were copied and pasted, while some were
added only to test/runner.rb.
This changeset creates tool/test/init.rb for all settings of test-unit,
which is loaded not only by test/runner.rb but also
tool/lib/test/unit/parallel.rb.

Background: the GEM_HOME environment variable was removed in
test/runner.rb, which prohibit `require "rake"` (note that rake is a
bundled gem). However the parallel mode didn't refrect this setting,
i.e., `require "rake"` was allowed.
This leads to an inconsistency, which actually affected a test test
defines s test class *only when* `require "rake"` is successful.
(test/rubygems/test_gem_package_task.rb)

https://github.com/ruby/ruby/actions/runs/6807729617/job/18511055636#step:8:1714
```
  /home/runner/work/ruby/ruby/src/tool/lib/test/unit.rb:729:in `const_get': uninitialized constant TestGemPackageTask (NameError)

                suites.map! {|r| ::Object.const_get(r[:testcase])}
                                         ^^^^^^^^^^
```
2023-11-15 19:27:10 +09:00
Soutaro Matsumoto 6fb030e6f1 Skip TOPDIR test 2023-11-14 22:08:32 +09:00
Hiroshi SHIBATA e6b2cd15e3
Skip test_diff_* from rbs tests. It used bundle command 2023-11-14 20:35:56 +09:00