Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
ahembree committed Dec 13, 2023
1 parent 9383d72 commit 13a2951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ jobs:
- name: Check containers
run: |
sleep 10
sleep 30
sudo make verify-containers
3 changes: 3 additions & 0 deletions .github/workflows/scripts/check_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def main():
if status_code == 200:
success_codes += 1
logging.info(f'{name}:{host_port} OK')
elif name == 'transmission-proxy' and status_code == '502':
success_codes += 1
else:
failure_codes += 1
logging.warning(f'{name}:{host_port} FAILED (Code: {status_code})')
Expand All @@ -95,6 +97,7 @@ def main():
logging.error(f'Failure rate exceeded {threshold}, it was {fail_rate}')
sys.exit(1)
else:
logging.info(f'Failure rate: {fail_rate}')
sys.exit(0)

if __name__ == '__main__':
Expand Down

0 comments on commit 13a2951

Please sign in to comment.