summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-03-23Avoid intermediate array in TarHeader#calculate_checksumMau Magnaguagno
String#sum(0) sums the character bytes without a modulo. Follow-up of #6476 based on comment from @nobu. Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23Skip test_gem_with_platform_and_platform_dependencies only ruby/ruby repositoryHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23util/rubocop -A --only Layout/EmptyLineAfterMagicCommentHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23util/rubocop -A --only Style/FrozenStringLiteralCommentHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23[rubygems/rubygems] Enabled Style/RedundantReturn copHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/05cc97bdf8 Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23[rubygems/rubygems] util/rubocop -A --only ↵Hiroshi SHIBATA
Lint/BinaryOperatorWithIdenticalOperands Many of class of RubyGems have original <=> methods. We should ignore these cops for testing. https://github.com/rubygems/rubygems/commit/0a8645dc3b Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23[rubygems/rubygems] util/rubocop -A --only Style/MultilineTernaryOperatorHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/be853dfe3b Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23[rubygems/rubygems] util/rubocop -A --only Lint/UnderscorePrefixedVariableNameHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/6dc4bc3a5b Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23[rubygems/rubygems] util/rubocop -A --only Lint/RescueExceptionHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e8a5db50af Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-22[rubygems/rubygems] Use indented heredocNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/085d2776d8
2023-03-22Lazily allocate id tables for childrenAaron Patterson
This patch lazily allocates id tables for shape children. If a shape has only one single child, it tags the child with a bit. When we read children, if the id table has the bit set, we know it's a single child. If we need to add more children, then we create a new table and evacuate the child to the new table. Co-Authored-By: Matt Valentine-House <matt@eightbitraptor.com> Notes: Merged: https://github.com/ruby/ruby/pull/7512
2023-03-22[rubygems/rubygems] @orig_RUBY_ENGINE is always provided nowHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c5e8ad4823
2023-03-22[rubygems/rubygems] Fix test failure with missing RUBY_REVISION constantsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c5b80945c6
2023-03-22[rubygems/rubygems] ditto: RUBY_ENGINE_VERSIONHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/dc82ebeac6
2023-03-22[rubygems/rubygems] RUBY_REVISION is also provided by supported platformsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/71a237aeec
2023-03-22[rubygems/rubygems] RUBY_DESCRIPTION is always provided by supported platformsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/8a7028bc7e
2023-03-22[rubygems/rubygems] FixupHiroshi SHIBATA
https://github.com/rubygems/rubygems/pull/6486 https://github.com/rubygems/rubygems/commit/ad50221acf
2023-03-22Fixup 43d20596b8fefadc309348448352bf13615129c6Hiroshi SHIBATA
2023-03-22Relax timeout limit for FreeBSDHiroshi SHIBATA
* http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20230322T063002Z.fail.html.gz * http://rubyci.s3.amazonaws.com/freebsd13/ruby-master/log/20230322T063002Z.fail.html.gz
2023-03-22[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.67 to 0.9.68. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.67...v0.9.68) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21YJIT: Fix deadlock in tests due to pipe capacityAlan Wu
Previously, when there is enough stats that the child process fills up the pipe capacity, the child process would block, with the parent process waiting forever as no one is reading to clear up the pipe. The test timed out in these situations. Use a separate thread in the parent to read from the pipe to unblock the child in these situation. EnvUtil also does this for handling stdout and stderr. I had the test suite deadlock on a Linux VM. Notes: Merged: https://github.com/ruby/ruby/pull/7578 Merged-By: XrXr
2023-03-21[ruby/reline] Add key bindings for PgUp and PgDnPhillip Hellewell
(https://github.com/ruby/reline/pull/509) * Add key bindings for PgUp, PgDn * Match behavior of readline 8.2 In the latest readline (8.2), page-up and page-down are bound to history-search-backward and history-search-forward by default. We would like reline to have the same default behavior.
2023-03-21Use indented heredocNobuyoshi Nakada
2023-03-20Use an st table for "too complex" objectsAaron Patterson
st tables will maintain insertion order so we can marshal dump / load objects with instance variables in the same order they were set on that particular instance [ruby-core:112926] [Bug #19535] Co-Authored-By: Jemma Issroff <jemmaissroff@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/7560
2023-03-20Cache `Process.pid`Jean Boussier
[Feature #19443] It's not uncommon for database client and similar network libraries to protect themselves from Process.fork by regularly checking Process.pid Until recently most libc would cache `getpid()` so this was a cheap check to make. However as of glibc version 2.25 the PID cache is removed and calls to `getpid()` always invoke the actual system call which significantly degrades the performance of existing applications. The reason glibc removed the cache is that some libraries were bypassing `fork(2)` by issuing system calls themselves, causing stale cache issues. That isn't a concern for Ruby as bypassing MRI's primitive for forking would render the VM unusable, so we can safely cache the PID. Notes: Merged: https://github.com/ruby/ruby/pull/7326
2023-03-19RJIT: Optimize Kernel#block_given?Takashi Kokubun
2023-03-19RJIT: Optimize String#<<Takashi Kokubun
2023-03-19[Bug #19539] Match heredoc identifier from end of lineNobuyoshi Nakada
Not to ignore leading spaces in indented heredoc identifier. Notes: Merged: https://github.com/ruby/ruby/pull/7566
2023-03-18[ruby/reline] Fix: line longer than terminal width breaks renderingtomoya ishida
(https://github.com/ruby/reline/pull/516) https://github.com/ruby/reline/commit/ae5f9b87ab
2023-03-18Fix frozen status loss when moving objectsPeter Zhu
[Bug #19536] When objects are moved between size pools, their frozen status is lost in the shape. This will cause the frozen check to be bypassed when there is an inline cache. For example, the following script should raise a FrozenError, but doesn't on Ruby 3.2 and master. class A def add_ivars @a = @b = @c = @d = 1 end def set_a @a = 10 end end a = A.new a.add_ivars a.freeze b = A.new b.add_ivars b.set_a # Set the inline cache in set_a GC.verify_compaction_references(expand_heap: true, toward: :empty) a.set_a Notes: Merged: https://github.com/ruby/ruby/pull/7553
2023-03-18Fix handling of 6-byte codepoints in left_adjust_char_head in CESU-8 encodingJosef Haider
Notes: Merged: https://github.com/ruby/ruby/pull/7510 Merged-By: nobu <nobu@ruby-lang.org>
2023-03-17ObjectSpace::WeakMap: clean inverse reference when an entry is re-assignedJean Boussier
[Bug #19531] ```ruby wmap[1] = "A" wmap[1] = "B" ``` In the example above, we need to remove the `"A" => 1` inverse reference so that when `"A"` is GCed the `1` key isn't deleted. Notes: Merged: https://github.com/ruby/ruby/pull/7540
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-17[ruby/irb] Fix 2 minor issues in test suitelukeg
* undefine Kernel#irb_original_require in without_rdoc method * Don't rescue all LoadErrors/NameErrors in test_rendering.rb, just the one for require 'yamatanooroti' https://github.com/ruby/irb/commit/52b79806ea
2023-03-17util/rubocop -A --only Style/TernaryParenthesesHiroshi SHIBATA
2023-03-17util/rubocop -A --only Style/SymbolProcHiroshi SHIBATA
2023-03-17util/rubocop -A --only Layout/SpaceInsideArrayLiteralBracketsHiroshi SHIBATA
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/SemicolonHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/97f062be05
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/CharacterLiteralHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/aa058ff6b8
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/RedundantBeginHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/b595d3cf0f
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/BarePercentLiteralsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/02d8147243
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/UnlessElseHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/184c03270c
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/IdenticalConditionalBranchesHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/64f437a428
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/RescueStandardErrorHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/80b57da926
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/RescueModifierHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/b490379eab
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/NonNilCheckHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/2b056b25c3
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/ParenthesesAroundConditionHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c766a65885
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/RedundantParenthesesHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/295691d4dc
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/StabbyLambdaParenthesesHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/23ce9793e5
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/YodaConditionHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/3594945391