1

我使用 jenkins 的主/从来并行运行用 rspec 编写的测试用例。在每个slave中,我设置了8个executor,每个executor会同时运行这样的命令:gem install bundler & bundle install & rake rspec ...

执行“捆绑安装”时发生随机错误,所有错误都是关于“无法加载此类文件--- <%file_name%>”。这个随机错误频率非常低(大约 50 次 bundle install 发生一次),而错误中的 <%file_name%> 则完全不同:这次是“bundler/index”,而那个时间可以是另一个,例如“捆绑商/供应商”。

我不确定它是否是由并行运行“捆绑安装”引起的。有没有人遇到类似的问题?

这是我的环境:

每个slave的操作系统:CentOS release 6.3 (Final)

Ruby 版本:ruby 1.9.3p125(2012-02-16 修订版 34643)

捆绑器版本:1.3.5

Rspec 版本:2.12.2

RVM 版本:1.18.20(稳定)

宝石版本:1.8.25

以下是这些随机错误之一:

/home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:165:in fetch_specs': cannot load such file -- bundler/index (LoadError) from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:67:inspecs' from /home /CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/lazy_specification.rb:52:in __materialize__' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/spec_set.rb:88:inblock in materialize' 来自 /home/CORP /jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in map!' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:inmaterialize' 来自 /home/CORP/jenkins/。 rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/definition.rb:140:in missing_specs' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/installer.rb:72:inblock in run' from /home/CORP/jenkins/.rvm/ gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/ui.rb:96:insilence' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/installer.rb:69:in运行'从 /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/installer.rb:14:in install' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/cli.rb:247:ininstall' 从 / home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in run' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:ininvoke_task'来自/ home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in dispatch' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:instart' from /home/ CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/bin/bundle:20:in block in <top (required)>' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:inwith_friendly_errors' 来自 /home/CORP/jenkins/.rvm/gems /ruby-1.9.3-p125@recommendation-test/gems/bundler-1.3.5/bin/bundle:20:in <top (required)>' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/bin/bundle:19:inload' 来自 /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125 @recommendation-test/bin/bundle:19:in<main>' from /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/bin/ruby_noexec_wrapper:14:in评估'来自 /home/CORP/jenkins/.rvm/gems/ruby-1.9.3-p125@recommendation-test/bin/ruby_noexec_wrapper:14:in `'

4

0 回答 0