summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-07-05[rubygems/rubygems] Restrict generic `arm` to only match 32-bit armなつき
https://github.com/rubygems/rubygems/commit/14c4c16e96
2024-07-05[rubygems/rubygems] Use preferred add_dependency instead of ↵Jerome Dalbert
add_runtime_dependency https://github.com/rubygems/rubygems/commit/9a08043858
2024-07-04[rubygems/rubygems] Handle OpenSSL::SSL::SSLError in local https serverHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/ccbbe84d77
2024-07-04[rubygems/rubygems] Align code styles with rubocop and others.Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c31a1592ee
2024-07-04[rubygems/rubygems] Correctly handling fetcher leakHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c538558522
2024-07-04[rubygems/rubygems] Removed needless variableHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/29f71ee6d2
2024-07-04[rubygems/rubygems] YAML is always enabledHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c755bcde62
2024-07-04[rubygems/rubygems] Removed unused gzip codeHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/ee45ebb5c3
2024-07-04[rubygems/rubygems] Rewrite WEBrick server with TCPServer and ProxyHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/3ae4358024
2024-07-04[rubygems/rubygems] Rewrite WEBrick server with TCPServer and ↵Hiroshi SHIBATA
OpenSSL::SSL::SSLServer https://github.com/rubygems/rubygems/commit/21319eccac
2024-07-04[rubygems/rubygems] Cleanup needless code from HTTP/HTTPS testsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/69bd962b56
2024-07-04[rubygems/rubygems] Split HTTP tests and HTTPS testsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/43f98b787b
2024-07-04[rubygems/rubygems] Extract tests with local HTTP/HTTPS server from ↵Hiroshi SHIBATA
TestGemRemoteFetcher https://github.com/rubygems/rubygems/commit/52db9fd501
2024-07-04[rubygems/rubygems] Extract tests with S3 resources from TestGemRemoteFetcherHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d3ee8d2d3b
2024-07-04Fix the return value of `Integer#downto` called with a blockNobuyoshi Nakada
As the document states, it should return `self`, not `nil`. Fix up of f4b313f7338f5fbe37f73aae29f70aeb474f7f5b.
2024-07-03Move Array#map to RubyAaron Patterson
Improves activerecord by about 1% on the interpreter: ``` before: ruby 3.4.0dev (2024-07-03T18:40:10Z master f88841b8f3) [arm64-darwin23] after: ruby 3.4.0dev (2024-07-03T18:41:14Z ruby-map 6c0df4eb32) [arm64-darwin23] ------------ ----------- ---------- ---------- ---------- ------------- ------------ bench before (ms) stddev (%) after (ms) stddev (%) after 1st itr before/after activerecord 235.2 0.8 233.6 0.7 1.01 1.01 ------------ ----------- ---------- ---------- ---------- ------------- ------------ Legend: - after 1st itr: ratio of before/after time for the first benchmarking iteration. - before/after: ratio of before/after time. Higher is better for after. Above 1 represents a speedup. ``` Improves YJIT by about 4%: ``` before: ruby 3.4.0dev (2024-07-03T18:40:10Z master f88841b8f3) +YJIT [arm64-darwin23] after: ruby 3.4.0dev (2024-07-03T18:41:14Z ruby-map 6c0df4eb32) +YJIT [arm64-darwin23] ------------ ----------- ---------- ---------- ---------- ------------- ------------ bench before (ms) stddev (%) after (ms) stddev (%) after 1st itr before/after activerecord 142.1 1.2 137.0 0.6 1.00 1.04 ------------ ----------- ---------- ---------- ---------- ------------- ------------ Legend: - after 1st itr: ratio of before/after time for the first benchmarking iteration. - before/after: ratio of before/after time. Higher is better for after. Above 1 represents a speedup. ```
2024-07-03[ruby/irb] Introduce cd commandStan Lo
(https://github.com/ruby/irb/pull/971) It's essentially a combination of pushws and popws commands that are easier to use. Help message: ``` Usage: cd ([target]|..) IRB uses a stack of workspaces to keep track of context(s), with `pushws` and `popws` commands to manipulate the stack. The `cd` command is an attempt to simplify the operation and will be subject to change. When given: - an object, cd will use that object as the new context by pushing it onto the workspace stack. - "..", cd will leave the current context by popping the top workspace off the stack. - no arguments, cd will move to the top workspace on the stack by popping off all workspaces. Examples: cd Foo cd Foo.new cd @ivar cd .. cd ``` https://github.com/ruby/irb/commit/4a0e0e89b7
2024-07-03array.c: Remove outdated assertionsJean Boussier
Following [Feature #20589] it can happen that we change the capacity of a frozen array, so these assertions no longer make sense. Normally we don't hit them because `Array#freeze` shrinks the array, but if somehow the Array was frozen using `Object#freeze` then we may shrink it after it was frozen.
2024-07-03[Feature #20470] Split GC into gc_impl.cPeter Zhu
This commit splits gc.c into two files: - gc.c now only contains code not specific to Ruby GC. This includes code to mark objects (which the GC implementation may choose not to use) and wrappers for internal APIs that the implementation may need to use (e.g. locking the VM). - gc_impl.c now contains the implementation of Ruby's GC. This includes marking, sweeping, compaction, and statistics. Most importantly, gc_impl.c only uses public APIs in Ruby and a limited set of functions exposed in gc.c. This allows us to build gc_impl.c independently of Ruby and plug Ruby's GC into itself.
2024-07-03[ruby/openssl] Add SSLSocket#readbyteGrant Gardner
Companion to getbyte but raise EOFError Similar to https://github.com/ruby/openssl/pull/438 https://github.com/ruby/openssl/commit/c40f70711a
2024-07-02Add regression test for mutating pack's format stringAaron Patterson
It doesn't look like there was a test added for this bug, so I'm adding it. Code is from here: https://web.archive.org/web/20160908192307/http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/24445
2024-07-02[ruby/fiddle] Pick ruby/ruby changes forHiroshi SHIBATA
`test/fiddle/test_function.rb` (https://github.com/ruby/fiddle/pull/141) https://github.com/ruby/ruby/pull/11048#issuecomment-2185630854 --------- https://github.com/ruby/fiddle/commit/a245f19763 Co-authored-by: Yusuke Endoh <mame@ruby-lang.org>
2024-07-01[ruby/rdoc] Fix some typos (https://github.com/ruby/rdoc/pull/1129)Yudai Takada
* constist ==> consist * Tidyness ==> Tidiness * Currentry ==> Currently * valus ==> values https://github.com/ruby/rdoc/commit/8412705721
2024-06-30[ruby/irb] Allow assigning and using local variable name conflictingtomoya ishida
with command (https://github.com/ruby/irb/pull/961) https://github.com/ruby/irb/commit/00603d470f
2024-06-27Fix corruption of internal encoding stringPeter Zhu
[Bug #20598] Just like [Bug #20595], Encoding#name_list and Encoding#aliases can have their strings corrupted when Encoding.default_internal is set to nil. Co-authored-by: Matthew Valentine-House <matt@eightbitraptor.com>
2024-06-27Fix corruption of encoding name stringPeter Zhu
[Bug #20595] enc_set_default_encoding will free the C string if the encoding is nil, but the C string can be used by the encoding name string. This will cause the encoding name string to be corrupted. Consider the following code: Encoding.default_internal = Encoding::ASCII_8BIT names = Encoding.default_internal.names p names Encoding.default_internal = nil p names It outputs: ["ASCII-8BIT", "BINARY", "internal"] ["ASCII-8BIT", "BINARY", "\x00\x00\x00\x00\x00\x00\x00\x00"] Co-authored-by: Matthew Valentine-House <matt@eightbitraptor.com>
2024-06-26[ruby/prism] Handle block exits under modifiersKevin Newton
https://github.com/ruby/prism/commit/6b78f5309b
2024-06-26[rubygems/rubygems] Don't print warning about nil versions being discouraged ↵David Rodríguez
during tests https://github.com/rubygems/rubygems/commit/39a47c264e
2024-06-25[rubygems/rubygems] Add Specification#validate_for_resolutionThomas Marshall
This method validates only what is required for resolution, skipping any irrelevant metadata validation. This will be used by Bundler instead of doing a full validation, allowing gem authors to use `bundle` commands immediately in newly created gems without first having to fix invalid metafata fields in the default gemspec. https://github.com/rubygems/rubygems/commit/da7704cfc0
2024-06-25Move to test/.excludes-prismNobuyoshi Nakada
2024-06-25Pending `EVENT_RETURN` settracefunc tests with PrismNobuyoshi Nakada
2024-06-25[Bug #20457] Do not remove final `return` nodeNobuyoshi Nakada
This was an optimization for versions prior to 1.9 that traverse the AST at runtime.
2024-06-25[ruby/reline] Rerender and enter raw mode again by SIGCONTtomoya ishida
(https://github.com/ruby/reline/pull/727) https://github.com/ruby/reline/commit/be45660c83
2024-06-24Handle hash and splat nodes in defined?Jeremy Evans
This supports the nodes in both in the parse.y and prism compilers. Fixes [Bug #20043] Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2024-06-24Fix `--debug-frozen-string-literal` to not apply ↵Jean Boussier
`--disable-frozen-string-literal` [Feature #20205] This was an undesired side effect. Now that this value is a triplet, we can't assume it's disabled by default.
2024-06-24Extend the timeout of test_try_ldflag_invalid_opt and ↵Yusuke Endoh
test_try_cppflag_invalid_opt
2024-06-24Introduce retry to the setup of test files with TestFile#test_statYusuke Endoh
GitHub Actions macos-arm-oss is often too slow and does not timestamp as expected.
2024-06-24Extend the timeout of Fiddle::TestFunction#test_nogvl_pollYusuke Endoh
2024-06-24Extend the timeout of TestVMDump#test_darwin_invalid_call, etc.Yusuke Endoh
2024-06-21Apply EnvUtil.apply_timeout_scale for TestFile#test_statYusuke Endoh
... to respect RUBY_TEST_TIMEOUT_SCALE. This test somehow fails frequently on macos-arm-oss with --repeat-count=2 https://app.launchableinc.com/organizations/ruby/workspaces/ruby/data/test-paths/file%3Dtest%2Fruby%2Ftest_file.rb%23%23%23class%3DTestFile%23%23%23testcase%3Dtest_stat?organizationId=ruby&workspaceId=ruby&testPathId=file%3Dtest%2Fruby%2Ftest_file.rb%23%23%23class%3DTestFile%23%23%23testcase%3Dtest_stat&testSessionStatus=flake
2024-06-20[PRISM] Remove duplicated testsKevin Newton
These tests are flaky and are duplicative of other tests that are run in CI when parser=prism.
2024-06-20[rubygems/rubygems] Add a regression test for previous `bundler update ↵David Rodríguez
--bundler` fix https://github.com/rubygems/rubygems/commit/c392593dc3
2024-06-20[rubygems/rubygems] Check if failed with the expected errorNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/3f22e9df8d
2024-06-20[rubygems/rubygems] Revert "Workaround for TruffleRuby that set `nil` to ↵Nobuyoshi Nakada
LIBRUBY_RELATIVE" This reverts commit https://github.com/rubygems/rubygems/commit/06fd39997348, for a bug that is fixed by https://github.com/rubygems/rubygems/commit/0148cce153a5. https://github.com/rubygems/rubygems/commit/907e51e521
2024-06-19String.new(capacity:) don't substract termlenJean Boussier
[Bug #20585] This was changed in 36a06efdd9f0604093dccbaf96d4e2cb17874dc8 because `String.new(1024)` would end up allocating `1025` bytes, but the problem with this change is that the caller may be trying to right size a String. So instead, we should just better document the behavior of `capacity:`.
2024-06-19[rubygems/rubygems] Do not set previously unset valueNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/0148cce153
2024-06-19[rubygems/rubygems] Workaround for TruffleRuby that set `nil` to ↵Nobuyoshi Nakada
LIBRUBY_RELATIVE https://github.com/rubygems/rubygems/commit/06fd399973
2024-06-19[rubygems/rubygems] Dump `RbConfig` elements to escape special charactersNobuyoshi Nakada
Naively embed strings do not work if special characters (newline, backslahes and so on) are contained. https://github.com/rubygems/rubygems/commit/ac2c4c4af1
2024-06-18[ruby/prism] (parser) Print when token tests are now passingKevin Newton
https://github.com/ruby/prism/commit/9e4fb665ee
2024-06-18[ruby/prism] (parser) Fix up tokens for empty symbolKevin Newton
https://github.com/ruby/prism/commit/5985ab7687