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

3463 Коммитов

Автор SHA1 Сообщение Дата
Koichi Sasada 9180e33ca3 show warning for unused block
With verbopse mode (-w), the interpreter shows a warning if
a block is passed to a method which does not use the given block.

Warning on:

* the invoked method is written in C
* the invoked method is not `initialize`
* not invoked with `super`
* the first time on the call-site with the invoked method
  (`obj.foo{}` will be warned once if `foo` is same method)

[Feature #15554]

`Primitive.attr! :use_block` is introduced to declare that primitive
functions (written in C) will use passed block.

For minitest, test needs some tweak, so use
ea9caafc07
for `test-bundled-gems`.
2024-04-15 12:08:07 +09:00
Nobuyoshi Nakada d60b2caa95
Lock turbo_tests to 2.1.0 provisionally
turbo_tests 2.1.1 adds json to its dependency and the current bundler
does not take the standard library json and fails to build as a gem
before the installation.
2024-04-11 02:10:20 +09:00
Hiroshi SHIBATA 76efed65bd
Added test case for bundled gems warning with -r option.
This is for 76914d474d
2024-04-08 16:20:15 +09:00
Naoto Ono 56ecd8038a Launchable: Add lineNumber field 2024-04-03 16:17:30 +09:00
Naoto Ono 3d1d1435c1 Launchable: Refactor the logic of JsonStreamWriter 2024-04-02 21:55:32 +09:00
Matt Valentine-House 5903fdf43e
[DOC] Fix wheather -> whether typos in configure. 2024-04-02 21:53:56 +09:00
Nobuyoshi Nakada 376ae22235
Manage required baseruby version in one place
Add a Ruby script mode to `tool/missing-baseruby.bat` that checks if
`RUBY_VERSION` meets the required version.  This will enable similar
checks on mswin as well.
2024-03-31 00:54:38 +09:00
Hiroshi SHIBATA 7630a89a4b Use www.rfc-editor.org for RFC text.
We use the following site for that now:

* https://tools.ietf.org/ or http
* https://datatracker.ietf.org or http

Today, IETF said the official site of RFC is www.rfc-editor.org.

FYI: https://authors.ietf.org/en/references-in-rfcxml

I replaced them to www.rfc-editor.org.
2024-03-28 11:44:45 +09:00
KJ Tsanaktsidis 75234beb24 Make TestParallel#test_retry_workers consider RUBY_TEST_TIMEOUT_SCALE
This test currently fails if RUBY_TEST_TIMEOUT_SCALE is set, because the
worker timeout is scaled out but the duration of the sleep does not;
thus, the test-test-case does not timeout when it should.
2024-03-28 09:48:53 +11:00
Nobuyoshi Nakada db5686a8ba
Read as binary regardless locale 2024-03-28 02:27:08 +09:00
Nobuyoshi Nakada cbc11bcb63 Ignore errors on prerelease gems 2024-03-27 16:18:14 +09:00
Hiroshi SHIBATA e51435177e
Update vendored resolv to 0.4.0 2024-03-27 12:17:58 +09:00
Hiroshi SHIBATA b39057f32c
Fix extension installer for out-of-place build
https://github.com/ruby/ruby/pull/9673#issuecomment-2019028293
2024-03-26 11:10:20 +09:00
Hiroshi SHIBATA 152192c96f
Use load_gemspec instead of Gem::Specification.load.
We need to purge `git ls-files` from gemspec in default gems.
2024-03-25 17:37:13 +09:00
Hiroshi SHIBATA bd85fd6db9
Guard makefile target at cross-build
http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-aarch64/log/20240325T041917Z.fail.html.gz
2024-03-25 15:16:22 +09:00
Hiroshi SHIBATA 675dcf9153
Partly Revert "Show the chilled status of a String [ci skip]"
This reverts commit e720a6b485.
2024-03-25 15:04:56 +09:00
Nobuyoshi Nakada e720a6b485
Show the chilled status of a String [ci skip] 2024-03-25 14:33:20 +09:00
Hiroshi SHIBATA 990e11b60e Bootsnap and Zeitwerk are working correctly now 2024-03-25 14:33:03 +09:00
Hiroshi SHIBATA 02a4bdd607 Add newline each test script 2024-03-25 14:33:03 +09:00
Hiroshi SHIBATA 9db300219f Added test script for bundled_gems.rb with zeitwerk 2024-03-25 14:33:03 +09:00
David Rodriguez ea31228d0c Consider extensions in gems outside of ext/ 2024-03-25 11:55:08 +09:00
David Rodriguez 2dd2204d8c Extract `root` helper
It holds the root directory for each type of default gem (ext/ or lib/).
2024-03-25 11:55:08 +09:00
David Rodriguez 083e7080d1 Consider `target_prefix` in extension Makefiles 2024-03-25 11:55:08 +09:00
David Rodríguez 2b703eed46 Consistently put requirable features in default gemspecs file list 2024-03-25 11:55:08 +09:00
David Rodríguez bece07e6c3 Fix gemspec file list for extension gems
So that it also includes requirable features provided by extensions.
2024-03-25 11:55:08 +09:00
David Rodriguez 1e6117d665 Simplify FileCollector interface 2024-03-25 11:55:08 +09:00
David Rodriguez 348d8bdb0e Use `$ext_build_dir` consistently
Instead of hardcoded "ext".
2024-03-25 11:55:08 +09:00
yui-knk e86a619166 Lrama v0.6.5 2024-03-25 08:34:30 +09:00
Nobuyoshi Nakada 5a77397489
Ignore method chains succeeding `git ls-files` 2024-03-23 23:58:40 +09:00
Nobuyoshi Nakada c505bb0ca0
Ignore method chains succeeding `git ls-files` 2024-03-23 22:43:05 +09:00
yui-knk c5045830b7 Lrama v0.6.4 2024-03-22 11:53:15 +09:00
Nobuyoshi Nakada f5497203b6
Highlight messages in fetch-bundled_gems 2024-03-18 23:29:54 +09:00
Nobuyoshi Nakada 6ccc04cf45
Add more abstract decorations for messaging 2024-03-18 23:29:53 +09:00
Nobuyoshi Nakada 823727538e
Deprecate `--dryrun` options in favor of `--dry-run` 2024-03-15 14:12:08 +09:00
Nobuyoshi Nakada eceb36c7b9
downloader.rb: Add `--help` option 2024-03-15 14:11:16 +09:00
Nobuyoshi Nakada f082605735
outdate-bundled-gems.rb: Add `--help` option 2024-03-15 13:55:47 +09:00
Jean Boussier 09d8c99cdc Ensure test suite is compatible with --frozen-string-literal
As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen string
literals is making things easier.
2024-03-14 17:56:15 +01:00
Nobuyoshi Nakada 1ad366134d
[Feature #20293] Add `Warning.categories` 2024-03-14 17:56:55 +09:00
Nobuyoshi Nakada d94ad00252
Report non-empty directories [ci skip]
No longer used or generated files/directories sometimes remain
unremoved.
2024-03-09 23:08:37 +09:00
Nobuyoshi Nakada 2976d91aff
Include default gems directories in installed list 2024-03-09 19:34:36 +09:00
Nobuyoshi Nakada e9f77da54e
Reorder and move `install?` blocks after method definitions 2024-03-09 19:17:38 +09:00
Nobuyoshi Nakada 6bfb6e6045
Merged intermediate class `GemInstaller` to `UnpackedInstaller` 2024-03-09 18:45:00 +09:00
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