Skip to content

Prevent a warning: the block passed to 'map_type_name' .. may be ignored #6021

Prevent a warning: the block passed to 'map_type_name' .. may be ignored

Prevent a warning: the block passed to 'map_type_name' .. may be ignored #6021

Triggered via pull request January 21, 2025 01:05
Status Failure
Total duration 3m 5s
Artifacts

ruby.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

24 errors and 12 warnings
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L17
Lint/Syntax: module definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L18
Lint/Syntax: unexpected token tRPAREN (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L23
Lint/Syntax: module definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L41
Lint/Syntax: module definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L42
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L107
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L108
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L109
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L119
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (3.4, rubocop validate test_doc build test_generate_stdlib raap): lib/rbs/types.rb#L120
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
Error: test/stdlib/Net_HTTP_test.rb#L202
Zlib::DataError: incorrect header check /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:700:in 'Zlib::Inflate#inflate' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:700:in 'block in Net::HTTPResponse::Inflater#inflate_adapter' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:535:in 'Net::ReadAdapter#call_block' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:526:in 'Net::ReadAdapter#<<' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:168:in 'Net::BufferedIO#read' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:723:in 'Net::HTTPResponse::Inflater#read' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:631:in 'Net::HTTPResponse#read_chunked' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:595:in 'block in Net::HTTPResponse#read_body_0' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:570:in 'Net::HTTPResponse#inflater' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:593:in 'Net::HTTPResponse#read_body_0' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:363:in 'Net::HTTPResponse#read_body' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2393:in 'block in Net::HTTP#send_entity' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2427:in 'block in Net::HTTP#transport_request' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:320:in 'Net::HTTPResponse#reading_body' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2424:in 'Net::HTTP#transport_request' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2378:in 'Net::HTTP#request' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2392:in 'Net::HTTP#send_entity' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2069:in 'Net::HTTP#patch' /home/runner/work/rbs/rbs/lib/rbs/unit_test/spy.rb:88:in 'block (2 levels) in wrapped_object' /home/runner/work/rbs/rbs/lib/rbs/unit_test/type_assertions.rb:152:in 'block in RBS::UnitTest::TypeAssertions#send_setup' /home/runner/work/rbs/rbs/lib/rbs/unit_test/type_assertions.rb:150:in 'Kernel#catch' /home/runner/work/rbs/rbs/lib/rbs/unit_test/type_assertions.rb:150:in 'RBS::UnitTest::TypeAssertions#send_setup' /home/runner/work/rbs/rbs/lib/rbs/unit_test/type_assertions.rb:172:in 'RBS::UnitTest::TypeAssertions#assert_send_type' test/stdlib/Net_HTTP_test.rb:202:in 'NetInstanceTest#test_http_verbs'
test (3.4, stdlib_test, --enable-frozen-string-literal)
Process completed with exit code 1.
test (head, stdlib_test rubocop): lib/rbs/types.rb#L17
Lint/Syntax: module definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L18
Lint/Syntax: unexpected token tRPAREN (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L23
Lint/Syntax: module definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L41
Lint/Syntax: module definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L42
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L107
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L108
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L109
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L119
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
test (head, stdlib_test rubocop): lib/rbs/types.rb#L120
Lint/Syntax: class definition in method body (Using Ruby 3.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
Error: test/stdlib/Net_HTTP_test.rb#L270
Zlib::DataError: incorrect header check /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:700:in 'Zlib::Inflate#inflate' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:700:in 'block in Net::HTTPResponse::Inflater#inflate_adapter' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:535:in 'Net::ReadAdapter#call_block' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:526:in 'Net::ReadAdapter#<<' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:162:in 'Net::BufferedIO#read' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:723:in 'Net::HTTPResponse::Inflater#read' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:631:in 'Net::HTTPResponse#read_chunked' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:595:in 'block in Net::HTTPResponse#read_body_0' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:570:in 'Net::HTTPResponse#inflater' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:593:in 'Net::HTTPResponse#read_body_0' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:363:in 'Net::HTTPResponse#read_body' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:401:in 'Net::HTTPResponse#body' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http/response.rb:321:in 'Net::HTTPResponse#reading_body' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2424:in 'Net::HTTP#transport_request' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2378:in 'Net::HTTP#request' /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/net/http.rb:2303:in 'Net::HTTP#request_put' /home/runner/work/rbs/rbs/lib/rbs/unit_test/spy.rb:88:in 'block (2 levels) in wrapped_object' /home/runner/work/rbs/rbs/lib/rbs/unit_test/type_assertions.rb:152:in 'block in RBS::UnitTest::TypeAssertions#send_setup' /home/runner/work/rbs/rbs/lib/rbs/unit_test/type_assertions.rb:150:in 'Kernel#catch' /home/runner/work/rbs/rbs/lib/rbs/unit_test/type_assertions.rb:150:in 'RBS::UnitTest::TypeAssertions#send_setup' /home/runner/work/rbs/rbs/lib/rbs/unit_test/type_assertions.rb:172:in 'RBS::UnitTest::TypeAssertions#assert_send_type' test/stdlib/Net_HTTP_test.rb:270:in 'NetInstanceTest#test_http_verbs'
test (3.4, stdlib_test)
Process completed with exit code 1.
test (3.4, typecheck_test)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.4, rubocop validate test_doc build test_generate_stdlib raap)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.4, stdlib_test, --enable-frozen-string-literal)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (head, stdlib_test rubocop)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.2, test)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.1, test)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.4, stdlib_test)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (head, test)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.4, test)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.4, test, --enable-frozen-string-literal)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.3, test)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (3.4, lexer templates compile confirm_lexer confirm_templates)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636