summaryrefslogtreecommitdiff
path: root/tool
AgeCommit message (Collapse)Author
2024-10-29Fix TestParallel#test_hungup when RUBY_TEST_TIMEOUT_SCALE is setPeter Zhu
When RUBY_TEST_TIMEOUT_SCALE is set, the timeout increases by the multiple specified. However, the test in test4test_hungup.rb does not scale, so if RUBY_TEST_TIMEOUT_SCALE is a large number like 10, then the test will not time out causing the tests test to fail. Notes: Merged: https://github.com/ruby/ruby/pull/11959
2024-10-29Revert "No longer needed ext/json/extconf.rb"Hiroshi SHIBATA
This reverts commit 58797b7f74737b8896583c9bfa6546ef6756681a.
2024-10-28Update test-bundled-gems.rbNobuyoshi Nakada
- Fix filtering by ARGV - Adjust top library names from gem names - Skip if no tests found Notes: Merged: https://github.com/ruby/ruby/pull/11957
2024-10-26No longer needed ext/json/extconf.rbHiroshi SHIBATA
2024-10-16Followed up https://github.com/ruby/json/pull/613Hiroshi SHIBATA
2024-10-11Don't enable GC.auto_compact in EnvUtil.under_gc_compact_stress when not ↵Peter Zhu
supported Notes: Merged: https://github.com/ruby/ruby/pull/11887
2024-10-10Update vendored net-httpSamuel Giddins
Signed-off-by: Samuel Giddins <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/11860
2024-10-09Make mkconfig.rb string literals frozenNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11846
2024-10-09Added win32-registryHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11791
2024-10-09Support `The following bundled gems are added.`Kazuhiro NISHIYAMA
2024-10-09[DOC] Use the recent RDoc always to generate the doc of ruby itselfNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11841
2024-10-08rdoc-srcdir: Adjust the version number in the title in .rdoc_optionsNobuyoshi Nakada
Other command line options are no longer needed usually. Notes: Merged: https://github.com/ruby/ruby/pull/11832
2024-10-07json upstream is ruby/json nowHiroshi SHIBATA
2024-10-04Skip related tests in PathnameInstanceTestHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3705
2024-10-03Stop skipping broken testsSoutaro Matsumoto
Notes: Merged: https://github.com/ruby/ruby/pull/11763
2024-10-02SKip failing tests that are caused by unknown IOErrorHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11756
2024-10-01Fix compile issue with a short-circuited if/unless condition and `defined?`Luke Gruber
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] Notes: Merged: https://github.com/ruby/ruby/pull/11554
2024-09-30-l option of 7z is unknown switch with the `ubuntu-latest`.Hiroshi SHIBATA
https://github.com/ruby/actions/actions/runs/11095032727/job/30823174026#step:3:349
2024-09-27Avoid to unintentional Bundler definition by Bundler::Definition.no_lockHiroshi SHIBATA
2024-09-26Update test dependenciesDavid Rodríguez
2024-09-25Check syntax warnings in built-in scriptsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/9915
2024-09-19Don't update lockfile with bundler/inlineHiroshi SHIBATA
2024-09-17Unlock parallel_testsDavid Rodríguez
2024-09-16[PRISM] Remove snapshot testing from Prism syncKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11624
2024-09-13Try to find bundled gem version from lib/*/version.rbYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11612
2024-09-13Dont't warn reline called from irb, reline is already declared at irb gemspecHiroshi SHIBATA
2024-09-12Switch the default parser from parse.y to PrismKevin Newton
This commit switches the default parser to Prism. There are a couple of additional changes related to this that are a part of this as well to make this happen. * Switch the default parser in parse.h * Remove the Prism-specific workflow and add a parse.y-specific workflow to CI so that it continues to be tested * Update a few test exclusions since Prism has the correct behavior but parse.y doesn't per https://bugs.ruby-lang.org/issues/20504. * Skips a couple of tests on RBS which are failing because they are using RubyVM::AbstractSyntaxTree.of. Fixes [Feature #20564] Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12Accept version rangeNobuyoshi Nakada
Single `Integer` argument means an exact match to the major version. Notes: Merged: https://github.com/ruby/ruby/pull/11604
2024-09-12Remove unnecessary fileydah
Notes: Merged: https://github.com/ruby/ruby/pull/11590
2024-09-12Lrama v0.6.10ydah
Notes: Merged: https://github.com/ruby/ruby/pull/11590
2024-09-10Remove an unnecessary blank line added by mistake [ci skip]Nobuyoshi Nakada
2024-09-10Add predicates for platformsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11583
2024-09-08Fix prelude to use IBFNobuyoshi Nakada
Since universal-parser and prism support, prelude code used functions inaccessible from outside libruby shared library. ``` linking goruby /usr/bin/ld: goruby.o: in function `prelude_eval': /home/runner/work/ruby/ruby/build/golf_prelude.c:221: undefined reference to `rb_ruby_prism_ptr' /usr/bin/ld: goruby.o: in function `pm_prelude_load': /home/runner/work/ruby/ruby/build/golf_prelude.c:192: undefined reference to `pm_options_line_set' /usr/bin/ld: /home/runner/work/ruby/ruby/build/golf_prelude.c:193: undefined reference to `pm_parse_string' /usr/bin/ld: goruby.o: in function `prelude_eval': /home/runner/work/ruby/ruby/build/golf_prelude.c:224: undefined reference to `pm_iseq_new_with_opt' /usr/bin/ld: /home/runner/work/ruby/ruby/build/golf_prelude.c:226: undefined reference to `pm_parse_result_free' /usr/bin/ld: goruby.o: in function `prelude_ast_value': /home/runner/work/ruby/ruby/build/golf_prelude.c:181: undefined reference to `rb_ruby_ast_data_get' /usr/bin/ld: goruby.o: in function `prelude_eval': /home/runner/work/ruby/ruby/build/golf_prelude.c:231: undefined reference to `rb_ruby_ast_data_get' /usr/bin/ld: goruby.o: in function `pm_prelude_load': /home/runner/work/ruby/ruby/build/golf_prelude.c:196: undefined reference to `pm_parse_result_free' collect2: error: ld returned 1 exit status ```
2024-09-05Fix check_tempfile_leak in leakchecker.rbPeter Zhu
The instance variable @tmpfile was removed in ddcfc9f so check_tempfile_leak did not work. Notes: Merged: https://github.com/ruby/ruby/pull/11498
2024-09-04Ignore blocks to `Test::Unit::Assertions#pend` silentlyNobuyoshi Nakada
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. Notes: Merged: https://github.com/ruby/ruby/pull/11538
2024-09-04Use bundler/inline to download diffy gemHiroshi SHIBATA
2024-09-02Revert "Experiment with removing --profile ruby for now"Takashi Kokubun
This reverts commit 6986536488ba23c033c043ef8765438f22df7bf5. We were just missing the secrets.
2024-09-02Experiment with removing --profile ruby for nowTakashi Kokubun
2024-09-02Try to fix AWS_CLI_OPTS with AWS_ACCESS_KEY_IDTakashi Kokubun
2024-09-02Drop `--profile ruby` on the release workflowTakashi Kokubun
2024-09-03Fix `gem exec rails new foo` failing on Ruby 3.2David Rodríguez
The default version of securerandom (0.2.2) gets activated by RubyGems, but does not match Rails requirements (>= 0.3), leading to an error like this: ``` $ gem exec rails new repro /Users/deivid/Code/rubygems/rubygems/lib/rubygems/specification.rb:2246:in `raise_if_conflicts': Unable to activate activesupport-7.2.1, because securerandom-0.2.2 conflicts with securerandom (>= 0.3) (Gem::ConflictError) from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/specification.rb:1383:in `activate' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/specification.rb:1421:in `block in activate_dependencies' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/specification.rb:1403:in `each' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/specification.rb:1403:in `activate_dependencies' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/specification.rb:1385:in `activate' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/core_ext/kernel_gem.rb:62:in `block in gem' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/core_ext/kernel_gem.rb:62:in `synchronize' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/core_ext/kernel_gem.rb:62:in `gem' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/commands/exec_command.rb:193:in `activate!' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/commands/exec_command.rb:73:in `execute' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/command.rb:326:in `invoke_with_build_args' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/command_manager.rb:255:in `invoke_command' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/command_manager.rb:194:in `process_args' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/command_manager.rb:152:in `run' from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/gem_runner.rb:56:in `run' from /Users/deivid/code/rubygems/rubygems/exe/gem:12:in `<main>' ``` Vendoring our own securerandom fixes the issue since that way we avoid activating the gem internally.
2024-09-03Fix runnable symlinksNobuyoshi Nakada
Fix symlinks to executable as relative paths from `bin` directory. Notes: Merged: https://github.com/ruby/ruby/pull/11532
2024-09-02redmine-backporter: Support matching multiple revsTakashi Kokubun
with `done` command
2024-09-02redmine-backporter: Clarify the actual control flowTakashi Kokubun
The `rev && has_commit(rev, "ruby_#{TARGET_VERSION.tr('.','_')}")` case seems to be used if and only if it's manually specified in the argument to the done command. It was hard to notice it with the previous code.
2024-08-31* remove trailing spaces. [ci skip]git
2024-08-31Added check method with released version of rubygems.orgHiroshi SHIBATA
2024-08-23`load_relative` is always falsy hereDavid Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/11435
2024-08-23Reuse `load_relative` localDavid Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/11435
2024-08-22`make test-tool` with Windows is broken. We should use :KILL with that platform.Hiroshi SHIBATA
``` [ 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" + ``` Notes: Merged: https://github.com/ruby/ruby/pull/11430
2024-08-21[Bug #20687] Check if base ruby provides necessary librariesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11419