David Rodríguez
3941954fd4
Remove unnecessary GEM_PATH modification
2025-05-28 14:14:49 -04:00
Nobuyoshi Nakada
0fda818bd7
Make gemspec files for default gems with extensions
...
So that rubygems can find them as gems. However, the `--install-dir`
option of `gem install` seems to exclude prerelease gems, even already
installed in that directory, from the dependencies for some reasons;
use the `GEM_HOME` environment variable instead.
Now net-imap 0.5.0 depends on json gem.
2024-11-01 02:33:10 +09:00
Peter Zhu
2e6ddd968d
Don't enable GC.auto_compact in EnvUtil.under_gc_compact_stress when not supported
2024-10-11 17:00:30 -04:00
Luke Gruber
d592ddd5e6
Fix compile issue with a short-circuited if/unless condition and defined?
...
This caused an issue when `defined?` was in the `if` condition. Its
instructions weren't appended to the instruction sequence even though it was compiled
if a compile-time known logical short-circuit happened before the `defined?`. The catch table
entry (`defined?` compilation produces a catch table entry) was still on the iseq even though the
instructions weren't there. This caused faulty exception handling in the method.
The solution is to no add the catch table entry for `defined?` after a compile-time known logical
short circuit.
This shouldn't touch much code, it's only for cases like the following,
which can occur during debugging:
if false && defined?(Some::CONSTANT)
"more code..."
end
Fixes [Bug #20501 ]
2024-10-01 02:12:56 +09:00
Yusuke Endoh
f090d1fa59
Try to find bundled gem version from lib/*/version.rb
2024-09-13 15:49:28 +09:00
Nobuyoshi Nakada
fcb058309b
Accept version range
...
Single `Integer` argument means an exact match to the major version.
2024-09-12 23:47:34 +09:00
Nobuyoshi Nakada
14c72e96ae
Remove an unnecessary blank line added by mistake [ci skip]
2024-09-10 17:19:02 +09:00
Nobuyoshi Nakada
2d12fbc4db
Add predicates for platforms
2024-09-10 16:50:21 +09:00
Peter Zhu
cf3b62b545
Fix check_tempfile_leak in leakchecker.rb
...
The instance variable @tmpfile was removed in ddcfc9f so check_tempfile_leak
did not work.
2024-09-05 14:03:39 -04:00
Nobuyoshi Nakada
e884d65094
Ignore blocks to Test::Unit::Assertions#pend silently
...
Although `pend` in test-unit gem expects the block does not pass if it
is given, our `pend` should ignore the block silently as same as it
just skips the test with no message by default. Add an unused
parameter, to suppress the warning for the block to be ignored.
2024-09-04 14:49:25 +09:00
Nobuyoshi Nakada
a33416a333
Fix runnable symlinks
...
Fix symlinks to executable as relative paths from `bin` directory.
2024-09-03 09:59:28 +09:00
Hiroshi SHIBATA
64a005df3b
make test-tool with Windows is broken. We should use :KILL with that platform.
...
```
[ 14/191] TestParallel::TestParallel#test_hungup = 11.02 s
1) Failure:
TestParallel::TestParallel#test_hungup [C:/Users/hsbt/DevDrive/github.com/ruby/ruby/tool/test/testunit/test_parallel.rb:211]:
Expected /^Retrying hung up testcases\.+$/ to match "Run options: \n" +
" --seed=35582\n" +
" --ruby\n" +
" \".\\\\ruby.exe -I../../ruby/lib -I.ext/x64-mswin64_140 -I. ../../ruby/tool/runruby.rb --extout=.ext -- --disable-gems\"\n" +
" -j\n" +
" t1\n" +
" --worker-timeout=1\n" +
"\n" +
"# Running tests:\n" +
"\n" +
"[1/1] 50340=test4test_hungup.\n" +
"C:/Users/hsbt/DevDrive/github.com/ruby/ruby/tool/lib/test/unit.rb:418:in 'Process.kill': Invalid argument (Errno::EINVAL)\n" +
```
2024-08-22 11:29:48 +09:00
Peter Zhu
2f67610f6b
Remove dependency on Tempfile::Remover in leakchecker.rb
2024-08-20 14:29:40 -04:00
tomoya ishida
8a7e6f6852
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-08-15 06:55:57 +00:00
Yusuke Endoh
671f6e78b4
Use 20min for parallel test worker timeout
2024-08-07 10:17:43 +09:00
Yusuke Endoh
fdfde6ab2e
Use SIGSEGV to kill a parallel test worker (to dump backtrace)
2024-08-07 09:44:06 +09:00
Yusuke Endoh
e62c2ce0e0
Wait a bit longer for worker quit
2024-08-07 03:54:47 +09:00
Yusuke Endoh
47c45d5c18
Add a log when SIGKILL is sent to a test parallel worker
2024-08-07 02:41:27 +09:00
Yusuke Endoh
2c35a37918
Fix a typo
2024-08-07 02:34:46 +09:00
Yusuke Endoh
c0938fd24c
Use 3min for test parallel worker timeout again
2024-08-06 21:11:41 +09:00
Yusuke Endoh
062f85e141
Dump all-thread backtraces when test parallel worker exceeds time limit
2024-08-06 21:11:41 +09:00
Yusuke Endoh
24d46a6781
Extend the default timeout of parallel testing to one hour
2024-08-06 16:59:24 +09:00
Yusuke Endoh
30be7fb85d
Extend the default timeout of parallel testing
2024-08-06 15:00:12 +09:00
Hiroshi SHIBATA
9a5e3a4007
Removed WEBrick and that tests
...
We can handle uri, time and others without `make test-all` dependencies now.
2024-07-11 09:23:16 +09:00
Naoto Ono
8ede84aa95
Move the file location of launchable.rb
2024-07-08 10:15:04 +09:00
Naoto Ono
5b78925455
Integrate Launchable into make btest
2024-07-08 10:15:04 +09:00
Alan Wu
0dcb0fdfcd
Enable LeakChecker for RJIT previously disabled for MJIT ( #10998 )
...
RJIT doesn't spawn subprocesses so there should now be no need to
special case it.
2024-06-14 00:05:38 -07:00
Hiroshi SHIBATA
7f0e26b7f9
Re-use strscan with ruby repo
2024-05-20 18:10:09 +09:00
Nobuyoshi Nakada
e937878883
Revert "Update revision.h if branch unmatch not only revision"
...
This reverts commit 5a332940ed .
Something does not work well on Github Actions.
2024-05-09 01:02:59 +09:00
Nobuyoshi Nakada
5a332940ed
Update revision.h if branch unmatch not only revision [ci skip]
2024-05-08 21:39:32 +09:00
Nobuyoshi Nakada
aabe718e64
Show the caller location of assertion methods
...
Not only defined in `Test::Unit` or `CoreAssertions`, also show the
caller location of assertion methods defined in the current class or
ancestors.
2024-05-08 17:24:36 +09:00
Kevin Newton
b4b39a6199
[PRISM] Enable test_methoddef_endless_command
2024-05-07 14:24:31 -04:00
Nobuyoshi Nakada
a53435868e
Traverse tmpdir under chdir
2024-04-23 13:38:40 +09:00
Nobuyoshi Nakada
777daae049
Shorten tmpdir path
2024-04-23 13:38:39 +09:00
Nobuyoshi Nakada
d42a8d6602
[DOC] Tweek a comment
2024-04-22 13:00:19 +09:00
Nobuyoshi Nakada
44d2b59491
Extract list_tree as a method and separate from removals
2024-04-22 13:00:19 +09:00
Nobuyoshi Nakada
c65bc2e5d9
Show left tmpdir recursively
2024-04-22 13:00:19 +09:00
Nobuyoshi Nakada
e59da9c339
Windows does not have "/tmp" path usually
2024-04-22 09:56:47 +09:00
Nobuyoshi Nakada
9f9755664d
Fix method name
2024-04-20 11:34:52 +09:00
Nobuyoshi Nakada
cd95f6b87f
Show left files info
2024-04-19 23:17:23 +09:00
Nobuyoshi Nakada
c789e4c493
Use isolated temporary directory in test-all too for RubyGems tests
2024-04-19 23:06:46 +09:00
Nobuyoshi Nakada
05d681f91e
Make Output.new accepts keyword arguments
2024-04-19 14:12:42 +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
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
Nobuyoshi Nakada
6ccc04cf45
Add more abstract decorations for messaging
2024-03-18 23:29:53 +09:00
Nobuyoshi Nakada
1ad366134d
[Feature #20293 ] Add Warning.categories
2024-03-14 17:56:55 +09: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
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