Commit graph

16692 commits

Author SHA1 Message Date
Hiroshi SHIBATA
567db6064b [rubygems/rubygems] util/rubocop -A --only Style/NestedParenthesizedCalls
a875fdb535
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
3d4c3f9e4f [rubygems/rubygems] util/rubocop -A --only Style/ParallelAssignment
5c88c77873
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
4bb5ce8188 [rubygems/rubygems] util/rubocop -A --only Style/StringLiteralsInInterpolation
cb554f6eb7
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
83f9aa8f02 [rubygems/rubygems] util/rubocop -A --only Style/Alias
fba6e94de9
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
ae81ff0c9b [rubygems/rubygems] util/rubocop -A --only Layout/MultilineBlockLayout
9aa6101942
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
26d6604343 [rubygems/rubygems] util/rubocop -A --only Layout/MultilineMethodCallBraceLayout
acb0548bf6
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
41f304d5bf [rubygems/rubygems] util/rubocop -A --only Layout/SpaceInsideStringInterpolation
a06f8ae3bb
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
3233b1fe3f [rubygems/rubygems] util/rubocop -A --only Layout/SpaceInLambdaLiteral
e76088b699
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
f8daae91c4 [rubygems/rubygems] util/rubocop -A --only Layout/SpaceBeforeSemicolon
c92c6d8e85
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
4b285e5c6f [rubygems/rubygems] util/rubocop -A --only Layout/AssignmentIndentation
8e64298989
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
9ffd73523d [rubygems/rubygems] util/rubocop -A --only Layout/EmptyLinesAroundExceptionHandlingKeywords
ad1fe68d97
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
583fbc627c [rubygems/rubygems] util/rubocop -A --only Layout/EmptyLinesAroundModuleBody
48c88466b7
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
c480a0c46a [rubygems/rubygems] util/rubocop -A --only Layout/LeadingCommentSpace
4d680320e3
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
d9f92511ad [rubygems/rubygems] util/rubocop -A --only Layout/SpaceInsidePercentLiteralDelimiters
c6de27fc6d
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
85fd33c526 [rubygems/rubygems] util/rubocop -A --only Layout/SpaceInsideArrayPercentLiteral
75abd2e504
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
dab1d0ed20 [rubygems/rubygems] util/rubocop -A --only Layout/EmptyLineBetweenDefs
00117e69cc
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
7c1d590a8a [rubygems/rubygems] util/rubocop -A --only Layout/SpaceBeforeComma
4a5b70b508
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
23150e0274 [rubygems/rubygems] util/rubocop -A --only Layout/MultilineHashBraceLayout
bf33d106d0
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
05208c3875 [rubygems/rubygems] util/rubocop -A --only Lint/UnusedBlockArgument
d8efd919db
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
65752b61e7 [rubygems/rubygems] util/rubocop -A --only Performance/Count
46d5d6d1d3
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
2dddac0475 [rubygems/rubygems] util/rubocop -a test/rubygems/helper.rb and styling
fe331736d4
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
b09973a995 [rubygems/rubygems] Also removed condition of RUBY_PATCHLEVEL
16f381be4b
2023-03-17 18:50:55 +09:00
David Rodríguez
dd0f0a5e6e [rubygems/rubygems] Fix gem uninstall with --install-dir
ac23687353
2023-03-17 18:50:55 +09:00
David Rodríguez
123bedd295 [rubygems/rubygems] Extract some common logic to a test helper
ef4741b7cb
2023-03-17 18:50:55 +09:00
David Rodríguez
5733828734 [rubygems/rubygems] Fix rake check_manifest when rake is --user-installed'd
Otherwise we get

```
✗ rake TEST=test/rubygems/test_project_sanity.rb
Loaded suite /Users/deivid/.gem/ruby/3.2.0/gems/rake-13.0.6/lib/rake/rake_test_loader
Started
E
============================================================================================================================================================================================================
Error: test_manifest_is_up_to_date(TestProjectSanity):
  RuntimeError: There was an error running `rake check_manifest`: /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems.rb:263:in `find_spec_for_exe': can't find gem rake (>= 0.a) with executable rake (Gem::GemNotFoundException)
  	from /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems.rb:282:in `activate_bin_path'
  	from /Users/deivid/.asdf/installs/ruby/3.2.1/bin/rake:25:in `<main>'
/Users/deivid/Code/rubygems/rubygems/test/rubygems/test_project_sanity.rb:27:in `test_manifest_is_up_to_date'
     24:
     25:         raise "Expected Manifest.txt to be up to date, but it's not. Run `rake update_manifest` to sync it."
     26:       else
  => 27:         raise "There was an error running `rake check_manifest`: #{out}"
     28:       end
     29:     end
     30:   end
============================================================================================================================================================================================================
.
Finished in 0.188192 seconds.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 tests, 1 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
50% passed
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10.63 tests/s, 5.31 assertions/s
rake aborted!
```

29829933a6
2023-03-17 18:50:55 +09:00
David Rodríguez
37c2e903e8 [rubygems/rubygems] Show error when rake check_manifest fails for unknown reason
98de85c11e
2023-03-17 18:50:55 +09:00
lukeg
d2c6dca8f4 Fix small issues concerning namespacing in test-all suite
* Fix temporary methods on Object leaking across test cases.
* Remove temporary classes/modules leaking across test cases.
2023-03-17 08:46:37 +09:00
Takashi Kokubun
a8e7fee801 Revert "core_assertions.rb: Refine assert_linear_performance"
This reverts commit cae4342dd5.

