Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: merge with master (2024-08-21) #88

Merged
merged 233 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
7ea678b
Add array test cases for `TestParse#test_define_singleton_error`
yui-knk Jul 30, 2024
b3baa11
Improve Socket.tcp (#11187)
shioimm Jul 30, 2024
c884db0
[BUG #20655] Add tests to use rb_ensure and call cont.call
tagomoris Jul 29, 2024
ac5ac48
Revert 28a1c4f33e3349a98c04b8e068d9c674eb936064
mame Jul 28, 2024
50a0552
Fix test code and extension to avoid using gvars and Kernel methods
tagomoris Jul 29, 2024
6c5c30b
Use tmpdir for various environments (including Windows)
tagomoris Jul 30, 2024
77f8107
Delete the rjit definition already deleted in C
tagomoris Jul 30, 2024
1870505
Fix wrong unreachable chunk remove when jump destination label is unr…
tompng Jul 30, 2024
3af2a7f
Fix floor when ndigits is large
peterzhu2118 Jul 26, 2024
a7167d0
Fix ceil when ndigits is large
peterzhu2118 Jul 26, 2024
b37ffb9
Move incorrectly placed tests
peterzhu2118 Jul 30, 2024
ec13ccd
[rubygems/rubygems] Allow smoother breaking changes in test env
deivid-rodriguez Jul 23, 2024
3d248b2
[rubygems/rubygems] Always leave default gem executables around
deivid-rodriguez Jul 19, 2024
1164b6a
[rubygems/rubygems] Fix `gem list` regression when a regular gem shad…
deivid-rodriguez Jul 23, 2024
cf6efd1
[rubygems/rubygems] Simplify logic to add current platform a bit
deivid-rodriguez Jul 25, 2024
997642c
[rubygems/rubygems] The `simulate_platform` helper can take a string
deivid-rodriguez Jul 25, 2024
0dda30d
[rubygems/rubygems] Print a better debug message when lockfile does n…
deivid-rodriguez Jul 25, 2024
b44a154
[DOC] Tweaks for Array#&
BurdetteLamar Jul 27, 2024
91bb6af
[DOC] Tweaks for Array.new (#11259)
BurdetteLamar Jul 30, 2024
d2b8fd0
[DOC] Tweaks to Array.try_convert (#11260)
BurdetteLamar Jul 30, 2024
7ef8051
[Feature #20563] Drop support for Windows older than Vista/2008
nobu Jul 30, 2024
7aea269
[Feature #20563] Drop support for Windows older than 8/Sever 2012
nobu Jul 30, 2024
19ec803
Reset the counter for two consecutive runs
tagomoris Jul 31, 2024
92865d8
Remove files to build libffi in mswin
nobu Jul 31, 2024
dedc496
Update bundled gems list as of 2024-07-30
matzbot Jul 31, 2024
12a5400
[ruby/io-console] Remove no longer used variable
nobu Jul 31, 2024
27c22f8
[ruby/rdoc] Drop unnecessary `file_name` parameter from `Parser.for`
st0012 Jul 31, 2024
70b4f45
YJIT: Decouple Context from encoding details (#11283)
k0kubun Jul 31, 2024
6358397
Fix leak of AST when Ripper#compile_error jumps
peterzhu2118 Jul 31, 2024
290089c
[rubygems/rubygems] Remove some `file_uri_for` calls
deivid-rodriguez Jul 31, 2024
cc81437
Rewrite Array.new documentation
jeremyevans Jul 30, 2024
f5d193d
[DOC] Adds "Further Considerations" to documentation_guide.md (#11281)
BurdetteLamar Jul 31, 2024
e68e958
[PRISM] Increase test-bundler-parallel to 40 minutes
peterzhu2118 Jul 31, 2024
16b0242
[ruby/rdoc] Add new ruby parser that uses Prism
tompng Jul 31, 2024
bbeebc9
Only set shape id for CCs on attr_set + ivar
tenderlove Jun 7, 2024
346bb6c
Create docker image with release tag automatically
hsbt Jul 31, 2024
fc253d7
Removed refs/tags from ruby version
hsbt Jul 31, 2024
277a6e8
Added draft release action with tagging
hsbt Jul 31, 2024
f2b7622
We should run release.sh with release tag
hsbt Jul 31, 2024
a8f36c3
Added workflow dispatch
hsbt Jul 31, 2024
e935366
Also update version index file
hsbt Jul 31, 2024
9ed7e06
Added workflow for building snapcraft
hsbt Aug 1, 2024
e0f4cbd
Integrate Launchable into windows
ono-max Jul 29, 2024
f6e8296
Removed unused macro RVALUE_PAGE_MARKED
peterzhu2118 Aug 1, 2024
f070a9d
Notify update workflow for all-ruby
hsbt Aug 2, 2024
66cbafc
Refactor to use `tokenize_ident` instead of `TOK_INTERN` and `set_yyl…
yui-knk Aug 2, 2024
0aaff21
Notify ruby-build for definition update
hsbt Aug 2, 2024
303d231
Auto-purge after package release
hsbt Aug 2, 2024
3f93ef0
Show what objects were actually allocated on allocation count tests
mame Aug 2, 2024
04a6165
YJIT: Enhance the `String#<<` method substitution to handle integer c…
nirvdrum Aug 2, 2024
23837c5
Show where objects were allocated on allocation count tests
mame Aug 2, 2024
e5fb851
Delete unused declaration
XrXr Aug 3, 2024
42cd267
Reduce noise in object generation count tests
mame Aug 3, 2024
657f4b9
Update bundled gems list as of 2024-08-02
matzbot Aug 3, 2024
b708661
Extend timeout in test/ruby/test_file_exhaustive.rb
mame Aug 3, 2024
7d5cb45
[ruby/irb] Remove Ruby version checks
RicardoTrindade Aug 4, 2024
cbc40bb
Sync rdoc
st0012 Aug 3, 2024
a35d324
[ruby/optparse] Fix parsing array arguments with `:into` option
fatkodima Aug 5, 2024
7285e76
Fix truffleruby removing gems from lockfile
deivid-rodriguez Jun 26, 2024
f4a23d9
Bump actions/upload-artifact from 4.3.4 to 4.3.5
dependabot[bot] Aug 5, 2024
5258e8b
Make sure to always use the right `warn`
deivid-rodriguez Aug 2, 2024
b59cbcf
Clean up empty directory
hsbt Aug 5, 2024
a82976b
[ruby/uri] Use DEFAULT_PARSER at split, parse, join
hsbt Aug 5, 2024
9d86864
[ruby/uri] Add space after `bad URI`
jsoref Mar 29, 2022
dbd36e1
[ruby/reline] Accept colon-style hash in test assertion
tompng Aug 5, 2024
312a87c
[rubygems/rubygems] Bump rb-sys
dependabot[bot] Aug 5, 2024
2985770
[rubygems/rubygems] Bump rb-sys
dependabot[bot] Aug 5, 2024
7d97dde
[rubygems/rubygems] Move private reader to private section
deivid-rodriguez Aug 2, 2024
dc804bd
[rubygems/rubygems] Extract a `build_repo3` helper
deivid-rodriguez Aug 2, 2024
540bcf5
[rubygems/rubygems] Fix locked source not getting respected when `bun…
deivid-rodriguez Aug 2, 2024
3005ed6
[rubygems/rubygems] Don't remove existing platform gems when PLATFORM…
deivid-rodriguez Aug 2, 2024
30be7fb
Extend the default timeout of parallel testing
mame Aug 6, 2024
65e3717
[ruby/openssl] test/openssl/test_pkey_dsa.rb: skip all tests in FIPS …
rhenium Jul 30, 2024
24d46a6
Extend the default timeout of parallel testing to one hour
mame Aug 6, 2024
267da55
[ruby/uri] Fallback missing constants with RFC3986_PARSER
hsbt Aug 6, 2024
dc50d35
Create GitHub Releases with GitHub Actions
hsbt Aug 6, 2024
67cd95e
tool/gen-github-release.rb required recent version of Ruby
hsbt Aug 6, 2024
062f85e
Dump all-thread backtraces when test parallel worker exceeds time limit
mame Aug 6, 2024
c0938fd
Use 3min for test parallel worker timeout again
mame Aug 6, 2024
ced3580
Fix leak in warning of duplicate keys when Ripper#warn jumps
peterzhu2118 Jul 31, 2024
2c35a37
Fix a typo
mame Aug 6, 2024
47c45d5
Add a log when SIGKILL is sent to a test parallel worker
mame Aug 6, 2024
be959c0
[DOC] Tweak for Array::[]
BurdetteLamar Aug 2, 2024
e62c2ce
Wait a bit longer for worker quit
mame Aug 6, 2024
8aeca5c
Tweaks to Array::try_convert
BurdetteLamar Aug 2, 2024
66181fd
[DOC] Tweak to Array#&
BurdetteLamar Aug 2, 2024
a793b53
[DOC] Tweaks to Array#*
BurdetteLamar Aug 2, 2024
3471437
[DOC] Tweaks for Array#<<
BurdetteLamar Aug 2, 2024
fa3d9fd
[DOC] Tweaks to Array#<=>
BurdetteLamar Aug 2, 2024
fdfde6a
Use SIGSEGV to kill a parallel test worker (to dump backtrace)
mame Aug 7, 2024
671f6e7
Use 20min for parallel test worker timeout
mame Aug 7, 2024
d544735
Bump actions/upload-artifact from 4.3.5 to 4.3.6
dependabot[bot] Aug 7, 2024
60bbd9e
Bump github/codeql-action from 3.25.15 to 3.26.0
dependabot[bot] Aug 7, 2024
584559d
Fix leak of token_info when Ripper#warn jumps
peterzhu2118 Jul 31, 2024
aed468a
CI: Run annocheck for libruby.so
junaruga Aug 7, 2024
53f3036
tool/test-annocheck.sh: Refactor with double-quotes.
junaruga Aug 7, 2024
2a31410
[DOC] Tweaks to Array#+ (#11302)
BurdetteLamar Aug 7, 2024
3719b3d
[DOC] Tweaks to Array#- (#11303)
BurdetteLamar Aug 7, 2024
e271feb
Fix memory leak reported with YJIT
peterzhu2118 Aug 7, 2024
34715bd
Tune codegen for rb_yield() calls landing in ISeqs
Aug 3, 2024
68a419d
Delete unused rb_check_funcall_with_hook()
XrXr Aug 7, 2024
057c53f
Make rb_vm_invoke_bmethod() static
XrXr Aug 7, 2024
8d39939
[ruby/rdoc] Use ascii chatacter in HTML file
tompng Aug 5, 2024
c3becc3
[ruby/uri] Warn compatibility methods in RFC3986_PARSER
hsbt Aug 8, 2024
68ebd56
[ruby/uri] Use URI::RFC2396_PARSER explicitly in URI
hsbt Aug 8, 2024
3da7e44
Revert "[ruby/uri] Warn compatibility methods in RFC3986_PARSER"
hsbt Aug 8, 2024
fa44369
Partly reverted 09638741ba4d9547a0e48af8c767744fb1d7f68d
hsbt Aug 8, 2024
7594a29
lib/bundled_gems.rb: more reliable caller detection
byroot Aug 7, 2024
7e0910a
We should use uplevel:2 in another case.
hsbt Aug 8, 2024
da8cf99
Added test scenario for https://github.com/ruby/ruby/pull/11322
hsbt Aug 8, 2024
868d63f
Disable GC even during finalizing
peterzhu2118 Aug 6, 2024
0bff076
Make YJIT a GC root rather than an object (#11343)
peterzhu2118 Aug 8, 2024
64a7b87
Sync rdoc to fix master doc's display issue (#11345)
st0012 Aug 8, 2024
6fee510
[DOC] Tweaks for Array#==
BurdetteLamar Aug 7, 2024
d657205
[DOC] Tweaks for Array#[]
BurdetteLamar Aug 7, 2024
b9a9564
[DOC] Tweaks for Array#[]
BurdetteLamar Aug 7, 2024
e008f05
[DOC] Add remark about in-brief for method doc
BurdetteLamar Aug 7, 2024
ec5436b
[DOC] Tweaks for Array#[]= (#11329)
BurdetteLamar Aug 8, 2024
77ffdfe
YJIT: Allow tracing fallback counters (#11347)
k0kubun Aug 8, 2024
f57167d
Increase timeout in `test_darwin_invalid_call` method
ono-max Aug 9, 2024
af44af2
str_independent: add a fastpath with a single flag check
byroot Aug 8, 2024
2bd5dc4
string.c: str_capacity don't check for immediates
byroot Aug 8, 2024
c91ec7b
Remove rb_gc_impl_objspace_mark
peterzhu2118 Aug 7, 2024
e63a211
[ruby/psych] Convert tabs to spaces in C files
peterzhu2118 Aug 9, 2024
c8708c7
Add expand tabs commit in psych to .git-blame-ignore-revs
peterzhu2118 Aug 9, 2024
712ac99
[ruby/psych] Convert missed tabs to spaces in C files
peterzhu2118 Aug 9, 2024
d1474af
[ruby/psych] Convert tabs to spaces in test/psych/test_yaml.rb
peterzhu2118 Aug 9, 2024
ee482f4
Add psych expand tabs commit to .git-blame-ignore-revs [ci skip]
peterzhu2118 Aug 9, 2024
5a57042
[DOC] Regexp.last_match returns `$~`, not `$!`
XrXr Aug 9, 2024
a332367
string.c: Add fastpath to single_byte_optimizable
byroot Aug 9, 2024
3bac5f6
string.c: add fastpath in str_ensure_byte_pos
byroot Aug 9, 2024
4e85b6b
rb_str_bytesplice: skip encoding check if encodings are the same
byroot Aug 8, 2024
7b7dde3
[ruby/psych] Guard from memory leak in Psych::Emitter#start_document
peterzhu2118 Aug 9, 2024
6ee9a08
rb_setup_fake_ary: use precomputed flags
byroot Aug 8, 2024
ad23bbe
[ruby/prism] [Doc] Tweak the docs for lex APIs
koic Jul 30, 2024
b1f4222
Cherry-pick test for [Bug #20668]
byroot Aug 10, 2024
f1224e5
fix i386-ucrt build
raedrizqie Aug 10, 2024
00176cd
fix ucrt arch
raedrizqie Aug 10, 2024
9416bfb
Increase timeout of test-bundler-parallel
nobu Aug 10, 2024
04d57e2
Evaluate macro arguments just once
nobu Aug 9, 2024
21a9d76
Fix flag test macro
nobu Aug 9, 2024
1db8586
Show mkmf.log when failed
nobu Aug 11, 2024
1fd0a1b
Fix sign-conversion warning
nobu Aug 11, 2024
ca5b727
compile.c: don't allocate empty default values list
byroot Aug 11, 2024
2a7da0b
Update bundled gems list as of 2024-08-12
matzbot Aug 12, 2024
992596f
Fix next inside block argument stack underflow
tompng Aug 6, 2024
568d7ab
Fix memory leak reported in -test-/random/loop.c
peterzhu2118 Aug 9, 2024
d012f6d
[ruby/prism] Add sample for generating tags
kddnewton Aug 12, 2024
00e2e24
Launchable: Fix condition for bootstraptest
ono-max Aug 8, 2024
eedf6c3
Revert change of "mingw-ucrt" platform string
larskanis Aug 13, 2024
d5afa2c
do not show unused block on `send`
ko1 Aug 9, 2024
436d23f
Make sure to wait for the thread to exit in TestProcess#test_wait_and…
ono-max Aug 13, 2024
a658111
[ruby/prism] Fix up spacing in generated node.rb
kddnewton Aug 13, 2024
908305a
Sync rdoc
st0012 Aug 13, 2024
87a8555
Re-initialize vm->ractor.sched.lock after fork
jhawthorn Aug 8, 2024
b80b839
Don't set stack end in rb_gc_mark_roots
peterzhu2118 Aug 9, 2024
525008c
Delete newarraykwsplat
XrXr Aug 13, 2024
4be9b72
[ruby/resolv] Fix TCP fallback with multiple nameservers
opti Apr 24, 2024
094e533
[ruby/resolv] Reuse open TCP connection
hanazuki Jun 1, 2024
b20957b
[ruby/resolv] test_dns: Fix failure on Windows
sorah Aug 13, 2024
983d91c
Bump github/codeql-action from 3.26.0 to 3.26.1
dependabot[bot] Aug 14, 2024
e7046f1
Increase the default timeout in assert_darwin_vm_dump_works
ono-max Aug 14, 2024
f2f177e
[ruby/irb] Improve easter_egg logo resolution
tompng Aug 14, 2024
d095474
Update bundled gems list as of 2024-08-14
matzbot Aug 14, 2024
264175d
[DOC] Update comment about how object ID is calculated
peterzhu2118 Aug 8, 2024
88954a0
[ruby/prism] Tweak inspect representation of `Prism::Location`
koic Aug 14, 2024
a952ea2
[ruby/prism] Callback on shebang switches
kddnewton Aug 14, 2024
85f99b3
[DOC] Tweaks to Array#all? (#11365)
BurdetteLamar Aug 14, 2024
0610f1b
Fix crash when GC runs during finalizers at shutdown
peterzhu2118 Aug 14, 2024
002e785
[ruby/irb] Fix kill pager pid throwing Errno::ESRCH when pager
tompng Aug 14, 2024
09bf3c9
[PRISM] Trigger moreswitches off shebang
kddnewton Aug 14, 2024
fd974f5
Increase timeout of test_finalizer
peterzhu2118 Aug 14, 2024
a1d8ef6
Bump github/codeql-action from 3.26.1 to 3.26.2
dependabot[bot] Aug 15, 2024
8a7e6f6
Improve base time of assert_linear_performance (#11369)
tompng Aug 15, 2024
2a93360
Delete unnecessary rubocop disable comment
obregonia1 Aug 10, 2024
923e36a
[ruby/rdoc] Fix sidebar scroll again and add missing footer back
st0012 Aug 15, 2024
8312c5b
Fix GC_ASSERT for gc.c and gc/default.c
peterzhu2118 Aug 14, 2024
cbf508d
[ruby/prism] Special error for too short unicode errors
kddnewton Aug 15, 2024
1f99468
[DOC] Tweaks for Array#any?
BurdetteLamar Aug 14, 2024
edda29a
[DOC] Fix Related for Array#all?
BurdetteLamar Aug 14, 2024
d2361ba
[DOC] Tweaks for Array#push
BurdetteLamar Aug 14, 2024
5cb6954
[ruby/prism] Fix up lex result constants
kddnewton Aug 15, 2024
33bffde
[DOC] Tweaks for Array#at
BurdetteLamar Aug 15, 2024
2d66ef7
Show anonymous and ambiguous params in ISeq disassembly
kddnewton Aug 15, 2024
a402b18
[PRISM] test_syntax_check assertion updates for prism
kddnewton Aug 15, 2024
eb08a28
[PRISM] test_invalid_jump assertion updates for prism
kddnewton Aug 15, 2024
de28ef7
[PRISM] Use src encoding not ext encoding
kddnewton Aug 15, 2024
2c6e16e
Don't assume st_data_t and VALUE are the same in rb_gc_impl_object_id
peterzhu2118 Aug 15, 2024
abc04e8
Avoid hash allocation for certain proc calls
jeremyevans Jul 26, 2024
c06fbb1
Fix flaky TestSetTraceFunc#test_remove_in_trace by filtering trace ev…
ono-max Aug 13, 2024
018bd07
Fix some warnings
raedrizqie Aug 16, 2024
08db4bc
[ruby/openssl] test_s_generate_parameters: Consider a DSA error in FIPS.
junaruga Aug 15, 2024
129b493
Simplify and clarify bitmask calculation
nobu Aug 16, 2024
196d59f
Parenthesize macro arguments
nobu Aug 16, 2024
21dfe34
Stringize VM_ASSERT expression before expansion
nobu Aug 1, 2024
703305b
Revert soname changes
raedrizqie Aug 11, 2024
bbbe07a
Speed up finalizers for objects without object ID
peterzhu2118 Aug 15, 2024
1917c8c
[ruby/openssl] Remove test_ed25519_not_approved_on_fips.
junaruga Aug 16, 2024
77ac853
[DOC] Tweaks to Array#assoc (#11384)
BurdetteLamar Aug 16, 2024
2fe6a4f
Fix assertion error when TracePoint has incompatible events
peterzhu2118 Aug 16, 2024
d56470a
Revert "Avoid hash allocation for certain proc calls"
jeremyevans Aug 16, 2024
694181a
Update bundled gems list as of 2024-08-16
matzbot Aug 17, 2024
4dbf386
[DOC] Add `$;` to the list of deprecated global variables
neilvcarvalho Aug 17, 2024
d450f9d
Make Range#step to consistently use + for iteration (#7444)
zverok Aug 18, 2024
7061359
[rubygems/rubygems] Change new gem README template to have copyable c…
marcoroth Aug 13, 2024
566f2eb
Merge `rb_fork_ruby2` into `rb_fork_ruby`
nobu Apr 14, 2024
cd0d4ec
Single letter ASCII operator is same as the corresponding ID
nobu Aug 19, 2024
786d000
[ruby/rdoc] Avoid potentially loading the same extension from differe…
deivid-rodriguez Aug 19, 2024
cb28487
Make assertions allow incremental GC when disabled
peterzhu2118 Aug 16, 2024
d1b2479
[rubygems/rubygems] Bump rb-sys
dependabot[bot] Aug 19, 2024
e398e84
[rubygems/rubygems] Bump rb-sys
dependabot[bot] Aug 19, 2024
6dccb01
Sort links [ci skip]
znz Aug 20, 2024
ea7ceff
Avoid hash allocation for certain proc calls
jeremyevans Aug 20, 2024
edd3fc6
Bump github/codeql-action from 3.26.2 to 3.26.3
dependabot[bot] Aug 20, 2024
995b4c3
Make same structures same
nobu Jul 29, 2024
f73d435
Check compile_branch_condition results
nobu Jul 29, 2024
5e3dd6d
Decrease the timeout in assert_darwin_vm_dump_works (#11412)
ono-max Aug 20, 2024
927a44b
Rewrite #test_redefinition_mismatch to use a dedicated test class
KJTsanaktsidis Aug 9, 2024
72d016e
[ruby/reline] typofix
hsbt Aug 20, 2024
d6f18b2
Remove extraneous lock files
nobu Aug 20, 2024
41b427a
[ruby/tempfile] Ensure finalizer order in Tempfile
peterzhu2118 Aug 15, 2024
a68331e
[ruby/tempfile] Add FinalizerManager to manage finalizers
peterzhu2118 Aug 20, 2024
2f67610
Remove dependency on Tempfile::Remover in leakchecker.rb
peterzhu2118 Aug 20, 2024
bd7eda6
[ruby/tempfile] Fix subprocess tests requires
peterzhu2118 Aug 20, 2024
1d68a73
[ruby/tempfile] Don't unlink in finalizer when already unlinked
peterzhu2118 Aug 20, 2024
014708a
[ruby/logger] Guarantee level_override exists
saraid Aug 20, 2024
592b903
Generate parsers of RDoc with Racc 1.8.1
hsbt Aug 21, 2024
ea828c0
Skip failing tempfile library tests
soutaro Aug 21, 2024
b41d799
Reapply "[ruby/uri] Warn compatibility methods in RFC3986_PARSER"
hsbt Aug 21, 2024
2dc4ccb
Merge branch 'master' into dev/mmtk-overrides-default
wks Aug 21, 2024
e3f1412
Move root-scanning functions near their originals
wks Aug 22, 2024
09a760e
Revert rb_gc_mark_roots
wks Aug 22, 2024
a55df63
Include yjit roots
wks Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# Expand tabs
5b21e94bebed90180d8ff63dad03b8b948361089
c5e9af9c9d890578182a21e7b71b50334cd5579e
e63a2115f64433b21cb5dd67c5bf8b30f87ef293
712ac99e4d0384a941c80a9f48f62943ba7d97c0
d1474affa8e105bece209cc9d594bb0a989859e1

# Enable Style/StringLiterals cop for RubyGems/Bundler
d7ffd3fea402239b16833cc434404a7af82d44f3
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/launchable/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ runs:
${{
(github.repository == 'ruby/ruby' ||
(github.repository != 'ruby/ruby' && env.LAUNCHABLE_TOKEN)) &&
(matrix.test_task == 'check' || matrix.test_task == 'test-all')
(inputs.test-task == 'check' ||
inputs.test-task == 'test-all' ||
inputs.test-task == 'test')
}}

# Launchable CLI requires Python and Java.
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ jobs:
run: sudo rm /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb

- name: Initialize CodeQL
uses: github/codeql-action/init@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
uses: github/codeql-action/init@883d8588e56d1753a8a58c1c86e88976f0c23449 # v3.26.3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
uses: github/codeql-action/autobuild@883d8588e56d1753a8a58c1c86e88976f0c23449 # v3.26.3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
uses: github/codeql-action/analyze@883d8588e56d1753a8a58c1c86e88976f0c23449 # v3.26.3
with:
category: '/language:${{ matrix.language }}'
upload: False
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
continue-on-error: true

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
uses: github/codeql-action/upload-sarif@883d8588e56d1753a8a58c1c86e88976f0c23449 # v3.26.3
with:
sarif_file: sarif-results/${{ matrix.language }}.sarif
continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/prism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- test_task: test-bundler-parallel
run_opts: '--parser=prism'
testopts: '-v --tty=no'
timeout: 30
timeout: 50
- test_task: test-bundled-gems
run_opts: '--parser=prism'
testopts: '-v --tty=no'
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Start release workflow
on:
push:
tags:
- '*'

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Build release package
run: |
curl -L -X POST \
-H "Authorization: Bearer ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ruby/actions/dispatches \
-d '{"event_type": "${{ github.ref }}"}'
108 changes: 108 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Publish Ruby packages

on:
repository_dispatch:
types:
- release
workflow_dispatch:
inputs:
version:
description: 'Version of the Ruby package to release'
required: true
default: '3.3.4'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.4

- name: Store Ruby version
run: |
echo "RUBY_VERSION=${{ github.event.client_payload.version || github.event.inputs.version }}" >> $GITHUB_ENV

- name: Store ABI version
run: echo "ABI_VERSION=$(echo ${{ env.RUBY_VERSION }} | cut -d '.' -f 1-2)" >> $GITHUB_ENV

- name: Copy draft package `/tmp` to `/pub` directory
run: tool/release.sh ${{ env.RUBY_VERSION }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.FTP_R_L_O_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.FTP_R_L_O_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-2

- name: Purge URLs of release package
run: |
curl -X POST \
-H "Fastly-Key: ${{ secrets.FASTLY_PURGE_TOKEN }}" \
https://api.fastly.com/purge/cache.ruby-lang.org/pub/ruby/${{ env.ABI_VERSION }}/ruby-${{ env.RUBY_VERSION }}.tar.gz
curl -X POST \
-H "Fastly-Key: ${{ secrets.FASTLY_PURGE_TOKEN }}" \
https://api.fastly.com/purge/cache.ruby-lang.org/pub/ruby/${{ env.ABI_VERSION }}/ruby-${{ env.RUBY_VERSION }}.tar.xz
curl -X POST \
-H "Fastly-Key: ${{ secrets.FASTLY_PURGE_TOKEN }}" \
https://api.fastly.com/purge/cache.ruby-lang.org/pub/ruby/${{ env.ABI_VERSION }}/ruby-${{ env.RUBY_VERSION }}.zip

- name: Create a release on GitHub
run: |
RELEASE_TAG=$(echo v${{ env.RUBY_VERSION }} | sed 's/\./_/g')
echo $RELEASE_TAG
PREVIOUS_RELEASE_TAG=$(echo $RELEASE_TAG | awk 'BEGIN {FS="_"; OFS="_"}{ $NF=$NF-1; print }')
echo $PREVIOUS_RELEASE_TAG
tool/gen-github-release.rb $PREVIOUS_RELEASE_TAG $RELEASE_TAG --no-dry-run
env:
GITHUB_TOKEN: ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}

- name: Update versions index
run: |
curl -L -X POST \
-H "Authorization: Bearer ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ruby/actions/dispatches \
-d '{"event_type": "update_index"}'

- name: Set latest flag for Ruby 3.3
if: contains(${{ env.RUBY_VERSION }}, '3.3.')
run: |
echo "LATEST=true" >> $GITHUB_ENV

- name: Build and push Docker images
run: |
curl -L -X POST \
-H "Authorization: Bearer ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ruby/docker-images/dispatches \
-d '{"event_type": "build", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}", "arch": "amd64", "latest": "${{ env.LATEST }}"}}'

- name: Build snapcraft packages
run: |
curl -L -X POST \
-H "Authorization: Bearer ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ruby/snap.ruby/dispatches \
-d '{"event_type": "build", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}"}}'

- name: Update ruby-build definition
run: |
curl -L -X POST \
-H "Authorization: Bearer ${{ secrets.RUBY_BUILD_WORKFLOW_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/rbenv/ruby-build/dispatches \
-d '{"event_type": "update-ruby"}'

- name: Update all-ruby definition
run: |
curl -L -X POST \
-H "Authorization: Bearer ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ruby/all-ruby/dispatches \
-d '{"event_type": "update"}'
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: 'Upload to code-scanning'
uses: github/codeql-action/upload-sarif@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v2.1.27
uses: github/codeql-action/upload-sarif@883d8588e56d1753a8a58c1c86e88976f0c23449 # v2.1.27
with:
sarif_file: results.sarif
3 changes: 2 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
shared_gc_dir: '/home/runner/ruby_gc'
configure: '--with-shared-gc=/home/runner/ruby_gc'
- test_task: test-bundler-parallel
timeout: 50
- test_task: test-bundled-gems
- test_task: check
os: ubuntu-20.04
Expand Down Expand Up @@ -126,7 +127,7 @@ jobs:
$SETARCH make -s ${{ matrix.test_task }}
${TESTS:+TESTS="$TESTS"}
${{ !contains(matrix.test_task, 'bundle') && 'RUBYOPT=-w' || '' }}
timeout-minutes: 40
timeout-minutes: ${{ matrix.timeout || 40 }}
env:
RUBY_TESTOPTS: '-q --tty=no'
TEST_BUNDLED_GEMS_ALLOW_FAILURES: ''
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
- run: tar cfz ../install.tar.gz -C ../install .

- name: Upload artifacts
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: ruby-wasm-install
path: ${{ github.workspace }}/install.tar.gz
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Save Pull Request number
if: ${{ github.event_name == 'pull_request' }}
run: echo "${{ github.event.pull_request.number }}" >> ${{ github.workspace }}/github-pr-info.txt
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
if: ${{ github.event_name == 'pull_request' }}
with:
name: github-pr-info
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,23 @@ jobs:
- run: nmake test-spec
timeout-minutes: 10

- name: Set up Launchable
uses: ./.github/actions/launchable/setup
with:
os: windows-${{ matrix.vs < 2022 && '2019' || matrix.vs }}
test-task: test-all
# If we support a new test task, we need to change this test-opts.
test-opts: -j${{ env.TEST_JOBS || 4 }} --job-status=normal
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
builddir: build
srcdir: src
continue-on-error: true

- run: nmake test-all
env:
RUBY_TESTOPTS: -j${{ env.TEST_JOBS || 4 }} --job-status=normal
RUBY_TESTOPTS: >-
-j${{ env.TEST_JOBS || 4 }}
--job-status=normal
timeout-minutes: 60

- uses: ./.github/actions/slack
Expand Down
15 changes: 12 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ Note: We're only listing outstanding class updates.
* Range

* Range#size now raises TypeError if the range is not iterable. [[Misc #18984]]
* Range#step now consistently has a semantics of iterating by using `+` operator
for all types, not only numerics. [[Feature #18368]]

```ruby
(Time.utc(2022, 2, 24)..).step(24*60*60).take(3)
#=> [2022-02-24 00:00:00 UTC, 2022-02-25 00:00:00 UTC, 2022-02-26 00:00:00 UTC]
```

* RubyVM::AbstractSyntaxTree

Expand Down Expand Up @@ -79,17 +86,18 @@ The following default gems are updated.

The following bundled gems are updated.

* minitest 5.24.1
* minitest 5.25.1
* rake 13.2.1
* test-unit 3.6.2
* rexml 3.3.2
* rexml 3.3.5
* rss 0.3.1
* net-ftp 0.3.7
* net-imap 0.4.14
* net-smtp 0.5.0
* rbs 3.5.2
* typeprof 0.21.11
* debug 1.9.2
* racc 1.8.0
* racc 1.8.1

The following bundled gems are promoted from default gems.

Expand Down Expand Up @@ -154,6 +162,7 @@ See GitHub releases like [GitHub Releases of Logger](https://github.com/ruby/log
[Feature #15554]: https://bugs.ruby-lang.org/issues/15554
[Feature #16495]: https://bugs.ruby-lang.org/issues/16495
[Feature #18290]: https://bugs.ruby-lang.org/issues/18290
[Feature #18368]: https://bugs.ruby-lang.org/issues/18368
[Feature #18980]: https://bugs.ruby-lang.org/issues/18980
[Misc #18984]: https://bugs.ruby-lang.org/issues/18984
[Feature #19117]: https://bugs.ruby-lang.org/issues/19117
Expand Down
Loading
Loading