summaryrefslogtreecommitdiff
path: root/tool/lib
AgeCommit message (Collapse)Author
2023-04-29core_assertions.rb: Support old rubiesNobuyoshi Nakada
Some symbol argument might not be accepted by Process.clock_gettime. Notes: Merged: https://github.com/ruby/ruby/pull/7773
2023-04-28Copy also helper.rb [ci skip]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7769
2023-04-06core_assertions.rb: Prefer CPU time clocksNobuyoshi Nakada
To prevent influence from other processes. Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-06core_assertions.rb: Extract common code blockNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-06core_assertions.rb: Tweak timeout limitNobuyoshi Nakada
Increase the timeout limit when variance at rehearsal is small. Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-02Skip assert_linear_performance for RJITTakashi Kokubun
2023-03-31Check if `Bundler::EnvironmentPreserver` is definedNobuyoshi Nakada
Only `Bundler` might be defined. `EnvironmentPreserver` and its `BUNDLER_PREFIX` would be defined together in the same file.
2023-03-28Check if Bundler is definedNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7601
2023-03-23core_assertions.rb: Raise `Timeout::Error` explicitlyNobuyoshi Nakada
So that `assert_raise` inside the block works.
2023-03-22core_assertions.rb: Fix backward compatibility with pre 2.7Nobuyoshi Nakada
2023-03-22[DOC] Update comment of assert_pattern_listNobuyoshi Nakada
`pattern_list` may contain string since d903e7672637.
2023-03-22core_assertions.rb: Refine `assert_linear_performance`Nobuyoshi Nakada
* Calculate each timeout from the ratio of each factor to the first factor.
2023-03-18core_assertions.rb: Relax `assert_linear_performance`Nobuyoshi Nakada
* 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
2023-03-16Revert "core_assertions.rb: Refine `assert_linear_performance`"Takashi Kokubun
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.
2023-03-16core_assertions.rb: Refine `assert_linear_performance`Nobuyoshi Nakada
* Use an `Enumerable` as factors, instead of three arguments.
2023-03-15core_assertions.rb: Refine `assert_linear_performance`Nobuyoshi Nakada
* Add `rehearsal` keyword argument * Stop repeating with the same factor
2023-03-12Add test for linear performanceNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7506
2023-03-12core_assertions.rb: Consider backward compatibilitiesNobuyoshi Nakada
This file is copied to default gems, which might support older versions.
2023-03-08code styleHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7475
2023-03-08Added debug info to gemspec version checkHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7475
2023-03-06s/mjit/rjit/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2023-03-06s/MJIT/RJIT/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2023-02-28fix test/rubygems/test_gem_package_task.rb when in -j modelukeg
This test skipped sometimes due to failure to load 'rake/packagetask'. This is due to manipulation of $LOAD_PATH by other rubygems tests. If rake is loaded before any rubygems tests run, then it works fine. To reproduce the skipping behavior: $ make test-all TESTOPTS="-j6 --test-order=sorted test/rubygems/test_*.rb" Notes: Merged: https://github.com/ruby/ruby/pull/7394
2023-02-27Prefer to use File.foreach instead of IO.foreachHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7387
2023-02-22Refine exception messages when git failedNobuyoshi Nakada
2023-02-22Use `Gem::Package#build` instead of the class method for old baserubyNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7347
2023-02-22Clone and create dummy gemspec in sequential buildNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7347
2023-02-22Move dummy gemspec file creation for extract-gems-sequentialNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7347
2023-02-19Create a dummy minitest.gemspec for a bundled gemYusuke Endoh
To use the repository version of bundled gems, we need to build a gem by "gem build", but the repository of minitest does not include minitest.gemspec because it uses hoe. This change creats a dummy minitest.gemspec to pass the CI. Notes: Merged: https://github.com/ruby/ruby/pull/7339
2023-02-13Apply zone offset to the last modified timeNobuyoshi Nakada
2023-01-26[Bug #19340] Fix bundle gems with test revisionNobuyoshi Nakada
Build temporary gem package from cloned repository if test revision is set. Notes: Merged: https://github.com/ruby/ruby/pull/7146
2023-01-18Supressing warnings messages like:Hiroshi SHIBATA
Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7. Revert "Clear gem paths for each test" This reverts commit 6698b580ddad8cfa8c5c86df9328472820d3ee6a.
2023-01-15Clear gem paths for each testNobuyoshi Nakada
So that rubygems can find the bundled rake. Notes: Merged: https://github.com/ruby/ruby/pull/7122
2023-01-05Skip Test::Unit::AutoRunner logic in ruby/ruby repositoryHiroshi SHIBATA
2023-01-05[ruby/openssl] Stop AutoRunner with test-unitHiroshi SHIBATA
https://github.com/ruby/openssl/commit/0d4cd8b9ca
2022-12-26check `NO_COLOR` envvalKoichi Sasada
Support `NO_COLOR` (https://no-color.org/) to make parsing output easy. Notes: Merged: https://github.com/ruby/ruby/pull/7030
2022-12-25Support new style diagnostic reportsNobuyoshi Nakada
2022-12-15Remove `require 'io/wait'` where it's no longer necessary. (#6932)Samuel Williams
* Remove `require 'io/wait'` as it's part of core now. * Update ruby specs using version gates. * Add note about why it's conditional. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2022-12-13Skip calling f.read for `overwrite: true`-only casesTakashi Kokubun
We only need to set outpath for that case.
2022-12-13Make sure f.read is not called twiceTakashi Kokubun
--revision.h and --if-change are not used simultaneously, but they might be in the future. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-12-12Avoid overwriting revision.h when .git doesn't exist (#6915)Takashi Kokubun
* Avoid overwriting revision.h when .git doesn't exist * Overwrite revision.h if it's blank Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-12-12Fix positional argument color [ci skip]Nobuyoshi Nakada
2022-12-01Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6834
2022-11-13Try to overwrite the file in VPATH if possibleNobuyoshi Nakada
2022-11-07jobserver option may not be at the lastNobuyoshi Nakada
2022-11-07Set `autoclose:` for inherited FDs only [ci skip]Nobuyoshi Nakada
2022-11-06GNU make 4.4 now uses a fifo for the jobserverNobuyoshi Nakada
2022-11-04Don't report changed ENV caused by BundlerPeter Zhu
Bundler's backups changes environment variables starting with BUNDLER_ORIG_. This causes a lot of noise in tests as the leakchecker reports them as changed.
2022-11-02Fix crash in test runner on timeoutPeter Zhu
When a test worker hangs and timeouts, the test runner crashes with the following stack trace: ruby/tool/lib/test/unit.rb:1747:in `puke': undefined method `backtrace' for Timeout::Error:Class (NoMethodError) from ruby/tool/lib/test/unit.rb:790:in `block in _run_parallel' from ruby/tool/lib/test/unit.rb:788:in `each' This commit adds handling for Timeout::Error and outputs a message.
2022-11-02file2lastrev.rb: try to overwrite the found revision.h as beforeNobuyoshi Nakada