Commit graph

3318 commits

Author SHA1 Message Date
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