Skip to content

Commit

Permalink
Always fail, for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Szabo committed Dec 4, 2024
1 parent 9f94e40 commit fd3aac5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tubular/scripts/dd_synthetic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"""
Command-line script to run Datadog synthetic tests in the production enviornment and then slack notify and/or roll back
"""

logging.basicConfig(stream=sys.stdout, level=logging.INFO)

@click.option(
'--enable-automated-rollbacks',
is_flag=True,
Expand All @@ -24,8 +27,6 @@
help='When set and synthetic tests fail, an alert Slack message is sent to this channel'
)

logging.basicConfig(stream=sys.stdout, level=logging.INFO)

def run_synthetic_tests(enable_automated_rollbacks, slack_notification_channel):
'''
Expand All @@ -35,6 +36,8 @@ def run_synthetic_tests(enable_automated_rollbacks, slack_notification_channel):
'''
PUBLIC_TEST_ID = "sad-hqu-h33"

sys.exit(1) # To test that this script is actually being run

if enable_automated_rollbacks:
logging.Error("Automated rollbacks are not yet supported")
exit()
Expand Down

0 comments on commit fd3aac5

Please sign in to comment.