-
-
Save svenfuchs/5934af6ad8774e296461 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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