Activity
From 04/05/2022 to 04/11/2022
04/11/2022
-
10:14 PM Misc #18689 (Closed): Windows mswin builds, Actions, OpenSSL 3
- Sorry for the long post and the md formatting...
With the release of the Actions windows-2022 image, MSYS2 build tools are no longer pre-installed on the image. Given that updating MSYS's msys and mingw64/ucrt64 tools can take quite ... -
08:23 PM Revision de5aa98f (git): Correct whitespace in array.c (#5791)
-
06:49 PM Revision 7d709ceb (git): Specify which core classes are convertible (#5790)
-
05:28 PM Revision 5f1f8c24 (git): Fix fake.rb RUBY_DESCRIPTION faking for JITs
- Previously, `make test-spec` was not printing the description with +YJIT
even when YJIT was indeed enabled. It was confusing on CI. `fake.rb` was
changing the `RUBY_DESCRIPTION` constant incorrectly.
I suppose `make test-spec` mostly ne... -
05:01 PM Misc #18652: DevMeeting-2022-04-21
- * [Bug #18628] Link contributing is broken (jeremyevans0)
* Also affects #18665. Problem is that ruby uses the --page-dir rdoc option.
* Any documentation generation that does not use the --page-dir rdoc option has broken links.
... - 03:17 PM Revision 492349ab (git): * 2022-04-12 [ci skip]
-
03:17 PM Revision ebb43782 (git): [ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding
- This allows for the ability to opt-in to a method to set the
encoding of response bodies. By setting the accessor to a String
or Encoding instance, it will use the specified encoding.
Setting the value of true will try to detect the enc... -
02:15 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
- Thanks for the ping. I've had some vacation recently. Looks like I missed the first preview release. I'll be able to start looking at this shortly.
-
05:25 AM Bug #18658: Need openssl 3 support for Ubuntu 22.04 (Ruby 2.7.x and 3.0.x)
- FYI: https://bugs.launchpad.net/ubuntu/+source/ruby2.7/+bug/1946190
Ubuntu backported openssl-3.0.0 for their ruby3.0 package.
-
05:20 AM Bug #18658: Need openssl 3 support for Ubuntu 22.04 (Ruby 2.7.x and 3.0.x)
- @schneems How about manually downloading and installing openssl-3.0.0.gem?
```
wget https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.3.tar.gz
tar xf ruby-3.0.3.tar.gz
cd ruby-3.0.3
./configure --prefix=/path/to ...
make
make install
wg... -
05:21 AM Misc #18687 (Closed): [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- I will mark this to closed because the basic feature works now.
- 02:31 AM Revision 4bd38e81 (git): * 2022-04-11 [ci skip]
-
01:05 AM Revision 44a911a2 (git): test/ruby/test_keyword.rb: Prevent warning: assigned but unused variable
04/10/2022
- 01:34 PM Revision abe2bb1d (git): * 2022-04-10 [ci skip]
-
01:33 PM Revision c789bdd3 (git): [DOC] Enhanced RDoc for Array intro (#5781)
- This covers the first few sections of the class doc for Array.
-
06:26 AM Feature #17849: Fix Timeout.timeout so that it can be used in threaded Web servers
- The handling of timeouts is [documented][1], but that only shows it with a `handle_interrupt` block set up around everything, not under `ensure`. In the examples shown here, can `ensure;begin` or `ensure;Thread.handle_interrupt` be consi...
-
05:10 AM Bug #18688 (Rejected): when array's default value is empty hash adding a hash key value changes all array elements
- This is expected behavior and not a bug. As you mentioned, you want to use the block form if you want a new object for each default value.
-
04:38 AM Bug #18688 (Rejected): when array's default value is empty hash adding a hash key value changes all array elements
- ```ruby
ah = Array.new(3, {})
ah[1][:foo] = 'bar'
p ah # [{:foo=>"bar"}, {:foo=>"bar"}, {:foo=>"bar"}]
```
This is not expected result. The expected result is `[{}, {:foo=>"bar"}, {}]`.
Alternatively, below code works as expecte...
04/09/2022
-
08:43 AM Revision 5b467400 (git): [DOC]Some link prefix replace
-
08:22 AM Misc #18687: [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- I fixed the issue of mailing-list integration.
-
06:39 AM Misc #18687: [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- I found the mailing-list integration is broken now.
-
06:06 AM Misc #18687 (Closed): [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- Today, I migrated this tracker Redmine 4.2 to 5.0.
It has the following major changes.
* Based on Rails 6.1.
* Allowed username mention like `@hsbt` with autocomplete.
* Support CommonMaker for Markdown formatting.
Release not...
04/08/2022
- 07:25 PM Revision 83aeec8a (git): * 2022-04-09 [ci skip]
-
07:25 PM Revision 70415071 (git): Fix some RDoc links (#5778)
-
06:52 PM Bug #18686 (Closed): Regexp supporting unexpected age properties in Ruby < 3.2
- I've encountered this on GitHub Actions running Ubuntu 20. I cannot reproduce it locally on Darwin/arm64.
It is a weird bug and far from critical, but it might indicate some underlying problem.
I've found that ...
- all Ruby ver... -
12:30 PM Revision c77a31df (git): call `const_added` after `autoload`
- When calling `const_added` while process in `autoload`, it can
cause synchronization issue because of a thread swithcing.
http://ci.rvm.jp/logfiles/brlog.trunk.20220407-152213#L489
```
1)
Module#autoload (concurrently) raises a LoadErr... -
10:52 AM Feature #18685: Enumerator.product: Cartesian product of enumerables
- Isn't it significantly slower than doing it manually due to all these extra block and method calls etc in between?
-
07:20 AM Feature #18685 (Closed): Enumerator.product: Cartesian product of enumerables
- I'd like to add a new Enumerator class method for generating the Cartesian product of given enumerators.
A product here does not mean an accumulated array of arrays, but an enumerator to enumerate all combinations.
```ruby
product =... -
04:31 AM Revision 798e2163 (git): sync `vm->constant_cache`
- On multi-ractors, `vm->constant_cache` (and so on) can be accessed
in parallel so we need to synchronize the accesses to them.
http://rubyci.s3.amazonaws.com/centos7/ruby-master/log/20220407T213003Z.log.html.gz#btest
04/07/2022
-
07:29 PM Revision 9ca3d537 (git): All-in-one RDoc for class String (#5777)
- 04:49 PM Revision a7d7ee90 (git): * 2022-04-08 [ci skip]
-
04:49 PM Revision 16e08d53 (git): Fix strict aliasing issue
- `rb_id_table_lookup()` writes to a `VALUE`, which is definitely a distinct
type from `st_table *`. With LTO, the compiler is allowed by N1256
§6.5p7 to remove the output parameter write via type-based alias
analysis.
See also: a0a8f2abf53 -
04:12 PM Bug #18684: Support for out of source build
- Please precisely write what you did. The following process works well for me.
```
$ tar xf ruby-3.1.1.tar.gz
$ mkdir ruby-build
$ cd ruby-build
$ ../ruby-3.1.1/configure --prefix=$PWD/local
$ make
```
I guess you first did "i... -
11:47 AM Bug #18684 (Closed): Support for out of source build
- Trying out of source build, it fails:
~~~
... snip ...
compiling ../ruby-3.1.1/vm_sync.c
compiling ../ruby-3.1.1/vm_trace.c
compiling ../ruby-3.1.1/yjit.c
assembling ../ruby-3.1.1/coroutine/amd64/Context.S
Assembler messages:
... -
03:49 PM Bug #18680: The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
- Yea. The #atime method has "-> time" ... whatever is decided, the four methods: #atime, #ctime, #mtime, and #birthtime should all have the same doc.
-
07:55 AM Bug #18680: The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
- I guess that "aTime" means "a Time" or "an instance of Time". There is no strict rule for writing rdoc AFAIK, but I don't think it is very common to write a class constant name to represent a return instance type. I wonder if `-> time` i...
- 01:52 PM Revision 389723d8 (git): * 2022-04-07 [ci skip]
-
01:38 PM Revision 697eed63 (git): [ruby/psych] Update autoconf files bundled with yaml-2.5
- https://github.com/ruby/psych/commit/e28f17ac18
-
11:03 AM Bug #18681: crashes when built with AddressSanitizer (clang build)
- mame (Yusuke Endoh) wrote in #note-2:
> I couldn't reproduce the issue. Can you build it with a simple configuration, i.e., without ASAN and without `-j45`?
Yes, no problem with clear build.
Fixed with params:
``` shell
export ASAN_OPTI... -
08:20 AM Bug #18681: crashes when built with AddressSanitizer (clang build)
- I couldn't reproduce the issue. Can you build it with a simple configuration, i.e., without ASAN and without `-j45`?
-
10:19 AM Revision 7b1ece9b (git): Get rid of type-punning pointer casts
-
10:07 AM Revision 9e58c3c5 (git): Get rid of type aliasing
-
09:01 AM Revision 23090cf6 (git): Suppress an unused function
-
07:47 AM Revision f2377e4c (git): Fix a typo [ci skip]
-
07:21 AM Bug #18679 (Rejected): Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- It seems clear that this isn't a Ruby bug. So I'm closing this issue. But please feel free to continue discussing the solution here if that helps.
-
07:10 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- @taf2, in that case it's indeed a `$LANG` problem.
-
06:03 AM Revision 21f006f5 (git): Retrieve previously configured macros also other than `extensions`
-
03:19 AM Revision 5af507f5 (git): Update `heap_pages_deferred_final` atomically
-
02:15 AM Bug #18487 (Closed): Kernel#binding behaves differently depending on implementation language of items on the stack
- Applied in changeset commit:git|0b091fdac6ceb33b7379ceddc9a49a79d0e158b2.
----------
Raise RuntimeError if Kernel#binding is called from a non-Ruby frame
Check whether the current or previous frame is a Ruby frame in
call_trace_func an... -
02:14 AM Revision 0b091fda (git): Raise RuntimeError if Kernel#binding is called from a non-Ruby frame
- Check whether the current or previous frame is a Ruby frame in
call_trace_func and rb_tracearg_binding before attempting to
create a binding for the frame.
Fixes [Bug #18487]
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> -
01:37 AM Revision bff12e1a (git): [DOC] Fix comment links
-
12:47 AM Revision 5c1b76a3 (git): Install built gem extension binaries
-
12:47 AM Revision bb0a22a8 (git): Obey spec file locations to rubygems
-
12:47 AM Revision d7afaf21 (git): Move the target directory of bundled gems like as rubygems
-
12:47 AM Revision 17ce0b9b (git): Retrieve configured gems info
-
12:47 AM Revision db3d111c (git): Bundled gems are expanded under `.bundle/gems` now
-
12:46 AM Revision 3607657e (git): [DOC] Fix linux kernel commit links
04/06/2022
-
10:39 PM Revision 21c8b9eb (git): Copyedit parallel test harness crash message
- Mea culpa.
Co-authored-by: Kaíque Kandy Koga <kaiquekandykoga@gmail.com> -
10:22 PM Revision 16e6d7d1 (git): [rubygems/rubygems] Set `@tempdir` as early as possible
- We have seen some errors during test `setup` before `@tempdir` is
actually set, in particular, when instantiating `Gem::MockUI` which in
turn requires `stringio`. In this case, the `teardown` method will also
produce an error because it ... -
10:11 PM Revision 399ef463 (git): Copyedit parallel test harness crash message
- 08:47 PM Revision 86411f69 (git): * 2022-04-07 [ci skip]
-
08:47 PM Revision 717b20ee (git): [DOC] Enhanced RDoc for string slices (#5769)
- Creates file doc/string/slices.rdoc that the string slicing methods can link to.
-
07:07 PM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- @byroot thank you! that was it on intel: Encoding.default_internal
=> #<Encoding:UTF-8>
On arm:
Encoding.default_internal
=> nil -
11:54 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- My bet would be the locale is not set properly on the arm machine.
`locale` probably shows `C` or `POSIX` and many things don't work with that.
You probably need `export LANG=en_US.UTF-8` or so.
I think CRuby should warn in that cas... -
07:25 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- You might want to look at wether `Encoding.default_internal` and `Encoding.default_external` matches on your two platforms.
-
05:45 PM Feature #18683: Allow to create hashes with a specific capacity.
- That's a good point.
I suppose it could be worked around with either:
- A positional argument: `Hash.new(nil, capacity).
- An alternative constructor (e.g. `Hash.new_with_capcity`).
- And instance setter `h = {}; h.capacity... -
04:47 PM Feature #18683: Allow to create hashes with a specific capacity.
- This would break backwards compatibility:
```ruby
Hash.new(capacity: 1000)[nil]
# => {:capacity=>1000}
``` -
10:55 AM Feature #18683 (Closed): Allow to create hashes with a specific capacity.
- Various protocol parsers such as Redis `RESP3` or `msgpack`, have to create hashes, and they know the size in advance.
For efficiency, it would be preferable if they could directly allocate a Hash of the necessary size, so that large ha... - 02:57 PM Revision 1f3448f5 (git): Update bundled gems list at 8197ae35f90aa1c260b5782c08827d [ci skip]
-
02:57 PM Revision 8197ae35 (git): Bundle RBS 2.3.2 (#5762)
-
09:22 AM Bug #18682 (Closed): doc: raise also accepts instances
- I think it is the case of "another object that returns an Exception object hen sent an exception message".
In other words, `raise RuntimeError.new("foo")` raises `RuntimeError.new("foo").exception`, which is `#<RuntimeError: foo>`.
`... -
09:03 AM Bug #18682 (Closed): doc: raise also accepts instances
- https://ruby-doc.org/core-3.1.1/Kernel.html#method-i-raise says
```
Otherwise, the first parameter should be an Exception class (or another object that returns an Exception object when sent an exception message).
```
Well, it can... -
08:41 AM Bug #18681 (Closed): crashes when built with AddressSanitizer (clang build)
- Have the error-message in log then build ruby interpreter:
``` shell
building .ext/include/x86_64-linux/rb_mjit_min_header-2.7.5.h
./miniruby -I./lib -I. -I.ext/common ./tool/transform_mjit_header.rb "/usr/bin/clang -fsanitize=addre... -
02:59 AM Revision 8da0b68a (git): Fix a typo [ci skip]
04/05/2022
- 11:55 PM Revision c59488a8 (git): [rubygems/rubygems] Use `ask_yes_no`
- https://github.com/rubygems/rubygems/commit/1d38e167fa
- 11:54 PM Revision 37a19f7f (git): [rubygems/rubygems] Extract default_host method
- https://github.com/rubygems/rubygems/commit/6e10e75574
- 11:54 PM Revision b75b67f1 (git): [rubygems/rubygems] Use YAML
- https://github.com/rubygems/rubygems/commit/6122e8cac5
- 11:54 PM Revision bb3ecdba (git): [rubygems/rubygems] Accomodate gem hosts without profile/me endpoint
- https://github.com/rubygems/rubygems/commit/31b6dcf5d3
- 11:54 PM Revision 75083704 (git): [rubygems/rubygems] Update endpoint
- https://github.com/rubygems/rubygems/commit/a5a7b3ec96
- 11:54 PM Revision ec09b2db (git): [rubygems/rubygems] Remove whitespace
- https://github.com/rubygems/rubygems/commit/08c2d88137
- 11:54 PM Revision 925d73b3 (git): [rubygems/rubygems] Make changes <2.6 compatible
- Multiple params to merge was not introduced until Ruby 2.6, so this
merges the two additional params together first and then merges that
with the request body
https://github.com/rubygems/rubygems/commit/870f7e9a1c - 11:54 PM Revision 8650811b (git): [rubygems/rubygems] Fix lint
- https://github.com/rubygems/rubygems/commit/a68bfde18e
- 11:54 PM Revision 7bb6449f (git): [rubygems/rubygems] Make mfa the default
- https://github.com/rubygems/rubygems/commit/0b636f6902
- 11:54 PM Revision 4ae3b78c (git): [rubygems/rubygems] Correct mfa level name
- https://github.com/rubygems/rubygems/commit/a002e351ae
- 11:54 PM Revision b3f1b3cc (git): [rubygems/rubygems] Enable mfa on specific keys during gem signin
- https://github.com/rubygems/rubygems/commit/e787f7f655
-
11:29 PM Bug #18487: Kernel#binding behaves differently depending on implementation language of items on the stack
- The previous commit failed with VM assertion error when compiling with `-DRUBY_DEBUG=1 -DRGENGC_CHECK_MODE=2`. I've found the issue was due to TracePoint/set_trace_func creating bindings for ifuncs. I've submitted a pull request to fix...
-
10:57 PM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- First, if the error says Encoding::UndefinedConversionError, then I think it's not related to iconv, because iconv only gets used when you explicitly say so. Ruby has its own internal character conversion code.
Second, it's very clear... -
08:21 PM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- I found some additional insight... on Intel we can puts File.read("this-file-contains-utf8") # and no crash
On arm in some cases when we do
puts File.read("this-file-contains-uf8") # it crashes with an encoding error ...
Adding ... -
08:02 PM Bug #18679 (Rejected): Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- We are facing an issue only when running ruby on arm from amazon linux. In some cases when we puts a string we'll receive the above error message. However when we run the same data through puts on Intel we do not receive this error. ...
-
08:37 PM Revision 8ee4a82e (git): RubyVM.stat constant cache metrics (#5766)
- Before the new constant cache behavior, caches were invalidated by a
single global variable. You could inspect the value of this variable
with RubyVM.stat(:global_constant_state). This was mostly useful to
verify the behavior of the VM o... -
08:08 PM Bug #18680 (Closed): The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
- I think it returns Time (not aTime). This is true for three of the four "time" methods.
I would not mind making a pull request if this would be helpful.
- 04:58 PM Revision 5571ca3a (git): * 2022-04-06 [ci skip]
-
04:57 PM Revision 2304cfa4 (git): Document MakeMakefile#append_cflags
- This method is at least 7 years old and is widely used in the wild.
Since we need to support it, let's document it to make it discoverable.
Add docs and move it out of the `# :stopdoc:` zone. -
02:36 PM Bug #18673 (Closed): Anonymous block forwarding fails when combined with keyword arguments
- Applied in changeset commit:git|3bb70a6924ddd83f90b508b5bbc4d5629b8a41c6.
----------
Fix using anonymous block in method accepting explicit keywords
Record block ID before vtable_pop, so the incorrect one doesn't
override it.
Fixes [B... -
02:35 PM Revision 3bb70a69 (git): Fix using anonymous block in method accepting explicit keywords
- Record block ID before vtable_pop, so the incorrect one doesn't
override it.
Fixes [Bug #18673] -
01:35 PM Revision 97ce0309 (git): Load fake.rb at `BTESTRUBY`
- So that `mkmf` checks work from `make run`, and also remove
duplicate `$(MINIRUBYOPT)` which is used in `$(MINIRUBY)`. -
10:23 AM Revision d9c6f8d4 (git): Try to fix NoMethodError on slow environments
- ```
1) Failure:
TestParallel::TestParallel#test_hungup [/home/user/ruby/tool/test/testunit/test_parallel.rb:215]:
Expected /^Retrying hung up testcases\.+$/ to match "Run options: \n" +
" --seed=43403\n" +
" --ruby\n" +
" \"./miniru... -
09:55 AM Bug #18625 (Closed): ruby2_keywords does not unmark the hash if the receiving method has a *rest parameter
-
09:52 AM Bug #18625: ruby2_keywords does not unmark the hash if the receiving method has a *rest parameter
- I merged https://github.com/ruby/ruby/pull/5684, which is Jeremy's PR + a needed update of rspec-mocks + [a NEWS entry](https://github.com/eregon/ruby/blob/3d0aac928f7592838deff2cb84b57f0678c348cc/NEWS.md).
This is the only way to reall... -
09:54 AM Revision 57300598 (git): Give some tips on how to find the missing ruby2_keywords
-
09:42 AM Revision d3f659d3 (git): Add NEWS entry for Bug #18625 to help adding ruby2_keywords in the missing places
-
09:42 AM Revision 4f25207e (git): Use latest RSpec to get rspec-mocks ruby2_keywords fix
-
09:42 AM Revision 752c3dad (git): Unflag a splatted flagged hash if the method doesn't use ruby2_keywords
- For a method such as:
def foo(*callee_args) end
If this method is called with a flagged hash (created by a method
flagged with ruby2_keywords), this previously passed the hash
through without modification. With this change, it acts ... -
05:31 AM Revision 5e7ebc7e (git): Ignore yaml source
-
05:30 AM Revision 839577d8 (git): Removed mswin patch for zlib-1.2.11
-
05:08 AM Revision 1ac839dc (git): Apply timescale configuration for tests of Regexp.timeout
-
01:24 AM Bug #18678 (Closed): Crash on Mac - vm_call0_cfunc_with_frame
- Somehow referencing a variable that didn't exist caused a crash. Happened once, I haven't been able to replicate.
```
dberger:~/Programming/Ruby >irb
irb(main):001:0> a = %w[one two three]
=> ["one", "two", "three"]
irb(main):002:...