Bug #8408

minitest's test may fail randomly

Added by Yui NARUSE 11 months ago. Updated 10 months ago.

[ruby-core:54997]
Status:Closed
Priority:Normal
Assignee:Ryan Davis
Category:lib
Target version:2.1.0
ruby -v:ruby 2.1.0dev (2013-05-15 trunk 40752) [x86_64-freebsd9.1] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

test/minitest/testminitestspec.rb may fail as following:
http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20130515T013301Z.log.html.gz

9) Failure:
TestMeta#teststructuresubclasses [/home/chkbuild/build/20130515T013301Z/ruby/test/minitest/testminitestspec.rb:751]:
Expected #<#Class:0x002abd3bcfd7f8:0x002abd3bf000f0 @name=nil, @io=nil, @passed=nil> (top-level thingy::inner) to respond to #xyz.

10) Failure:
TestMeta#testname [/home/chkbuild/build/20130515T013301Z/ruby/test/minitest/testminitest_spec.rb:668]:
Expected: "ExampleA"
Actual: "top-level thingy::ExampleA"

11) Failure:
TestMeta#teststructure [/home/chkbuild/build/20130515T013301Z/ruby/test/minitest/testminitest_spec.rb:687]:
--- expected
+++ actual
@@ -1 +1 @@
-"top-level thingy"
+"top-level thingy::top-level thingy"

12) Failure:
TestMeta#testname2 [/home/chkbuild/build/20130515T013301Z/ruby/test/minitest/testminitest_spec.rb:680]:
Expected: "ExampleA"
Actual: "top-level thingy::ExampleA"

It seems because of minitest's bug.
minitest's parallelize_me! make tests parallell but its describe method uses single stack.

History

#1 Updated by Yui NARUSE 10 months ago

  • Priority changed from Normal to High

#2 Updated by Ryan Davis 10 months ago

  • Status changed from Assigned to Closed
  • Priority changed from High to Normal

This is not high priority.

This should be fixed with import of 4.7.5.

#3 Updated by Yui NARUSE 10 months ago

zenspider (Ryan Davis) wrote:

This is not high priority.

This should be fixed with import of 4.7.5.

Random test failure disturbs CI.
If you think such bug is low priority, this is not so low.
It is why I changed the priority.

Anyway thank you for r41553.

Also available in: Atom PDF