summaryrefslogtreecommitdiff
path: root/tool
AgeCommit message (Collapse)Author
2025-06-18Restore ignored test target for mswinHiroshi SHIBATA
2025-06-18Enabled the released versions of bundled gems that are working fine with ↵Hiroshi SHIBATA
Ruby HEAD
2025-06-18net-imap and irb are not working with dev version of RDocHiroshi SHIBATA
Because they are required markdown.rb provided by release package.
2025-06-18Fix minor typos in comments, specs, and docsTim Smith
Just a bit of minor cleanup Signed-off-by: Tim Smith <tsmith84@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/13636
2025-06-18Follow up testunitNobuyoshi Nakada
* Update method names. * Sort shuffled tests by names. Notes: Merged: https://github.com/ruby/ruby/pull/13640
2025-06-18Revert "Temporary pend unknown behavior of parallel tests"Nobuyoshi Nakada
This reverts commit 980f61935f6e8331e0908dc963e60fb727ab4d8c, which seems no longer needed. Notes: Merged: https://github.com/ruby/ruby/pull/13640
2025-06-17Fix up tool/auto-style.rbNobuyoshi Nakada
Do not clear the commit-wide flags per file.
2025-06-17Handle false positives in tool/auto-style.rbJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/13626
2025-06-17Auto-style indentNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13634
2025-06-17Run git without shellNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13634
2025-06-16Suppress stderr output in `TestRubyOptions#assert_segv`Nobuyoshi Nakada
It is checked against the given `list`, do not print the same output twice. Notes: Merged: https://github.com/ruby/ruby/pull/13624
2025-06-15Add `--keep-repeating` optionNobuyoshi Nakada
It directs the program to continue repeating the tests the specified number of times, even if any tests fail along the way.
2025-06-15Dump with debugger before killing stuck workerNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13618
2025-06-11Fix `make test-bundler`David Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/13520
2025-06-09Fetch only necessary commits of bundled gemsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13563
2025-06-07Skip blame-ignored revisions [ci skip]Nobuyoshi Nakada
2025-06-07Add `skip` log-fix command to skip that commit totally [ci skip]Nobuyoshi Nakada
2025-06-07Revert "[Bug #21388] Make snapshots of gems"Nobuyoshi Nakada
This reverts commit e90282be7ba1bc8e3119f6e1a2c80356ceb3f80a, a commit miss.
2025-06-07[Bug #21388] Make snapshots of gemsNobuyoshi Nakada
If the revision of bundled gems is specified for ruby master (and `git` is usable), checkout that revision and build a snapshot gem, and use it for `test-spec` instead of the downloaded release version.
2025-06-07Fix messages for skipped bundled gemsNobuyoshi Nakada
2025-06-04Support Ractor#value and Ractor#join for old versions of RubyHiroshi SHIBATA
https://github.com/ruby/test-unit-ruby-core/pull/9 https://github.com/ruby/test-unit-ruby-core/pull/10
2025-05-31Update rake version in lock filesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13484
2025-05-31fix for test-bundled-gems to catch up new APIKoichi Sasada
Notes: Merged: https://github.com/ruby/ruby/pull/13445
2025-05-29Remove unnecessary `GEM_PATH` modificationDavid Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/13461
2025-05-27bundle rbs-3.9.4 to fix test failure (#13287)Soutaro Matsumoto
* Skip CGI tests * Bundle rbs-3.9.4 Notes: Merged-By: soutaro <matsumoto@soutaro.com>
2025-05-21[rubygems/rubygems] Bump up to rack-3.1.15 that is removed dependency of ↵Hiroshi SHIBATA
CGI::Cookie https://github.com/rubygems/rubygems/commit/cecc280f61
2025-05-14[rubygems/rubygems] Try cgi-0.5.0.beta2Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/5d5e37bf23
2025-05-14[rubygems/rubygems] Update vendored version and patch for net-http and ↵Hiroshi SHIBATA
net-http-persistent https://github.com/rubygems/rubygems/commit/b9a4722d5e
2025-05-13Bump the required BASERUBY version to 3.1 (#13321)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2025-05-12Support to sync cgi/escape from ruby/cgi repoHiroshi SHIBATA
2025-05-09Use CGI 0.5.0.beta1Hiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/13275
2025-05-09Added cgi for bundler testing. rack depends cgi/cookie.rbHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/13275
2025-05-09Added instruction for initial setup of depend fileHiroshi SHIBATA
2025-05-02Add an include guard for insns_info.incAlan Wu
The JIT bindgens need this. Notes: Merged: https://github.com/ruby/ruby/pull/13229
2025-05-02Set is migrated to Core classHiroshi SHIBATA
2025-05-01Reset `GC.stress` to avoid slow coverage processing during process exitYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/13224
2025-04-30Re-enabled repl_type_completor test with upstream fixHiroshi SHIBATA
https://github.com/ruby/repl_type_completor/pull/62 Notes: Merged: https://github.com/ruby/ruby/pull/13211
2025-04-29Explain a missing USE_ZJIT check on rb_vm_max_insn_name_sizeTakashi Kokubun
2025-04-29ZJIT: Disable ZJIT instructions when USE_ZJIT is 0 (#13199)Takashi Kokubun
* ZJIT: Disable ZJIT instructions when USE_ZJIT is 0 * Test the order of ZJIT instructions * Add more jobs that disable JITs * Show instruction names in the message Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2025-04-28ZJIT: Drop trace_zjit_* instructions (#13189)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2025-04-26Implement Set as a core classJeremy Evans
Set has been an autoloaded standard library since Ruby 3.2. The standard library Set is less efficient than it could be, as it uses Hash for storage, which stores unnecessary values for each key. Implementation details: * Core Set uses a modified version of `st_table`, named `set_table`. than `s/st_/set_/`, the main difference is that the stored records do not have values, making them 1/3 smaller. `st_table_entry` stores `hash`, `key`, and `record` (value), while `set_table_entry` only stores `hash` and `key`. This results in large sets using ~33% less memory compared to stdlib Set. For small sets, core Set uses 12% more memory (160 byte object slot and 64 malloc bytes, while stdlib set uses 40 for Set and 160 for Hash). More memory is used because the set_table is embedded and 72 bytes in the object slot are currently wasted. Hopefully we can make this more efficient and have it stored in an 80 byte object slot in the future. * All methods are implemented as cfuncs, except the pretty_print methods, which were moved to `lib/pp.rb` (which is where the pretty_print methods for other core classes are defined). As is typical for core classes, internal calls call C functions and not Ruby methods. For example, to check if something is a Set, `rb_obj_is_kind_of` is used, instead of calling `is_a?(Set)` on the related object. * Almost all methods use the same algorithm that the pure-Ruby implementation used. The exception is when calling `Set#divide` with a block with 2-arity. The pure-Ruby method used tsort to implement this. I developed an algorithm that only allocates a single intermediate hash and does not need tsort. * The `flatten_merge` protected method is no longer necessary, so it is not implemented (it could be). * Similar to Hash/Array, subclasses of Set are no longer reflected in `inspect` output. * RDoc from stdlib Set was moved to core Set, with minor updates. This includes a comprehensive benchmark suite for all public Set methods. As you would expect, the native version is faster in the vast majority of cases, and multiple times faster in many cases. There are a few cases where it is significantly slower: * Set.new with no arguments (~1.6x) * Set#compare_by_identity for small sets (~1.3x) * Set#clone for small sets (~1.5x) * Set#dup for small sets (~1.7x) These are slower as Set does not currently use the AR table optimization that Hash does, so a new set_table is initialized for each call. I'm not sure it's worth the complexity to have an AR table-like optimization for small sets (for hashes it makes sense, as small hashes are used everywhere in Ruby). The rbs and repl_type_completor bundled gems will need updates to support core Set. The pull request marks them as allowed failures. This passes all set tests with no changes. The following specs needed modification: * Modifying frozen set error message (changed for the better) * `Set#divide` when passed a 2-arity block no longer yields the same object as both the first and second argument (this seems like an issue with the previous implementation). * Set-like objects that override `is_a?` such that `is_a?(Set)` return `true` are no longer treated as Set instances. * `Set.allocate.hash` is no longer the same as `nil.hash` * `Set#join` no longer calls `Set#to_a` (it calls the underlying C function). * `Set#flatten_merge` protected method is not implemented. Previously, `set.rb` added a `SortedSet` autoload, which loads `set/sorted_set.rb`. This replaces the `Set` autoload in `prelude.rb` with a `SortedSet` autoload, but I recommend removing it and `set/sorted_set.rb`. This moves `test/set/test_set.rb` to `test/ruby/test_set.rb`, reflecting that switch to a core class. This does not move the spec files, as I'm not sure how they should be handled. Internally, this uses the st_* types and functions as much as possible, and only adds set_* types and functions as needed. The underlying set_table implementation is stored in st.c, but there is no public C-API for it, nor is there one planned, in order to keep the ability to change the internals going forward. For internal uses of st_table with Qtrue values, those can probably be replaced with set_table. To do that, include internal/set_table.h. To handle symbol visibility (rb_ prefix), internal/set_table.h uses the same macro approach that include/ruby/st.h uses. The Set class (rb_cSet) and all methods are defined in set.c. There isn't currently a C-API for the Set class, though C-API functions can be added as needed going forward. Implements [Feature #21216] Co-authored-by: Jean Boussier <jean.boussier@gmail.com> Co-authored-by: Oliver Nutter <mrnoname1000@riseup.net>
2025-04-22Ignore DEFAULT_SOURCE_DATE_EPOCH [ci skip]Nobuyoshi Nakada
Rubygems sets the date of built gems to `DEFAULT_SOURCE_DATE_EPOCH` now unless `SOURCE_DATE_EPOCH` environment variable is set. It is just for the reproducible build, meaningless in our ChangeLog.
2025-04-22Assign the result of `format_changelog` to the changelog writerNobuyoshi Nakada
Also, rename `format_changelog` to `changelog_formatter` since this method does not format the changelog when called, but rather returns a Proc that takes IO and writes the formatted changelog.
2025-04-19SVN repository is already retiredHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/13133
2025-04-18Disable ZJIT profiling at call-threshold ↵Takashi Kokubun
(https://github.com/Shopify/zjit/pull/99) * Disable ZJIT profiling at call-threshold * Stop referencing ZJIT instructions in codegen Notes: Merged: https://github.com/ruby/ruby/pull/13131
2025-04-18Add zjit_* instructions to profile the interpreter ↵Takashi Kokubun
(https://github.com/Shopify/zjit/pull/16) * Add zjit_* instructions to profile the interpreter * Rename FixnumPlus to FixnumAdd * Update a comment about Invalidate * Rename Guard to GuardType * Rename Invalidate to PatchPoint * Drop unneeded debug!() * Plan on profiling the types * Use the output of GuardType as type refined outputs Notes: Merged: https://github.com/ruby/ruby/pull/13131
2025-04-18Fix auto-style target reportingTakashi Kokubun
2025-04-18Port auto-style to GitHub ActionsTakashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/13126
2025-04-18Copy over bin/auto-style.rbTakashi Kokubun
from ruby/git.ruby-lang.org as of: https://github.com/ruby/git.ruby-lang.org/commit/a8635a4cd93c8adc2e1b48b6ae8fa3fcd3bb4b34 Notes: Merged: https://github.com/ruby/ruby/pull/13126
2025-04-16rbinstall.rb: Note about `no_write` [ci skip]Nobuyoshi Nakada
Since RubyGems 3.0.0 `dir_mode` option is supported, but using `File` method to apply it, not `FileUtils`. To reduce overwriting existing methods (especially built-in class), and to record making directories, keep using `no_write` method.