https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-ruby/typeprof-0.21.11 fails tests. Discovered on: x86 (internal ref: tinderbox_x86) System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Created attachment 904939 [details] build.log build log and emerge --info
Error(s) that match a know pattern: NoMethodError: undefined method `[]' for nil:NilClass NoMethodError: undefined method `required_positionals' for #<RBS::Types::UntypedFunction:0xf4bdaafc @return_type=#<RBS::Types::Bases::Any:0xf4e821c4 @location=#<RBS::Location:1460 buffer=/usr/lib/ruby/gems/3.1.0/gems/rbs-3.6.1/core/basic_object.rbs, start=166:63, pos=6235...6242, children= source="untyped">>> Error: test: analyze const definition(TypeProf::LSPTest): Error: test: analyze instance variable definition(TypeProf::LSPTest): Error: test: analyze method callers(TypeProf::LSPTest): Error: test: analyze multiple rb files(TypeProf::CLITest): Error: test: analyze with incomplete rbs file(TypeProf::CLITest): Error: test: exclude untyped results(TypeProf::CLITest): Error: test: testbed/ao.rb(TypeProf::AOBenchTest):
/usr/lib/ruby/gems/3.1.0/gems/test-unit-3.6.2/lib/test/unit/testcase.rb:573:in `rescue in block (2 levels) in run': failed to allocate memory (NoMemoryError)
It looks like this only happens with rbs 3.6. There have been a lot of changes in upstream typeprof and I expect a new release shortly due to the new ruby release in december. Perhaps best to wait for that. We could consider limiting the rbs dependency on < 3.6.