Skip to content

Commit

Permalink
[Cherry Pick] Enable canary report generation (awslabs#634)
Browse files Browse the repository at this point in the history
-enable canary report generation after each canary run.
  • Loading branch information
jsitu777 committed Apr 12, 2023
1 parent 82a55c5 commit 70dab26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/canary/scripts/push_stats_to_cloudwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ def readXML_and_publish_metrics_to_cw():
failures = testsuite.attrib["failures"]
tests = testsuite.attrib["tests"]
successes = int(tests) - int(failures)
<<<<<<< HEAD
success_rate = successes/int(tests)*100
else:
failures = 0
successes = 0
tests = 0
success_rate = 0
=======
else:
failures = 0
successes = 0
tests = 1
>>>>>>> 632ec70b ([Cherry Pick] Enable canary report generation (#634))

timestamp = datetime.now().strftime("%Y-%m-%dT%H:%M:%S")

Expand Down

0 comments on commit 70dab26

Please sign in to comment.