crystalball icon indicating copy to clipboard operation
crystalball copied to clipboard

Proper configuration

Open ghost opened this issue 5 years ago • 4 comments

First, this project is brilliant, thank you. Our CI will hopefully benefit.

If I wanted to modify/augment the prediction approach, should I just tweak standard_prediction_builder.rb in lib/crystalball/rspec?

I'm not entirely clear how to point crystalball to a custom prediction builder class.

ghost avatar Jun 07 '19 20:06 ghost

@jenkins-infotech you need to extend StandardPredictionBuilder or create your own builder. Then you need to set configuration option while trying to run crystalball runner. Check out configuration docs and example configuration file

In your particular case you need to specify prediction_builder_class_name: configuration option and set proper path to requires: option so crystalball knows where to find your custom builder.

Hope it helps. Sorry for incomplete docs, PRs are welcome here: https://github.com/toptal/crystalball/tree/master/docs

pluff avatar Jun 07 '19 21:06 pluff

No problem at all. I’ll figure it out.

Is there any way to visualize the map data? I’d like to understand the relation between the spec files & the code files.

Thanks, Shaun

ghost avatar Jun 10 '19 14:06 ghost

Pavel, a couple quick questions:

  • How do I turn on verbose logging ?
  • CRYSTALBALL_EXAMPLES_LIMIT=5 doesn’t seem to do anything as an environment variable nor .yml config

Appreciate some help, Shaun McArthur

ghost avatar Jul 02 '19 12:07 ghost

For example, with log_level set to ‘debug’ in my crystalball.yml,

All that I see is: D, [2019-07-02T15:45:36.694582 #27528] DEBUG -- : Prediction: I, [2019-07-02T15:45:36.694660 #27528] INFO -- : Starting RSpec.

Does this mean the prediction method is undefined?

ghost avatar Jul 02 '19 15:07 ghost