This is failing a lot of CIs and nobody is actively looking into fixing
it. Let me revert this until we have a solution to it.
2023-03-16 09:22:42 -07:00
Alan Wu
2f81bb793f Add thread and ractor counts to bug reports
This is useful for crash triaging. It also helps to hint extension
developers about the misuse of `rb_thread_call_without_gvl()`.

Example:

    $ ./miniruby -e 'Ractor.new{Ractor.receive};
        Thread.new{sleep}; Process.kill:SEGV,Process.pid'
    <snip>
    -- Threading information ---------------------------------------------------
    Total ractor count: 2
    Ruby thread count for this ractor: 2
2023-03-16 10:46:30 -04:00
Mau Magnaguagno
89f7acba3c [rubygems/rubygems] Improve TarTestCase#calc_checksum
97add0d1d7
2023-03-16 12:55:01 +00:00
Nobuyoshi Nakada
cae4342dd5
core_assertions.rb: Refine assert_linear_performance
* Use an `Enumerable` as factors, instead of three arguments.
2023-03-16 18:51:02 +09:00
Nobuyoshi Nakada
0b303c6830 [ruby/openssl] Relax error message check for OpenSSL 3.1
A tentative measures fo https://github.com/ruby/openssl/issues/606.

With OpenSSL 3.1.0, the error message at connection using "self-signed
certificate" seems to return `SSL_R_TLSV1_ALERT_UNKNOWN_CA` instead of
`SSL_R_CERTIFICATE_VERIFY_FAILED`.

fc4629d246
2023-03-16 17:17:46 +09:00
Hiroshi SHIBATA
a90302adec [rubygems/rubygems] Added OpenSSL namespace explicitly
bf4382e7a7
2023-03-15 11:21:21 +00:00
Koichi Sasada
6462c1a042 Hash#dup for kwsplat arguments
On `f(*a, **kw)` method calls, a rest keyword parameter is identically
same Hash object is passed and it should make `#dup`ed Hahs.

fix https://bugs.ruby-lang.org/issues/19526
2023-03-15 18:05:13 +09:00
Samuel Williams
7fd53eeb46
Remove SIGCHLD waidpid. (#7527)
* Remove `waitpid_lock` and related code.

* Remove un-necessary test.

* Remove `rb_thread_sleep_interruptible` dead code.
2023-03-15 19:48:27 +13:00
Hiroshi SHIBATA
31137dc67f [rubygems/rubygems] Removed test for
https://github.com/rubygems/rubygems/pull/6444, I have no idea to
migrate this test to bundler example
yet

0d869019bf
2023-03-15 03:35:54 +00:00
Peter Zhu
3dc8cde700 Fix crash during compaction
[Bug #19529]

The fix for [Bug #19529] in commit 548086b contained a bug that crashes
on the following script:

```
wm = ObjectSpace::WeakMap.new
obj = Object.new
100.times do
  wm[Object.new] = obj
  GC.start
end
GC.compact
```
2023-03-14 23:18:11 -04:00
Jean Boussier
548086b34e ObjectSpace::WeakMap: fix compaction support
[Bug #19529]

`rb_gc_update_tbl_refs` can't be used on `w->obj2wmap` because it's
not a `VALUE -> VALUE` table, but a `VALUE -> VALUE *` table, so
we need some dedicated iterator.
2023-03-14 16:49:23 +01:00
Samuel Williams
ac65ce16e9
Revert SIGCHLD changes to diagnose CI failures. (#7517)
* Revert "Remove special handling of `SIGCHLD`. (#7482)"

This reverts commit 44a0711eab.

* Revert "Remove prototypes for functions that are no longer used. (#7497)"

This reverts commit 4dce12bead.

* Revert "Remove SIGCHLD `waidpid`. (#7476)"

This reverts commit 1658e7d966.

* Fix change to rjit variable name.
2023-03-14 20:07:59 +13:00
dependabot[bot]
5868a7843a [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.65 to 0.9.67.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.65...v0.9.67)

---
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-14 04:08:17 +00:00
Hiroshi SHIBATA
c58759f494
Removed to load jit_support.rb
It's removed at 4445b9e2a2
2023-03-14 12:51:58 +09:00
Takashi Kokubun
d8344559b2 RJIT: Simplify how Capstone is used in tests 2023-03-13 20:42:19 -07:00
Stan Lo
1095baed34 [ruby/irb] Support inspecting BasicObject
(https://github.com/ruby/irb/pull/541)

1dc2a406a3
2023-03-13 14:31:37 +00:00
TSUYUSATO Kitsune
dddc542e9b
[Bug #19476]: correct cache index computation for repetition (#7457) 2023-03-13 18:31:13 +09:00
git
7686687a79 * remove trailing spaces. [ci skip] 2023-03-13 06:46:54 +00:00
TSUYUSATO Kitsune
e22c4e8877
[Bug #19467] correct cache points and counting failure on OP_ANYCHAR_STAR_PEEK_NEXT (#7454) 2023-03-13 15:46:41 +09:00
Nobuyoshi Nakada
7ce4b716bd
Add test for linear performance 2023-03-12 18:50:39 +09:00
Takashi Kokubun
3efe4639ec RJIT: Handle Mod 10 for CMP r/m64, r64 2023-03-11 23:47:11 -08:00
Takashi Kokubun
9c220bf5e1 RJIT: Use lambda constants to match operands 2023-03-11 23:35:58 -08:00
Takashi Kokubun
e4caf59cc1 Move yjit_force_enabled? to JITSupport
for consistency
2023-03-11 20:59:03 -08:00