def patch_build_step():
    """
    Changes the default attributes on BuildStep so that:

    - alwaysRun = False
    - flunkOnFailure = True
    - flunkOnWarnings = False
    - haltOnFailure = True
    - warnOnFailure = False
    - warnOnWarnings = True

    I.e.: A build step must always cause the build to fail if it fails and, in that case, BuildBot
    must not execute other build steps in a builder.
    """
    from buildbot.process.buildstep import BuildStep
    BuildStep.alwaysRun = False
    BuildStep.flunkOnFailure = True
    BuildStep.flunkOnWarnings = False
    BuildStep.haltOnFailure = True
    BuildStep.warnOnFailure = False
    BuildStep.warnOnWarnings = True
