Skip to content

Latest commit

 

History

History

chaos-algorithm

DockerHub ImageVersion ImageLayers

hbpmip/chaos-algorithm: A faulty by design algorithm for testing

This algorithm deliberately fails and introduce defects and helps to design different failure scenario during testing.

Usage

Run the Docker image using:

  docker run --rm -e PARAM_variables=v1 -e PARAM_covariables=v2,v3 -e MODEL_PARAM_failure=<failure mode> hbpmip/chaos-algorithm:0.1.1 compute

where failure mode is one of:

  • training_fails: produces a failure during training. No results are returned - TODO: should return a PFA document emitting error
  • never_stop: the processing never stops and this container keeps running indefinitely
  • no_results: no results are returned and nothing is stored in the result database
  • invalid_json: the PFA document returned is no a valid JSON document
  • invalid_pfa_syntax: the PFA document returned is not valid according to PFA specification
  • invalid_pfa_semantics: the PFA document returned contains invalid semantics (syntax error)