Skip to content

Commit

Permalink
Update sample code to handle new dbt log line (#6523)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Nov 22, 2024
2 parents 4304eb3 + cd755dc commit c13dd43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/docs/guides/zapier-ms-teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ for step in run_data_results['run_steps']:
# Remove timestamp and any colour tags
full_log = re.sub('\x1b?\[[0-9]+m[0-9:]*', '', full_log)

summary_start = re.search('(?:Completed with \d+ errors? and \d+ warnings?:|Database Error|Compilation Error|Runtime Error)', full_log)
summary_start = re.search('(?:Completed with \d+ error.* and \d+ warnings?:|Database Error|Compilation Error|Runtime Error)', full_log)

line_items = re.findall('(^.*(?:Failure|Error) in .*\n.*\n.*)', full_log, re.MULTILINE)

Expand Down
4 changes: 2 additions & 2 deletions website/docs/guides/zapier-slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ for step in run_data_results['run_steps']:
# Remove timestamp and any colour tags
full_log = re.sub('\x1b?\[[0-9]+m[0-9:]*', '', full_log)

summary_start = re.search('(?:Completed with \d+ errors? and \d+ warnings?:|Database Error|Compilation Error|Runtime Error)', full_log)
summary_start = re.search('(?:Completed with \d+ error.* and \d+ warnings?:|Database Error|Compilation Error|Runtime Error)', full_log)

line_items = re.findall('(^.*(?:Failure|Error) in .*\n.*\n.*)', full_log, re.MULTILINE)

Expand Down Expand Up @@ -277,7 +277,7 @@ for step in results['run_steps']:
# Remove timestamp and any colour tags
full_log = re.sub('\x1b?\[[0-9]+m[0-9:]*', '', full_log)

summary_start = re.search('(?:Completed with \d+ errors? and \d+ warnings?:|Database Error|Compilation Error|Runtime Error)', full_log)
summary_start = re.search('(?:Completed with \d+ error.* and \d+ warnings?:|Database Error|Compilation Error|Runtime Error)', full_log)

line_items = re.findall('(^.*(?:Failure|Error) in .*\n.*\n.*)', full_log, re.MULTILINE)
if not summary_start:
Expand Down

0 comments on commit c13dd43

Please sign in to comment.