toptal / crystalball

Regression Test Selection library for your RSpec test suite
https://toptal.github.io/crystalball/
MIT License
321 stars 41 forks source link

Bug: Psych::DisallowedClass: Tried to load unspecified class: Symbol #123

Open dblandin opened 5 years ago

dblandin commented 5 years ago

Hi there!

Thanks so much for this gem! Very excited to start using it. During setup, I ran into this error after creating the execution map and configuring crystalball to run on Circle CI. I see the error running in a local Docker container as well. Happy to provide any supplemental information you might find useful.

Stack trace

``` + CRYSTALBALL_CONFIG=./config/crystalball_data.yml + bundle exec crystalball Psych::DisallowedClass: Tried to load unspecified class: Symbol /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:97:in `find' /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:28:in `load' /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:39:in `block (2 levels) in ' /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:32:in `symbolize' /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:82:in `symbolize' /usr/local/lib/ruby/2.6.0/psych/scalar_scanner.rb:83:in `tokenize' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60:in `deserialize' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123:in `visit_Psych_Nodes_Scalar' /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:16:in `visit' /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:6:in `accept' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32:in `accept' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337:in `block in revive_hash' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:336:in `each' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:336:in `each_slice' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:336:in `revive_hash' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162:in `visit_Psych_Nodes_Mapping' /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:16:in `visit' /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:6:in `accept' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32:in `accept' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:311:in `visit_Psych_Nodes_Document' /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:16:in `visit' /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:6:in `accept' /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32:in `accept' /usr/local/lib/ruby/2.6.0/psych.rb:360:in `safe_load' /usr/local/bundle/gems/crystalball-0.7.0/lib/crystalball/rspec/runner.rb:44:in `config' /usr/local/bundle/gems/crystalball-0.7.0/lib/crystalball/rspec/runner.rb:16:in `run' /usr/local/bundle/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:45:in `invoke' /usr/local/bundle/gems/crystalball-0.7.0/bin/crystalball:5:in `' /usr/local/bundle/bin/crystalball:23:in `load' /usr/local/bundle/bin/crystalball:23:in `' bundler: failed to load command: crystalball (/usr/local/bundle/bin/crystalball) ```

cc/ @erikdstock

pirj commented 5 years ago

Hi @dblandin

Can you please share your config/crystalball_data.yml?

dblandin commented 5 years ago

Hi @pirj :wave:

I created a gist with its content: https://gist.github.com/dblandin/1873cc773e1d71e8ce905ef1984bee76

pirj commented 5 years ago

@dblandin I'm truly sorry, I meant config/crystalball.yml. Can you please paste it? It seems there's an error while loading this config file.

pirj commented 4 years ago

@dblandin ping

TTD93 commented 4 years ago

I also got this error when trying to setup crystallball.ymllocally under config/crystallball.yml. I've one line in the file execution_map_path: 'crystalball_data.yml'. When I use the default setup without the crystallball.yml file, where crystalball_data.yml is under tmp/crystalball_data.yml it works.

marksiemers commented 2 years ago

Possibly fixed by #134