Skip to content

Instantly share code, notes, and snippets.

@svenfuchs
Created November 10, 2011 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svenfuchs/5934af6ad8774e296461 to your computer and use it in GitHub Desktop.
Save svenfuchs/5934af6ad8774e296461 to your computer and use it in GitHub Desktop.
# using https://github.com/travis-ci/travis-core
# at 0ff6f90
$: << 'lib' << 'spec'
require 'travis'
require 'support/active_record'
1000.times do |i|
puts i
Travis::Notifications::Pusher::Payload.new('job:test:started', Job::Test.new).to_hash;
Travis::Notifications::Worker::Payload.new(Job::Test.new).to_hash
end
# this will output:
#
# 1
# 2
# ...
# 49
# RuntimeError: could not find rabl template for Hash with {:type=>"worker", :template=>"job/test", :base_dir=>"/Volumes/Users/sven/Development/projects/travis/travis-core/lib/travis/notifications/pusher/views"}
# raise_template_not_found at /Volumes/Users/sven/Development/projects/travis/travis-core/lib/travis/renderer.rb:79
# find_template at /Volumes/Users/sven/Development/projects/travis/travis-core/lib/travis/renderer.rb:55
# template at /Volumes/Users/sven/Development/projects/travis/travis-core/lib/travis/renderer.rb:51
# render at /Volumes/Users/sven/Development/projects/travis/travis-core/lib/travis/renderer.rb:38
# hash at /Volumes/Users/sven/Development/projects/travis/travis-core/lib/travis/renderer.rb:13
# __send__ at org/jruby/RubyBasicObject.java:1700
# send at org/jruby/RubyKernel.java:2122
# render at /Volumes/Users/sven/Development/projects/travis/travis-core/lib/travis/notifications/worker/payload.rb:16
# to_hash at /Volumes/Users/sven/Development/projects/travis/travis-core/lib/travis/notifications/pusher/payload.rb:12
# __file__ at jruby_bug.rb:9
# times at org/jruby/RubyFixnum.java:256
# (root) at jruby_bug.rb:6
# with this change: https://github.com/travis-ci/travis-core/commit/2af36c0a6190a69176f7335641b9c318dfcadfb2
# the bug goes away
# running the same thing with jruby -X-C also makes the bug go away
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment