Age | Commit message (Collapse) | Author |
|
```
.../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'
```
|
|
Not only:
```
$ ruby colorize.rb fail foo
```
Also:
```
$ ruby colorize.rb 'bright_blue;bold' foo
```
|
|
|
|
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.
|
|
* 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.
|
|
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])}
^^^^^^^^^^
```
|
|
to @__passed__, @@__current__.
@passed is redefined in a few test suites, and this could lead to bugs.
Also rename @options (Runner#options) to @__runner_options__, which is
only used in make test-tool anyway.
|
|
|
|
|
|
strscan, ipaddr and some default gems still support Ruby 2.4.
After this, I extract this CoreAssertions to their repositories.
|
|
|
|
|
|
|
|
It seems saner to use RbConfig.ruby than using ruby in a random ancestor
directory.
|
|
|
|
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/8419
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/8313
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/8050
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7897
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7781
|
|
We want to notify above situation when release time. So, I move this check into ruby/actions.
Notes:
Merged: https://github.com/ruby/ruby/pull/7781
|
|
Some symbol argument might not be accepted by Process.clock_gettime.
Notes:
Merged: https://github.com/ruby/ruby/pull/7773
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7769
|
|
To prevent influence from other processes.
Notes:
Merged: https://github.com/ruby/ruby/pull/7661
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7661
|
|
Increase the timeout limit when variance at rehearsal is small.
Notes:
Merged: https://github.com/ruby/ruby/pull/7661
|
|
|
|
Only `Bundler` might be defined. `EnvironmentPreserver` and its
`BUNDLER_PREFIX` would be defined together in the same file.
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7601
|
|
So that `assert_raise` inside the block works.
|
|
|
|
`pattern_list` may contain string since d903e7672637.
|
|
* Calculate each timeout from the ratio of each factor to the first
factor.
|
|
* Use an `Enumerable` as factors, instead of three arguments.
* Include `assert_operator` time in rehearsal time.
* Round up max expected time.
Notes:
Merged: https://github.com/ruby/ruby/pull/7554
|
|
This reverts commit cae4342dd559e34c1ce6219593f77f0ad80286da.
This is failing a lot of CIs and nobody is actively looking into fixing
it. Let me revert this until we have a solution to it.
|
|
* Use an `Enumerable` as factors, instead of three arguments.
|
|
* Add `rehearsal` keyword argument
* Stop repeating with the same factor
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7506
|
|
This file is copied to default gems, which might support older
versions.
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7475
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7475
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7462
|