Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 940909

Summary: dev-ruby/typeprof-0.21.11 fails tests
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: 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 gentoo-dev 2024-10-05 16:29:39 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2024-10-05 16:29:40 UTC
Created attachment 904939 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-10-05 16:29:41 UTC
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):
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 14:28:02 UTC
/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)
Comment 4 Hans de Graaff gentoo-dev Security 2024-11-29 09:54:26 UTC
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.
Comment 5 Jonathan Lovelace 2025-01-26 17:48:30 UTC
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.