TC 6.0.2 - Ruby, sudden weird errors

Hi there

I have been trying to nail down a problem that suddenly appeared on our TC setup. Even though we completely recreate the database before running the Rails Cucumber features on a project, suddenly it seems that data isn't being deleted between feature runs (which leads to errors when creating objects - because they are flagged as violating the uniqueness constraints). This error suddenly appeared with a totally unrelated change to the project (adding 2 lines of debug output) and I haven't been able to get rid of it - reverting that change made no difference.

But that's not the problem I'm having now - which appeared also when I ran and re-ran the tests on TC:

All of a sudden the builds have started to fail completely:

[17:47:50]: [Step 2/2] Execute cucumber:ok (19s)
[17:47:50]: [Execute cucumber:ok] bundle exec /home/teamcity/.rvm/rubies/ruby-1.9.2-p136/bin/ruby -I "/home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib:lib" "/home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/bin/cucumber" --expand --format Teamcity::Cucumber::Formatter
[17:48:10]: [Execute cucumber:ok] /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/patch/testunit/test/unit/autorunner.rb:22: warning: already initialized constant ORIGINAL_SDK_AUTORUNNER_PATH
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/test-unit-2.3.0/lib/test/unit/autorunner.rb:7: warning: already initialized constant RUNNERS
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/test-unit-2.3.0/lib/test/unit/autorunner.rb:8: warning: already initialized constant COLLECTORS
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/test-unit-2.3.0/lib/test/unit/autorunner.rb:9: warning: already initialized constant ADDITIONAL_OPTIONS
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/test-unit-2.3.0/lib/test/unit/autorunner.rb:10: warning: already initialized constant PREPARE_HOOKS
[17:48:10]: [Execute cucumber:ok] no such file to load -- test/unit/runner/xml (LoadError)
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `block in require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/test-unit-2.3.0/lib/test/unit/autorunner.rb:413:in `<top (required)>'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `block in require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/patch/testunit/test/unit/autorunner.rb:24:in `<top (required)>'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `block in require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/test-unit-2.2.0/lib/test/unit.rb:2:in `<top (required)>'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `block in require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/railties-3.0.5/lib/rails/test_help.rb:5:in `<top (required)>'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `block in require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-rails-0.3.2/lib/cucumber/rails/world.rb:10:in `<top (required)>'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `block in require'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
[17:48:10]: [Execute cucumber:ok] /opt/TeamCity/buildAgent/work/4975f7a1f8e9b693/features/support/env.rb:11:in `<top (required)>'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/rb_support/rb_language.rb:143:in `load'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/runtime/support_code.rb:176:in `load_file'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/runtime/support_code.rb:78:in `block in load_files!'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/runtime/support_code.rb:77:in `each'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/runtime/support_code.rb:77:in `load_files!'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/runtime.rb:137:in `load_step_definitions'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/runtime.rb:39:in `run!'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/cli/main.rb:43:in `execute!'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/cli/main.rb:20:in `execute'
[17:48:10]: [Execute cucumber:ok] /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/bin/cucumber:14:in `<main>'
[17:48:10]: [Execute cucumber:ok] Using the default profile...
[17:48:10]: [Execute cucumber:ok] RuntimeError: Command failed with status (1): [bundle exec /home/teamcity/.rvm/rubies/rub...]  Stacktrace: /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:995:in `block in sh' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:1010:in `call' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:1094:in `sh' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/rake/task.rb:79:in `run' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/cucumber-0.10.2/lib/cucumber/rake/task.rb:149:in `block in define_task' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:636:in `call' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:636:in `block in execute' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:631:in `each' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:260:in `block in execute' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:90:in `target_exception_handling' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:266:in `execute' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:597:in `block in invoke_with_call_chain' /home/teamcity/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:607:in `block in invoke_prerequisites' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:604:in `each' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:596:in `block in invoke_with_call_chain' /home/teamcity/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:607:in `block in invoke_prerequisites' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:604:in `each' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:596:in `block in invoke_with_call_chain' /home/teamcity/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:235:in `block in my_invoke_with_call_chain' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:90:in `target_exception_handling' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:234:in `my_invoke_with_call_chain' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:311:in `standard_exception_handling' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:311:in `standard_exception_handling' /home/teamcity/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:179:in `run' /opt/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rakerunner.rb:40:in `<main>'
[17:48:10]: [Step 2/2] Rake aborted!
[17:48:10]: [Step 2/2] Process exited with code 1
[17:48:10]: [Step 2/2] Step failed

any ideas?

cheers
jc

Please sign in to leave a comment.