Bugs: Browse | Submit New | Admin
I followed these instructions to run a tinderbox: http://firebrigade.seattlerb.org/home/run_a_tinderbox But it failed. Here is information about the failure, if you need more information let me know what you would like and I'll get it for you. mike@butch ~$ uname -a Linux butch 2.6.16-2-686 #1 Sat Jul 15 21:59:21 UTC 2006 i686 GNU/Linux mike@butch ~$ more /etc/debian_version testing/unstable My ruby and gem is hand built from source, it is not Debian's mike@butch ~$ ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux] mike@butch ~$ gem --version 0.9.4 mike@butch ~$ tinderbox_gem_run -r /tmp/tinderbox /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:100: warning: already initialized constant Options /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:103: warning: redefine check_options /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:112: warning: redefine scan_open_optional_arguments /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:122: warning: redefine open_uri /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:148: warning: redefine open_loop /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:221: warning: redefine redirectable? /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:229: warning: redefine open_http /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:340: warning: method redefined; discarding old initialize /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:348: warning: method redefined; discarding old initialize /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:354: warning: already initialized constant StringMax /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:355: warning: method redefined; discarding old << /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:368: warning: method redefined; discarding old io /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:376: warning: redefine init /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:402: warning: method redefined; discarding old meta_add_field /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:407: warning: method redefined; discarding old last_modified /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:415: warning: already initialized constant RE_LWS /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:416: warning: already initialized constant RE_TOKEN /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:417: warning: already initialized constant RE_QUOTED_STRING /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:418: warning: already initialized constant RE_PARAMETERS /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:420: warning: method redefined; discarding old content_type_parse /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:440: warning: method redefined; discarding old content_type /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:455: warning: method redefined; discarding old charset /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:472: warning: method redefined; discarding old content_encoding /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:610: warning: method redefined; discarding old open /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:618: warning: method redefined; discarding old read /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:643: warning: method redefined; discarding old find_proxy /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:708: warning: method redefined; discarding old buffer_open /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:716: warning: method redefined; discarding old buffer_open Bulk updating Gem source index for: http://gems.rubyforge.org Bulk updating Gem source index for: http://gems.rubyforge.org *** Checking xbm_ruby-1.0.1 *** Igniting (http://firebrigade.seattlerb.org:80/gem/show/xbm_ruby/1.0.1) same file: /home/mike/.gem/source_cache and /home/mike/.gem/source_cache(ArgumentError): /usr/local/lib/ruby/1.8/fileutils.rb:1394:in `fu_each_src_dest' /usr/local/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0' /usr/local/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest' /usr/local/lib/ruby/1.8/fileutils.rb:382:in `copy' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_runner.rb:138:in `install_sources' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_runner.rb:255:in `run' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_tinderbox.rb:267:in `test_gem' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_tinderbox.rb:231:in `run_spec' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_tinderbox.rb:203:in `run' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_tinderbox.rb:203:in `each' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_tinderbox.rb:203:in `run' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_tinderbox.rb:202:in `loop' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_tinderbox.rb:202:in `run' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_tinderbox.rb:143:in `run' /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/bin/tinderbox_gem_run:6 /usr/local/bin/tinderbox_gem_run:16:in `load' /usr/local/bin/tinderbox_gem_run:16
Add A Comment:
Date: 2007-12-26 00:44 Sender: James Mead Thanks Mike. I tried upgrading to RubyGems 1.0.1, but started seeing a different error... undefined method `full_name' for nil:NilClass(NoMethodError): /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:226:in `run_spec' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:205:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:205:in `each' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:205:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:204:in `loop' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:204:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:143:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/bin/tin derbox_gem_run:6 /opt/local/bin/tinderbox_gem_run:19:in `load' /opt/local/bin/tinderbox_gem_run:19 I think this is due to tinderbox 1.0.0 expecting that the result of calling sic_e.source_index.latest_specs on line #180 of gem_tinderbox.rb seems to be expecting a Hash of Gem::Specification instances keyed by name, but instead is getting a flat array of specs. Changing lines #180 & #181 as follows seems to fix the problem... sic_e.source_index.latest_specs.each do |spec| latest_gems[spec.name] = spec ... but then we are back to the original problem (see below). Any ideas? Cheers, James. *** Checking xbm_ruby-1.0.1 *** Igniting (http://firebrigade.seattlerb.org:80/gem/show/xbm_ru by/1.0.1) same file: /Users/jamesmead/.gem/source_cache and /Users/jamesmead/.gem/source_cache(ArgumentError): /opt/local/lib/ruby/1.8/fileutils.rb:1394:in `fu_each_src_dest' /opt/local/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0' /opt/local/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest' /opt/local/lib/ruby/1.8/fileutils.rb:382:in `copy' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_runner.rb:138:in `install_sources' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_runner.rb:255:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:271:in `test_gem' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:235:in `run_spec' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:207:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:207:in `each' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:207:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:206:in `loop' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:206:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tin derbox/gem_tinderbox.rb:143:in `run' /opt/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/bin/tin derbox_gem_run:6 /opt/local/bin/tinderbox_gem_run:19:in `load' /opt/local/bin/tinderbox_gem_run:19
Date: 2007-12-25 08:50 Sender: Mike Mondragon I think this type of error should be going away in RubyGems 1.0.X . I'll have to verify this. The original error as I reported it was happening when firebrigade is loading up a gem and its dependent gems. If the dependent gem supports multiple platforms rubygems prompts to have the platform (i.e. pure Ruby, Windoz, OS X, etc.) selected. I think Eric said that that behavior is going to default to Ruby platform in 1.0 when there isn't any input to select the platform.
Date: 2007-12-23 13:18 Sender: James Mead I'm seeing the same error on Mac OS 10.4.10 too. I can't see Mike's patch. Does anybody have any ideas? Thanks.
Date: 2007-09-18 10:48 Sender: Bil Kleb I'm getting the same "same file" error on Mac OS 10.4.10 with tinderbox-1.0.0 and ruby-1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.4].
Date: 2007-06-13 07:54 Sender: Mike Mondragon Here a patch that I did to make tinderbox run on my Debian desktop with gem 0.9.4 Unfortunately the tests for tinderbox fail but the I was able to do 'tinderbox_gem_run -r /tmp/tinderbox' as a normal user and its lighting gems on fire A-OK. tinderbox tests failing in my environment: root@butch /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0# rake test (in /usr/local/lib/site_ruby/gems/1.8/gems/tinderbox-1.0.0) /usr/local/bin/ruby -w -Ilib:ext:bin:test -e 'require "test/test_tinderbox_gem_tinderbox.rb"; require "test/test_tinderbox_gem_runner.rb"; require "test/test_tinderbox_build.rb"; require "test/unit"' Loaded suite -e Started ...........F.............F..F.....rake aborted! /tmp/tinderbox_test/sandbox/gems/some_test_gem-1.2.3/Rakefile:2: unterminated string meets end of file (See full trace by running task with --trace) Frake aborted! /tmp/tinderbox_test/sandbox/gems/some_test_gem-1.2.3/Rakefile:2: unterminated string meets end of file (See full trace by running task with --trace) Frake aborted! /tmp/tinderbox_test/sandbox/gems/some_test_gem-1.2.3/Rakefile:5: syntax error, unexpected tIDENTIFIER, expecting $end t.test_files = FileList['test/test_*.rb'] ^ (See full trace by running task with --trace) .rake aborted! /tmp/tinderbox_test/sandbox/gems/some_test_gem-1.2.3/Rakefile:5: syntax error, unexpected tIDENTIFIER, expecting $end t.test_files = FileList['test/test_*.rb'] ^ (See full trace by running task with --trace) ...FF............. Finished in 4.04655 seconds. 1) Failure: test_install_sources(TestTinderboxGemRunner) [./test/test_tinderbox_gem_runner.rb:204]: <true> expected but was <false>. 2) Failure: test_run(TestTinderboxGemRunner) [./test/test_tinderbox_gem_runner.rb:385]: <true> expected but was <false>. 3) Failure: test_run_pass(TestTinderboxGemRunner) [./test/test_tinderbox_gem_runner.rb:410]: <true> expected but was <false>. 4) Failure: test_test_Rakefile_spec_fail(TestTinderboxGemRunner) [./test/test_tinderbox_gem_runner.rb:673:in `util_test_assertions' ./test/test_tinderbox_gem_runner.rb:529:in `test_test_Rakefile_spec_fail']: <"1 specification, 1 failure"> expected but was <"!!! could not figure out how to test some_test_gem-1.2.3">. 5) Failure: test_test_Rakefile_spec_pass(TestTinderboxGemRunner) [./test/test_tinderbox_gem_runner.rb:659:in `util_test_assertions' ./test/test_tinderbox_gem_runner.rb:534:in `test_test_Rakefile_spec_pass']: The tests failed. <true> expected but was <false>. 6) Failure: test_test_spec_fail(TestTinderboxGemRunner) [./test/test_tinderbox_gem_runner.rb:673:in `util_test_assertions' ./test/test_tinderbox_gem_runner.rb:559:in `test_test_spec_fail']: <"1 specification, 1 failure"> expected but was <"!!! could not figure out how to test some_test_gem-1.2.3">. 7) Failure: test_test_spec_pass(TestTinderboxGemRunner) [./test/test_tinderbox_gem_runner.rb:659:in `util_test_assertions' ./test/test_tinderbox_gem_runner.rb:563:in `test_test_spec_pass']: The tests failed. <true> expected but was <false>. 55 tests, 163 assertions, 7 failures, 0 errors