summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-23Ensure global variable traces are freed at exitJohn Hawthorn
ASAN_OPTIONS="detect_leaks=1" RUBY_FREE_AT_EXIT=1 ./miniruby -e 'trace_var(:$x){}' Notes: Merged: https://github.com/ruby/ruby/pull/12146
2024-11-22Free parse result under -cJohn Hawthorn
Notes: Merged: https://github.com/ruby/ruby/pull/12148
2024-11-22[ruby/openssl] Support signing CRLs using Ed25519Josh Cooper
Allow CRLs to be signed using Ed25519 private keys by passing a nil digest. https://github.com/ruby/openssl/commit/b62375bcde
2024-11-22[ruby/openssl] Support signing requests using Ed25519Josh Cooper
Allow requests to be signed using Ed25519 private keys by passing a nil digest. This is similar to commit https://github.com/ruby/openssl/commit/b0fc10009120 when signing certs. Calling PKey#public_key is deprecated and does not work for Ed25519. The same can be accomplished by passing the private key. https://github.com/ruby/openssl/commit/d96090320d
2024-11-22[ruby/openssl] Check for compatible openssl versions earlierJosh Cooper
test_pkey wasn't checking for libressl as is done elsewhere. Note the libressl version check is different when testing pkey, because PKey#sign relies on EVP_PKey_sign, whereas signing an X509 cert/request/crl relies on ASN1_item_sign. https://github.com/ruby/openssl/commit/f1db5c88a2
2024-11-22[rubygems/rubygems] fix bundle which commands on windowssodacris
https://github.com/rubygems/rubygems/commit/9e0018d9fe
2024-11-22[Feature #20563] Update required Windows versionNobuyoshi Nakada
Update the default `NTVER`, so that the declarations of APIs introduced since Windows 8 will be enabled. https://learn.microsoft.com/cpp/porting/modifying-winver-and-win32-winnt
2024-11-22[ruby/mmtk] Use extconf.rb for external GC compilationPeter Zhu
This commit adds extconf.rb for both the default GC and and MMTk to build the external GC. This allows common.mk to not need to contain any implementation-specific build configuration. https://github.com/ruby/mmtk/commit/db6a29b4a9
2024-11-22[ruby/mmtk] [Feature #20860] Implement Mark-Sweep with MMTKPeter Zhu
This commit implements the mark-sweep algorithm using MMTk and allows customizing the plan using MMTK_PLAN. https://github.com/ruby/mmtk/commit/6fea5e5ffc Co-Authored-By: Matt Valentine-House <[email protected]>
2024-11-22[ruby/mmtk] [Feature #20860] Implement NoGC with MMTkPeter Zhu
This commit only supports initializing MMTk with NoGC and object allocation. https://github.com/ruby/mmtk/commit/39aa10e537 Co-Authored-By: Kunshan Wang <[email protected]>
2024-11-22[DOC] Fix a link in NEWS.mdKazuhiro NISHIYAMA
2024-11-22Update bundled gems list as of 2024-11-21git
2024-11-22Add a temporal debugging codeYusuke Endoh
... to check the return value of ioctl http://ci.rvm.jp/results/trunk_asan@ruby-sp1/5423172 ``` /tmp/ruby/src/trunk_asan/lib/reline/io/ansi.rb:192: [BUG] rb_sys_fail_str(<STDIN>) - errno == 0 ``` Notes: Merged: https://github.com/ruby/ruby/pull/12147
2024-11-22[Bug #20903] `rb_econv_str_append` arguments expected to be StringNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12145
2024-11-21Sync ruby/mmtk into the gc/mmtk directoryMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/12120
2024-11-21[rubygems/rubygems] Set $0 to exe when running `gem exec` to fix name in CLI ↵Adam Daniels
output The $0 value is used in many CLI libraries to determine the name of the application, when displaying help and error messages. Without setting this value, it defaults to `gem` which can be confusing. Before: ``` $ gem exec kamal help Commands: gem accessory # Manage accessories (db/redis/search) gem app # Manage application gem audit # Show audit log from servers gem build # Build application image gem config # Show combined config (including secrets!) gem deploy # Deploy app to servers gem details # Show details about all containers gem docs [SECTION] # Show Kamal configuration documentation gem help [COMMAND] # Describe available commands or one specific command gem init # Create config stub in config/deploy.yml and secrets stub in .kamal gem lock # Manage the deploy lock gem proxy # Manage kamal-proxy gem prune # Prune old application images and containers gem redeploy # Deploy app to servers without bootstrapping servers, starting kamal-proxy, pruning, and registry login gem registry # Login and -out of the image registry gem remove # Remove kamal-proxy, app, accessories, and registry session from servers gem rollback [VERSION] # Rollback app to VERSION gem secrets # Helpers for extracting secrets gem server # Bootstrap servers with curl and Docker gem setup # Setup all accessories, push the env, and deploy app to servers gem upgrade # Upgrade from Kamal 1.x to 2.0 gem version # Show Kamal version ``` After: ``` $ gem exec kamal help Commands: kamal accessory # Manage accessories (db/redis/search) kamal app # Manage application kamal audit # Show audit log from servers kamal build # Build application image kamal config # Show combined config (including secrets!) kamal deploy # Deploy app to servers kamal details # Show details about all containers kamal docs [SECTION] # Show Kamal configuration documentation kamal help [COMMAND] # Describe available commands or one specific command kamal init # Create config stub in config/deploy.yml and secrets stub in .kamal kamal lock # Manage the deploy lock kamal proxy # Manage kamal-proxy kamal prune # Prune old application images and containers kamal redeploy # Deploy app to servers without bootstrapping servers, starting kamal-proxy, pruning, and registry login kamal registry # Login and -out of the image registry kamal remove # Remove kamal-proxy, app, accessories, and registry session from servers kamal rollback [VERSION] # Rollback app to VERSION kamal secrets # Helpers for extracting secrets kamal server # Bootstrap servers with curl and Docker kamal setup # Setup all accessories, push the env, and deploy app to servers kamal upgrade # Upgrade from Kamal 1.x to 2.0 kamal version # Show Kamal version ``` https://github.com/rubygems/rubygems/commit/4fd060b96d
2024-11-21Ensure that all Bundler commands have a man pageJerome Dalbert
Co-authored-by: David Rodríguez <[email protected]>
2024-11-21Annotate anonymous mmapKunshan Wang
Use PR_SET_VMA_ANON_NAME to set human-readable names for anonymous virtual memory areas mapped by `mmap()` when compiled and run on Linux 5.17 or higher. This makes it convenient for developers to debug mmap. Notes: Merged: https://github.com/ruby/ruby/pull/12119
2024-11-21Fix typo in parse.y GH Actions workflowMatt Valentine-House
with-praser -> with-parser Notes: Merged: https://github.com/ruby/ruby/pull/12131
2024-11-21[prism/compiler] end_cursor should never be NULLMatt Valentine-House
This fixes a failed assertion reported to SimpleCov https://github.com/simplecov-ruby/simplecov/issues/1113 This can be repro'd as follows: 1. Create a file `test.rb` containing the following code ``` @foo&.(@bar) ``` 2. require it with branch coverage enabled ``` ruby -rcoverage -e "Coverage.start(branches: true); require_relative 'test.rb'" ``` The assertion is failing because the Prism compiler is incorrectly detecting the start and end cursor position of the call site for the implicit call .() This patch replicates the parse.y behaviour of setting the default end_cursor to be the final closing location of the call node. This behaviour can be verified against `parse.y` by modifying the test command as follows: ``` ruby --parser=parse.y -rcoverage -e "Coverage.start(branches: true); require_relative 'test.rb'" ``` [Bug #20866] Notes: Merged: https://github.com/ruby/ruby/pull/12130
2024-11-21[rubygems/rubygems] Fix `bundle remove` sometimes not removing gemsJerome Dalbert
https://github.com/rubygems/rubygems/commit/e7f5f067e8
2024-11-21[rubygems/rubygems] Fix locking of incorrect version of git gem in an edge caseDavid Rodríguez
In particular, when a gem registry transitive dependency is changed to a git source direct dependency. https://github.com/rubygems/rubygems/commit/bcdc7660d9
2024-11-21[rubygems/rubygems] RefactorDavid Rodríguez
https://github.com/rubygems/rubygems/commit/9964c16bb9
2024-11-21[rubygems/rubygems] Extract a `source` localDavid Rodríguez
https://github.com/rubygems/rubygems/commit/c5a9449069
2024-11-21[rubygems/rubygems] Reuse `name` localDavid Rodríguez
https://github.com/rubygems/rubygems/commit/508fb45b76
2024-11-21[rubygems/rubygems] Remove no longer necessary codeDavid Rodríguez
https://github.com/rubygems/rubygems/commit/2a36af0f38
2024-11-21[rubygems/rubygems] Remove override of worker jobs for `bundle install --local`Lars Kanis
There seems to be no reason why the install should be serial for --local. The packages are still installed in the right dependency order in this case, so that parallel install can be used. This patch disables parallel install only in case of no_install_needed. Also remove the `option` argument, which is effectifely not used. https://github.com/rubygems/rubygems/commit/5da934ddb6
2024-11-21[rubygems/rubygems] move system_gems let commandssodacris
https://github.com/rubygems/rubygems/commit/1fc1e74f4d
2024-11-21Extend the timeout of fork-exit bootstraptestYusuke Endoh
It often fails randomly. http://ci.rvm.jp/results/trunk-yjit@ruby-sp2-noble-docker/5421564 ``` Fstderr output is not empty bootstraptest.test_fork.rb_78_287.rb:16:in 'block in <main>': failed (RuntimeError) from <internal:numeric>:257:in 'Integer#times' from bootstraptest.test_fork.rb_78_287.rb:10:in '<main>' ``` I'm not sure why the frequency of failure has suddenly increased, though. Notes: Merged: https://github.com/ruby/ruby/pull/12142
2024-11-21Omit flaky example with Windows platformHiroshi SHIBATA
https://github.com/ruby/ruby/actions/runs/11948300522/job/33305664284?pr=12139 ``` IO#wait [events, timeout] passed changes thread status to 'sleep' when waits for WRITABLE event FAILED Expected false == "sleep" to be truthy but was false D:/a/ruby/ruby/src/spec/ruby/library/io-wait/wait_spec.rb:99:in 'block (3 levels) in <top (required)>' D:/a/ruby/ruby/src/spec/ruby/library/io-wait/wait_spec.rb:8:in '<top (required)>' ``` Notes: Merged: https://github.com/ruby/ruby/pull/12140
2024-11-21Skip make install with gmp buildHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12141
2024-11-21Fix error "fatal: detected dubious ownership in repository at ↵Naoto Ono
'/github/workspace/src'" Notes: Merged: https://github.com/ruby/ruby/pull/12139
2024-11-21Removed needless require for build_metadataHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12137
2024-11-21Fix the usage of reallocYusuke Endoh
http://ci.rvm.jp/results/trunk-repeat50@ruby-sp2-noble-docker/5420911 ``` /tmp/ruby/src/trunk-repeat50/ext/socket/ipsocket.c: In function ‘reallocate_connection_attempt_fds’: /tmp/ruby/src/trunk-repeat50/ext/socket/ipsocket.c:292:62: warning: pointer ‘fds’ may be used after ‘realloc’ [-Wuse-after-free] 292 | for (int i = current_capacity; i < new_capacity; i++) fds[i] = -1; | ^ /tmp/ruby/src/trunk-repeat50/ext/socket/ipsocket.c:288:9: note: call to ‘realloc’ here 288 | if (realloc(fds, new_capacity * sizeof(int)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
2024-11-21[rubygems/rubygems] Explicitly load build_metadata.rb because ↵Hiroshi SHIBATA
Spec::BuildMetadata is only called from BundlerBuilder. The current code is broken to call Spec::Builders#build_* method directly. https://github.com/rubygems/rubygems/commit/4922ae40dd
2024-11-21Bump github/codeql-action from 3.27.4 to 3.27.5dependabot[bot]
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.27.4 to 3.27.5. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/ea9e4e37992a54ee68a9622e985e60c8e8f12d9f...f09c1c0a94de965c15400f5634aa42fac8fb8f88) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/12135
2024-11-21[rubygems/rubygems] Silent verbose stdout for dependency of test gemsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/51854e1982
2024-11-21bignum nogvl is offload safe. (#12132)Samuel Williams
Notes: Merged-By: ioquatix <[email protected]>
2024-11-20Update `scheduler.c` to use `RUBY_ASSERT`. (#12129)Samuel Williams
Notes: Merged-By: ioquatix <[email protected]>
2024-11-20YJIT: Make compilation_failure a default stat (#12128)Alan Wu
It's good to monitor compilation failures. Notes: Merged-By: maximecb <[email protected]>
2024-11-20[ruby/zlib] Add support for safe offload of nogvl code.Samuel Williams
(https://github.com/ruby/zlib/pull/89) https://github.com/ruby/zlib/commit/a535271862
2024-11-20[ruby/zlib] Don't call `rb_str_set_len` while released the GVL.Samuel Williams
(https://github.com/ruby/zlib/pull/88) * Only release the GVL where necessary. - Several string manipulation methods were invoked while the GVL was released. This is unsafe. - The mutex protecting multi-threaded access was not covering buffer state manipulation, leading to data corruption and out-of-bounds writes. - Using `rb_str_locktmp` prevents changes to buffer while it's in use. [Bug #20863] https://github.com/ruby/zlib/commit/e445cf3c80
2024-11-20[rubygems/rubygems] Add --attestation option to gem pushSamuel Giddins
Signed-off-by: Samuel Giddins <[email protected]> https://github.com/rubygems/rubygems/commit/a5412d9a0e
2024-11-20[rubygems/rubygems] Add man page for 'bundle issue' commandAndrew Nesbitt
https://github.com/rubygems/rubygems/commit/3f39571181
2024-11-20[ruby/irb] Store method objects in constantsStan Lo
(https://github.com/ruby/irb/pull/1033) It probably won't speed up things significantly, but these are hot paths and we can save a few method calls per completion/input call. https://github.com/ruby/irb/commit/f1e25ec7ae
2024-11-20[ruby/psych] Eagerly require `date`.Thierry Deo
https://github.com/ruby/psych/commit/b2aa0032c0
2024-11-20[ruby/etc] Prefer `rb_intern_const` over `rb_intern` for literal stringsNobuyoshi Nakada
https://github.com/ruby/etc/commit/53362d891c
2024-11-20[DOC] Fix typo in comment for STR_PRECOMPUTED_HASHPeter Zhu
2024-11-20Fix a bug in rb_include_module that stops nested inclusion into module ↵Jeremy Evans
subclasses This bug was present since the code was originally added by me in 3556a834a2847e52162d1d3302d4c64390df1694. Fixes [Bug #20871] Notes: Merged: https://github.com/ruby/ruby/pull/12125
2024-11-20[DOC] Tweaks for ArrayBurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/12113