[MacRuby] #1398: "rake spec:ci" fails more specs.
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Since https://github.com/MacRuby/MacRuby/commit/2e8905bec9bf1100cb3a3e622b9eacf845... , "rake spec:ci" fails more specs. {{{ $ rake spec:ci rm -rf rubyspec_temp ./mspec/bin/mspec ci -B ./spec/macruby.mspec :full MacRuby 0.11 (ruby 1.9.2) [universal-darwin11.0, x86_64] ...........*** Dispatch block exited prematurely because of an uncaught exception: /Users/watson/src/macruby- master/mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with': Expected true to equal false (SpecExpectationNotMetError) from /Users/watson/src/macruby- master/mspec/lib/mspec/matchers/base.rb:9:in `==' from /Users/watson/src/macruby- master/spec/macruby/core/gcd/semaphore_spec.rb:62:in `block' ................macruby(1668,0x1056ae000) malloc: *** error for object 0x7fff90fd79e8: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug ..........E...........................................................................................E.....E........................................................................................................................................................................................................................................E...................E...E.......................................................................................................................................................................................................E.EE.......E.E...E.EEE.E.E..EEE..E.EEE.....F.E....EEE.E.......E......E..F..E...E.EE.E.F..E..EEE..EEE....E..EE..E..E..EEE........................................................................................................................................................................................................................................................F..........E...................E................................ GC: -finalize resulted in an exception (0x406f21d20) being thrown, break on objc_exception_during_finalize_error to debug undefined method `message' for false:FalseClass (NoMethodError) .........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E........................................................................................................................................................... 1) An exception occurred during: loading /Users/watson/src/macruby- master/spec/macruby/library/rake/compiletask_spec.rb ERROR LoadError: no such file to load -- /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/bin/macrubyc /Users/watson/src/macruby-master/lib/rake/compiletask.rb:9:in `<main>' /Users/watson/src/macruby- master/spec/macruby/library/rake/compiletask_spec.rb:2:in `<main>' 2) An exception occurred during: after :each ARGF.gets modifies the files when in place edit mode is on ERROR ArgumentError: wrong number of arguments (4 for 2) /Users/watson/src/macruby- master/spec/frozen/core/argf/shared/gets.rb:77:in `block' /Users/watson/src/macruby-master/spec/frozen/core/argf/gets_spec.rb:8:in `<main>' 3) An exception occurred during: after :each ARGF.gets modifies and backups two files when in place edit mode is on ERROR ArgumentError: wrong number of arguments (4 for 2) /Users/watson/src/macruby- master/spec/frozen/core/argf/shared/gets.rb:77:in `block' /Users/watson/src/macruby-master/spec/frozen/core/argf/gets_spec.rb:8:in `<main>' 4) An exception occurred during: after :each ARGF.readline modifies the files when in place edit mode is on ERROR ArgumentError: wrong number of arguments (4 for 2) /Users/watson/src/macruby- master/spec/frozen/core/argf/shared/gets.rb:77:in `block' /Users/watson/src/macruby- master/spec/frozen/core/argf/readline_spec.rb:8:in `<main>' 5) An exception occurred during: after :each ARGF.readline modifies and backups two files when in place edit mode is on ERROR ArgumentError: wrong number of arguments (4 for 2) /Users/watson/src/macruby- master/spec/frozen/core/argf/shared/gets.rb:77:in `block' /Users/watson/src/macruby- master/spec/frozen/core/argf/readline_spec.rb:8:in `<main>' ---- snip ---- 239) An exception occurred during: after :each YAML.load works with block sequence shortcuts ERROR Errno::ENOENT: No such file or directory - /Users/watson/src/macruby- master/rubyspec_temp/692-yaml_test_file /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:7:in `block' /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:5:in `<main>' 240) An exception occurred during: after :each YAML.load works on complex keys ERROR Errno::ENOENT: No such file or directory - /Users/watson/src/macruby- master/rubyspec_temp/692-yaml_test_file /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:7:in `block' /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:5:in `<main>' 241) An exception occurred during: after :each YAML.load loads a symbol key that contains spaces ERROR Errno::ENOENT: No such file or directory - /Users/watson/src/macruby- master/rubyspec_temp/692-yaml_test_file /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:7:in `block' /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:5:in `<main>' 242) An exception occurred during: after :each YAML.load with iso8601 timestamp computes the microseconds ERROR Errno::ENOENT: No such file or directory - /Users/watson/src/macruby- master/rubyspec_temp/692-yaml_test_file /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:7:in `block' /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:5:in `<main>' 243) An exception occurred during: after :each YAML.load with iso8601 timestamp rounds values smaller than 1 usec to 0 ERROR Errno::ENOENT: No such file or directory - /Users/watson/src/macruby- master/rubyspec_temp/692-yaml_test_file /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:7:in `block' /Users/watson/src/macruby- master/spec/frozen/library/yaml/load_spec.rb:5:in `<main>' 244) Zlib::GzipFile#close finishes the stream and closes the io FAILED Expected "\x00\x00\x00\x00\x00\x00\x00\x00\x00" to equal "\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00" /Users/watson/src/macruby- master/spec/frozen/library/zlib/gzipfile/close_spec.rb:20:in `block' /Users/watson/src/macruby- master/spec/frozen/library/zlib/gzipfile/close_spec.rb:6:in `<main>' 245) GzipWriter#write writes some compressed data FAILED Expected "4261MLJNI\x05\x00\x9D\x05\x00$\n\x00\x00\x00" to equal "34261MLJNI\x05\x00\x9D\x05\x00$\n\x00\x00\x00" /Users/watson/src/macruby- master/spec/frozen/library/zlib/gzipwriter/write_spec.rb:20:in `block' /Users/watson/src/macruby- master/spec/frozen/library/zlib/gzipwriter/write_spec.rb:6:in `<main>' Finished in 253.002491 seconds 3337 files, 14562 examples, 56834 expectations, 43 failures, 202 errors ----------------------------------------------------- The rubyspec temp directory is not empty. Ensure that all specs are cleaning up temporary files. ----------------------------------------------------- rake aborted! Command failed with status (1): [./mspec/bin/mspec ci -B ./spec/macruby.msp...] Tasks: TOP => spec:ci (See full trace by running task with --trace) }}} you can see all logs in https://gist.github.com/1255588 -- Ticket URL: <http://www.macruby.org/trac/ticket/1398> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by mrada@…): This seems strange, I wonder what my tests did that could cause such mass test failure... -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:1> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by mrada@…): It could not load macrubyc, do you have MacRuby installed? -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:2> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): Hmm, I uninstalled MacRuby when run "rake spec:ci". -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:3> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by mrada@…): I get this: Finished in 844.705358 seconds 3340 files, 14603 examples, 56738 expectations, 42 failures, 203 errors -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:4> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by mrada@…): I'm going to try running spec:ci without the compile task specs... -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:5> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by mrada@…): When I remove the spec file (compiletask_spec.rb), I consistently get this failure: 2011-10-01 02:23:18.539 macruby[75260:110b] *** Terminating app due to uncaught exception 'RuntimeError', reason: '/Volumes/Lion/Users/mrada/Developer/MacRuby/spec/frozen/language/ensure_spec.rb:28:in `block': An exception occured! (RuntimeError) from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/mspec.rb:68:in `protect' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/context.rb:179:in `block' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/context.rb:179:in `protect' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/context.rb:207:in `block' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/context.rb:199:in `process' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/mspec.rb:37:in `describe' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/object.rb:11:in `context' from /Volumes/Lion/Users/mrada/Developer/MacRuby/spec/frozen/language/ensure_spec.rb:4:in `<main>' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/mspec.rb:56:in `block' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/mspec.rb:68:in `protect' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/mspec.rb:56:in `block' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/mspec.rb:50:in `files' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/runner/mspec.rb:42:in `process' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/commands /mspec-ci.rb:76:in `run' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/lib/mspec/utils/script.rb:218:in `main' from /Volumes/Lion/Users/mrada/Developer/MacRuby/mspec/bin/mspec- ci:8:in `<main>' ' I will try to investigate more tomorrow. -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:6> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by mrada@…): I removed the commit, but still I get this: Finished in 596.651979 seconds 3337 files, 14595 examples, 57299 expectations, 41 failures, 203 errors I am going to try one more time to be sure that I didn't forget to take something out. Since I have no idea what is causing this I might try a `git bisect`, but that will take several hours on my hardware. -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:7> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): I tried following operation. 1. remove changing of "overhaul_compiletask" 2. rm -rf /Library/Frameworks/MacRuby.framework/ 3. rebuild and install the MacRuby 4. rake spec:ci I got the following results in my environment: {{{ $ rake spec:ci rm -rf rubyspec_temp ./mspec/bin/mspec ci -B ./spec/macruby.mspec :full MacRuby 0.11 (ruby 1.9.2) [universal-darwin11.0, x86_64] ..[!] Compiling fixture `/Users/watson/src/macruby- master/spec/macruby/fixtures/method.m' .[!] Compiling fixture `/Users/watson/src/macruby- master/spec/macruby/fixtures/constant.m' ..[!] Compiling fixture `/Users/watson/src/macruby- master/spec/macruby/fixtures/exception.m' ......*** Dispatch block exited prematurely because of an uncaught exception: /Users/watson/src/macruby- master/mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with': Expected true to equal false (SpecExpectationNotMetError) from /Users/watson/src/macruby- master/mspec/lib/mspec/matchers/base.rb:9:in `==' from /Users/watson/src/macruby- master/spec/macruby/core/gcd/semaphore_spec.rb:62:in `block' ......[!] Compiling fixture `/Users/watson/src/macruby- master/spec/macruby/fixtures/mri_abi.m' ...[!] Compiling fixture `/Users/watson/src/macruby- master/spec/macruby/fixtures/object.m' .......macruby(10964,0x111ce8000) malloc: *** error for object 0x7fff941cd9e8: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug ...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E.E..E................................................ GC: -finalize resulted in an exception (0x406d8fce0) being thrown, break on objc_exception_during_finalize_error to debug undefined method `message' for false:FalseClass (NoMethodError) ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1) An exception occurred during: loading /Users/watson/src/macruby- master/spec/frozen/core/kernel/puts_spec.rb ERROR Errno::EBADF: Bad file descriptor - read() failed 2) An exception occurred during: loading /Users/watson/src/macruby- master/spec/frozen/core/kernel/rand_spec.rb ERROR Errno::EBADF: Bad file descriptor - read() failed 3) An exception occurred during: loading /Users/watson/src/macruby- master/spec/frozen/core/kernel/remove_instance_variable_spec.rb ERROR Errno::EBADF: Bad file descriptor - read() failed Finished in 331.014929 seconds 3336 files, 14705 examples, 55352 expectations, 0 failures, 3 errors rake aborted! Command failed with status (1): [./mspec/bin/mspec ci -B ./spec/macruby.msp...] Tasks: TOP => spec:ci (See full trace by running task with --trace) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:8> MacRuby <http://macruby.org/>
#1398: "rake spec:ci" fails more specs. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by mrada@…): Ok, with some modifications to the specs I get this: {{{ Finished in 711.644263 seconds 3337 files, 14730 examples, 57553 expectations, 0 failures, 8 errors rake aborted! Command failed with status (1): [./mspec/bin/mspec ci -B ./spec/macruby.msp...] }}} The modification is this: {{{ diff --git a/spec/macruby/library/rake/compiletask_spec.rb b/spec/macruby/library/rake/compiletask_spec.rb index f2dbe44..4b6b37e 100644 --- a/spec/macruby/library/rake/compiletask_spec.rb +++ b/spec/macruby/library/rake/compiletask_spec.rb @@ -1,7 +1,13 @@ require File.expand_path('../../../spec_helper', __FILE__) -require 'rake/compiletask' +# require 'rake/compiletask' require 'stringio' +# it could already be loaded by rubygems or others +unless MacRuby.const_defined?(:Compiler) + load File.join(RbConfig::CONFIG['bindir'], 'macrubyc') +end + + module CompileTaskSpecHelper include FileUtils }}} So I suspect the problem is because the specs would normally load rake into the same process. Since I can still load macrubyc without any extra problems I dont think it macrubyc is causing the test failures. It might be that rake is doing something to the run time that causes the other tests to fail but I am not sure. I think the CompileTask itself is self- contained and should not being causing the problem. I will have to look into more after some sleep. -- Ticket URL: <http://www.macruby.org/trac/ticket/1398#comment:9> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby