Merge pull request #18283 from lidizheng/fix-18282

Silent the check_on_pr failure
pull/18303/head
Lidi Zheng 6 years ago committed by GitHub
commit 69616b1a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tools/run_tests/python_utils/check_on_pr.py

@ -29,8 +29,8 @@ _GITHUB_APP_ID = 22338
_INSTALLATION_ID = 519109
_ACCESS_TOKEN_CACHE = None
_ACCESS_TOKEN_FETCH_RETRIES = 5
_ACCESS_TOKEN_FETCH_RETRIES_INTERVAL_S = 1
_ACCESS_TOKEN_FETCH_RETRIES = 6
_ACCESS_TOKEN_FETCH_RETRIES_INTERVAL_S = 15
def _jwt_token():
@ -76,7 +76,7 @@ def _access_token():
time.sleep(_ACCESS_TOKEN_FETCH_RETRIES_INTERVAL_S)
else:
print("error: Unable to fetch access token, exiting...")
sys.exit(1)
sys.exit(0)
return _ACCESS_TOKEN_CACHE['token']

Loading…
Cancel
Save