-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Ruby] test-debian-ruby fails with NoMethodError on test_read #48432
Copy link
Copy link
Closed
Description
Describe the bug, including details regarding any error messages, version, and platform.
The test-debian-ruby job has started failing with:
Error: test_read(TestFileReader::Binary):
NoMethodError: undefined method `each' for #<IO::Buffer 0x00007f75a00e9128+16 SLICE>
0x00000000 00 00 00 00 05 00 00 00 05 00 00 00 0a 00 00 00 ................
each(buffer_type, 0, @size + 1).
^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:135:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:133:in `test_read'
130:
131: def test_read
132: assert_equal([{"value" => ["Hello".b, nil, "World".b]}],
=> 133: read)
134: end
135: end
136:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::Boolean):
NoMethodError: undefined method `each' for #<IO::Buffer 0x00007f75a00e8118+1 SLICE>
0x00000000 01 .
@buffer.each(:U8, 0, n_bytes) do |offset, value|
^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/bitmap.rb:30:in `each'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:68:in `each'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:68:in `collect'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:68:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:61:in `test_read'
58:
59: def test_read
60: assert_equal([{"value" => [true, nil, false]}],
=> 61: read)
62: end
63: end
64:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::Date32):
NoMethodError: undefined method `values' for #<IO::Buffer 0x00007f75a00e3120+12 SLICE>
0x00000000 fe 43 00 00 00 00 00 00 cf 4f 00 00 .C.......O..
apply_validity(@values_buffer.values(:s32, 0, @size))
^^^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:122:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:122:in `test_read'
119:
120: def test_read
121: assert_equal([{"value" => [@date_2017_08_28, nil, @date_2025_12_09]}],
=> 122: read)
123: end
124: end
125:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:113:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::Float32):
NoMethodError: undefined method `values' for #<IO::Buffer 0x00007f75a00e2120+12 SLICE>
0x00000000 00 00 00 bf 00 00 00 00 00 00 00 3f ...........?
apply_validity(@values_buffer.values(:f32, 0, @size))
^^^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:103:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:94:in `test_read'
91:
92: def test_read
93: assert_equal([{"value" => [-0.5, nil, 0.5]}],
=> 94: read)
95: end
96: end
97:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::Float64):
NoMethodError: undefined method `values' for #<IO::Buffer 0x00007f759f87c120+24 SLICE>
0x00000000 00 00 00 00 00 00 e0 bf 00 00 00 00 00 00 00 00 ................
0x00000010 00 00 00 00 00 00 e0 3f .......?
apply_validity(@values_buffer.values(:f64, 0, @size))
^^^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:109:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:105:in `test_read'
102:
103: def test_read
104: assert_equal([{"value" => [-0.5, nil, 0.5]}],
=> 105: read)
106: end
107: end
108:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::Int8):
NoMethodError: undefined method `values' for #<IO::Buffer 0x00007f759f816128+3 SLICE>
0x00000000 80 00 7f ...
apply_validity(@values_buffer.values(:S8, 0, @size))
^^^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:84:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:72:in `test_read'
69:
70: def test_read
71: assert_equal([{"value" => [-128, nil, 127]}],
=> 72: read)
73: end
74: end
75:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::LargeBinary):
NoMethodError: undefined method `each' for #<IO::Buffer 0x00007f759f815128+32 SLICE>
0x00000000 00 00 00 00 00 00 00 00 05 00 00 00 00 00 00 00 ................
0x00000010 05 00 00 00 00 00 00 00 0a 00 00 00 00 00 00 00 ................
each(buffer_type, 0, @size + 1).
^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:135:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:144:in `test_read'
141:
142: def test_read
143: assert_equal([{"value" => ["Hello".b, nil, "World".b]}],
=> 144: read)
145: end
146: end
147:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::LargeList):
NoMethodError: undefined method `values' for #<IO::Buffer 0x00007f759f8141a8+5 SLICE>
0x00000000 80 7f ff 00 01 .....
apply_validity(@values_buffer.values(:S8, 0, @size))
^^^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:84:in `to_a'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:186:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:179:in `test_read'
176:
177: def test_read
178: assert_equal([{"value" => [[-128, 127], nil, [-1, 0, 1]]}],
=> 179: read)
180: end
181: end
182:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::List):
NoMethodError: undefined method `values' for #<IO::Buffer 0x00007f759f7c1198+5 SLICE>
0x00000000 80 7f ff 00 01 .....
apply_validity(@values_buffer.values(:S8, 0, @size))
^^^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:84:in `to_a'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:186:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:167:in `test_read'
164:
165: def test_read
166: assert_equal([{"value" => [[-128, 127], nil, [-1, 0, 1]]}],
=> 167: read)
168: end
169: end
170:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::Map):
NoMethodError: undefined method `each' for #<IO::Buffer 0x00007f759f7c0258+16 SLICE>
0x00000000 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 ................
each(buffer_type, 0, @size + 1).
^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:135:in `to_a'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:221:in `collect'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:221:in `to_a'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:186:in `to_a'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:230:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:225:in `test_read'
222: ],
223: },
224: ],
=> 225: read)
226: end
227: end
228: end
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::Struct):
NoMethodError: undefined method `values' for #<IO::Buffer 0x00007f759f7bf1d8+3 SLICE>
0x00000000 80 00 00 ...
apply_validity(@values_buffer.values(:S8, 0, @size))
^^^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:84:in `to_a'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:221:in `collect'
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:221:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:200:in `test_read'
197: ],
198: },
199: ],
=> 200: read)
201: end
202: end
203:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::UInt8):
NoMethodError: undefined method `values' for #<IO::Buffer 0x00007f759f7b9120+3 SLICE>
0x00000000 00 00 ff ...
apply_validity(@values_buffer.values(:U8, 0, @size))
^^^^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:90:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:83:in `test_read'
80:
81: def test_read
82: assert_equal([{"value" => [0, nil, 255]}],
=> 83: read)
84: end
85: end
86:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
===============================================================================
===============================================================================
Error: test_read(TestFileReader::UTF8):
NoMethodError: undefined method `each' for #<IO::Buffer 0x00007f759f7b8128+16 SLICE>
0x00000000 00 00 00 00 05 00 00 00 05 00 00 00 0a 00 00 00 ................
each(buffer_type, 0, @size + 1).
^^^^
/arrow/ruby/red-arrow-format/lib/arrow-format/array.rb:135:in `to_a'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:37:in `block (3 levels) in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `each'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:36:in `block (2 levels) in read'
<internal:kernel>:90:in `tap'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:35:in `block in read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `collect'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:34:in `read'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:155:in `test_read'
152:
153: def test_read
154: assert_equal([{"value" => ["Hello", nil, "World"]}],
=> 155: read)
156: end
157: end
158:
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:26:in `block (2 levels) in setup'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `open'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:24:in `block in setup'
/usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
/arrow/ruby/red-arrow-format/test/test-file-reader.rb:20:in `setup'
The following PR seems suspicious:
Component(s)
Ruby
Reactions are currently unavailable