possible_reasons = [
    {
        'name': 'failed tests',
        'description': 'project\'s tests are failing or causing errors',
        'regex': [
            '\[ERROR\] Failed to execute goal org\.apache\.maven\.plugins:maven-surefire-plugin',
            '\[ERROR\] ACC test failed\. exit\(1\)',
            'Failures:',
            '-----------------------------------FAILURE LIST-----------------------------------'
        ],
        'graphite key': 'failed_tests'
    },
    {
        'name': 'missing dependencies',
        'description': 'project can\'t build because there are missing dependencies in nexus',
        'regex': [
            'Could not resolve dependencies for project'
        ],
        'graphite key': 'missing_dependencies'
    },
    {
        'name': 'sonar violations',
        'description': 'project can\'t build because it is breaking sonar rules',
        'regex': [
            '\[ERROR\] Failed to execute goal org\.sonarsource\.scanner\.maven:sonar-maven-plugin'
        ],
        'graphite key': 'sonar_violation'
    },
    {
        'name': 'failed to clone',
        'description': 'project can\'t be cloned/checked out from source repository',
        'regex': [
            'ERROR: Failed to clone',
            'ERROR: Repository not found'
        ],
        'graphite key': 'failed_clone'
    },
    {
        'name': 'failed compilation',
        'description': 'project doesn\'t compile',
        'regex': [
            '\[ERROR\] Failed to execute goal org\.apache\.maven\.plugins:maven-compiler-plugin'
        ],
        'graphite key': 'failed_compilation'
    }
]

# used when non of above is matching
unknown_reason = {
    'name': 'unknown reason',
    'description': 'console output doesn\'t match any of knonw reasons',
    'regex': [''],
    'graphite key': 'unknown'
}



@@ -1604,24 +1604,1474 @@
 ompilation'%0A
+    %7D,%0A    %7B%0A        'name': 'missing jacoco plugin',%0A        'description': 'project pom does not have jacoco plugin for code static analysis',%0A        'regex': %5B%0A            %22%5C%5BERROR%5C%5D No plugin found for prefix 'jacoco'%22%0A        %5D,%0A        'graphite key': 'missing_jacoco'%0A    %7D,%0A    %7B%0A        'name': 'npm fetch failed',%0A        'description': 'npm failed while fetching libs, probably problem with npm proxy or npm itself',%0A        'regex': %5B%0A            'npm ERR. fetch failed'%0A        %5D,%0A        'graphite key': 'npm_fetch'%0A    %7D,%0A    %7B%0A        'name': 'illegal live deployment',%0A        'description': 'Trying to deploy app to live outside of deployment window',%0A        'regex': %5B%0A            'Live-Deployments are only allowed Monday - Thursday'%0A        %5D,%0A        'graphite key': 'illegal_live_deployment'%0A    %7D,%0A    %7B%0A        'name': 'failed deployment',%0A        'description': 'Failed deployment - app not started?',%0A        'regex': %5B%0A            'ERROR. App has been successfully deployed but it could not be started.',%0A            'Fatal error. ERROR. deployment was not successful'%0A        %5D,%0A        'graphite key': 'failed_deployment'%0A    %7D,%0A    %7B%0A        'name': 'Docker container not started',%0A        'description': 'Docker container has not started, maybe docker deamon problem?',%0A        'regex': %5B%0A            'Error response from daemon. Cannot start container'%0A        %5D,%0A        'graphite key': 'docker_cntnr_not_started'%0A
     %7D%0A%5D%0A%0A# u

add more failure reasons