Summary: | dev-ruby/typeprof-0.21.11 fails tests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Ruby Team <ruby> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kingjon3377, paolo.pedroni |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
![]() 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. I just hit a resource-exhaustion issue (trying to run any command in another pty resulted in "bash: fork: retry: Resource temporarily unavailable" repeating until I interrupted it) that I think may be the same issue; this is a new machine with (according to 'free') 125Gi of memory and 256Gi of swap that I'm still in the midst of setting up (still in the chroot). Once I masked dev-ruby/rbs-3.6.1 and downgraded to rbs-3.5.3, the typeprof build (including tests) completed in short order without error. |