aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* jobserver option may not be at the lastNobuyoshi Nakada2022-11-071-1/+2
|
* Set `autoclose:` for inherited FDs only [ci skip]Nobuyoshi Nakada2022-11-071-2/+2
|
* GNU make 4.4 now uses a fifo for the jobserverNobuyoshi Nakada2022-11-061-3/+8
|
* Don't report changed ENV caused by BundlerPeter Zhu2022-11-041-0/+3
| | | | | | 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.
* Fix crash in test runner on timeoutPeter Zhu2022-11-021-1/+4
| | | | | | | | | | | 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.
* file2lastrev.rb: try to overwrite the found revision.h as beforeNobuyoshi Nakada2022-11-021-5/+8
|
* file2lastrev.rb: separate options for `Output` and `VPath`Nobuyoshi Nakada2022-11-022-0/+6
| | | | | So the `--srcdir` option in this file can override the same option in `VPath`.
* output.rb: extract from generic_erb.rbNobuyoshi Nakada2022-11-011-0/+47
| | | | | | | - writing to a file or stdout - touching timestamp files - overwriting only if changed - colorizing
* colorize.rb: support for NO_COLORNobuyoshi Nakada2022-11-011-1/+1
|
* vpath.rb: tweak --vpath option messageNobuyoshi Nakada2022-11-011-1/+1
|
* vcs.rb: do not reference the constant before assignmentNobuyoshi Nakada2022-11-011-3/+3
|
* vcs.rb: copy safe directory configurationNobuyoshi Nakada2022-10-301-5/+42
| | | | | | | Now revision.tmp will be regenerated always and every times, even if the recent file exists in the source directory, as far as using git. On the other hand, VirtualBox mounts shared folders as root, and git rejects the repository there as dubious ownership.
* vcs.rb: prettify debug printNobuyoshi Nakada2022-10-301-10/+27
|
* Add `--zone` option to `VCS`Nobuyoshi Nakada2022-09-301-1/+3
| | | | Which controls the timezone offset for `RUBY_RELEASE_DATE`.
* Introduce `VCS::Null` for fallbackNobuyoshi Nakada2022-09-301-2/+13
|
* Check for the availability of the command when detectingNobuyoshi Nakada2022-09-301-0/+3
|
* Pull up `VCS.short_revision` from `VCS::SVN`Nobuyoshi Nakada2022-09-301-4/+4
|
* Remove git command existence check againTakashi Kokubun2022-09-171-4/+1
| | | | | | | | | | | | | | | | | | | With 33c6dd2cc89c27bbf406508ec39038a181fb99bc, it's no longer necessary. This is what I got on openbsd-current: ``` -bash-5.1$ git -v unknown option: -v usage: git [--version] [--help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] [--super-prefix=<path>] [--config-env=<name>=<envvar>] <command> [<args>] -bash-5.1$ git version git version 2.35.1 ```
* Fallback to VCS.release_date on VCS::NotFoundErrorTakashi Kokubun2022-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | when -q is given. One of the RubyCI servers, freebsd12, had a broken git environment: ``` $ git show fatal: detected dubious ownership in repository at '/usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby' To add an exception for this directory, call: git config --global --add safe.directory /usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby ``` tool/lib/vcs.rb doesn't work normally for that server. Even for such cases, we'd like to generate a usable revision.h. So this patch lets revision.h fallback to default VCS.release_date when VCS::NotFoundError is raised.
* Auto-generate the release date on version.h from git CommitDate (#6382)Takashi Kokubun2022-09-171-4/+18
| | | | | | | * Auto-generate the release date on version.h from git CommitDate * Generate revision.h on mswin
* Replace "Fixes"/"Fixed" in commit logs as well as vcs.rb [ci skip]Nobuyoshi Nakada2022-09-141-1/+1
| | | | | Use the same regexp to replace "(#NNNN)" and "GH-NNNN" style references in vcs.rb, too.
* Enable deprecation warnings for test-allBenoit Daloze2022-09-101-0/+15
| | | | | | | * So deprecated methods/constants/functions are dealt with early, instead of many tests breaking suddenly when removing a deprecated method/constant/function. * Follows https://bugs.ruby-lang.org/issues/17591
* VCS#revision_header: Make arguments optionalNobuyoshi Nakada2022-09-011-2/+2
|
* Update revision.h in packages using `VCS#revision_header`Nobuyoshi Nakada2022-09-011-2/+2
|
* Extract `VCS#revision_header`Nobuyoshi Nakada2022-09-011-0/+28
|
* Fix test fail with assert_ractor outside of ruby/ruby repoHiroshi SHIBATA2022-09-011-1/+1
| | | | Revert 806583c093ecc2d67830f0a8f0d94decf0ed71e5
* Allow strings in assert_pattern_listNobuyoshi Nakada2022-08-191-4/+6
|
* Load gemspec file at that directoryNobuyoshi Nakada2022-08-051-2/+2
| | | | | | | Gemspec files generated by old bundler run `git` without changing the working directory. Or some gemspec files expect an owned file at the top exists ath the current working directory.
* Move to tool/lib/bundled_gem.rbNobuyoshi Nakada2022-08-051-0/+55
|
* Add `--stdout-on-failure`, the reverse of `--stderr-on-failure`Nobuyoshi Nakada2022-07-051-2/+7
|
* Separate failed output optionNobuyoshi Nakada2022-07-051-5/+18
| | | | It is unrelated to `GlobOption` at all.
* Prevent accidental use of assert_raisesNobuyoshi Nakada2022-06-252-4/+4
|
* vcs.rb: ignore configuration files get rid of aliases [ci skip]Nobuyoshi Nakada2022-06-221-2/+5
|
* vcs.rb: just one log to check if `--date` option works [ci skip]Nobuyoshi Nakada2022-06-221-1/+1
|
* vcs.rb: show diagnostic/progressing messages when debugging [ci skip]Nobuyoshi Nakada2022-06-221-1/+1
|
* Hack to avoid leak checkerNobuyoshi Nakada2022-05-251-1/+2
|
* Rename test_jit to test_mjitTakashi Kokubun2022-05-201-6/+6
| | | | to avoid confusion with YJIT
* Added assert_true and assert_false same as test-unit gemHiroshi SHIBATA2022-04-201-0/+16
|
* Copyedit parallel test harness crash messageAlan Wu2022-04-061-1/+1
| | | | | | Mea culpa. Co-authored-by: Kaíque Kandy Koga <kaiquekandykoga@gmail.com>
* Copyedit parallel test harness crash messageAlan Wu2022-04-061-2/+2
|
* Try to fix NoMethodError on slow environmentsKazuhiro NISHIYAMA2022-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` 1) Failure: TestParallel::TestParallel#test_hungup [/home/user/ruby/tool/test/testunit/test_parallel.rb:215]: Expected /^Retrying hung up testcases\.+$/ to match "Run options: \n" + " --seed=43403\n" + " --ruby\n" + " \"./miniruby -I../lib -I. -I.ext/common ../tool/runruby.rb --extout=.ext -- --disable-gems\"\n" + " -j\n" + " t1\n" + " --worker-timeout=1\n" + "\n" + "# Running tests:\n" + "\n" + "/home/user/ruby/tool/lib/test/unit.rb:687:in `block in _run_parallel': undefined method `<' for nil:NilClass (NoMethodError)\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:538:in `block in quit_workers'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:537:in `reject!'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:537:in `quit_workers'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:687:in `_run_parallel'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:810:in `_run_suites'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:849:in `_run_suites'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1479:in `_run_anything'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1263:in `_run_anything'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1654:in `run_tests'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1641:in `block in _run'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1640:in `each'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1640:in `_run'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1682:in `run'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1034:in `run'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:882:in `run'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:154:in `run'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1761:in `run'\n" + "\tfrom /home/user/ruby/tool/lib/test/unit.rb:1765:in `run'\n" + "\tfrom /home/user/ruby/tool/test/testunit/tests_for_parallel/runner.rb:14:in `<main>'\n". ```
* [ruby/date] Use `assert_deprecated_warn`Nobuyoshi Nakada2022-02-251-2/+2
| | | | https://github.com/ruby/date/commit/c55004715a
* fix parallel test timeout retryingKoichi Sasada2022-02-161-1/+13
| | | | | | | | | On the parallel test, workers can be killed because of timeout and the information for the retrying can be inconsistent. This patch will skip if the inconsistency is found and report as an error. http://ci.rvm.jp/results/trunk-asserts@phosphorus-docker/3834082
* [ruby/logger] Fix log rotation inter-process lock failed.Jesse Chavez2022-01-271-1/+1
| | | | | | | | | | | | Issue only occurs in JRuby 9.3.0.0 and Windows and the full console output is: log rotation inter-process lock failed. D:\log.txt -> D:\log.txt.0: The process cannot access the file because it is being used by another process. log writing failed. closed stream log writing failed. closed stream ... https://github.com/ruby/logger/commit/19fc734638
* add `--stderr-on-failure` option to test-allKoichi Sasada2022-01-261-1/+7
| | | | | Now all failure messages are printed to stdout. This option makes all failure messages printed into stderr.
* [ruby/pathname] Officially drop support for ruby 2.6 or olderDavid Rodríguez2022-01-251-1/+1
| | | | | | | | | | | | | | | | | The gem doesn't even install on old rubies, but since the gemspec claims it's supported, `gem install pathname` will try to install it and print an error. This commit doesn't fix the above issue. The only way to fix it would be to restore support and release a new version that actually supports old rubies. However, such a change has been proposed and ignored for a long time. So this issue proposes to leave that broken but at least bring the gemspec manifest and the CI matrix in sync to hopefully avoid this issue from happening again in the future. https://github.com/ruby/pathname/commit/3ee010b538
* remain `RUBY_ON_BUG` for child processes.Koichi Sasada2022-01-191-1/+6
| | | | | `RUBY_ON_BUG` is useful for child processes created by the test process.
* Removed skip alias in test suiteHiroshi SHIBATA2022-01-171-5/+3
|
* Prepare for removing RubyVM::JIT (#5262)Takashi Kokubun2021-12-132-2/+2
|
* Let pretty_inspect work once at firstNobuyoshi Nakada2021-11-301-1/+1
| | | | | For older pp.rb which did not need io/console, and dealing with `LoadError`.