donate_cpu_lib.py: increased the amount of upload tries (#5476)

This commit is contained in:
Oliver Stöneberg 2023-09-22 19:41:52 +02:00 committed by GitHub
parent bba96c5c8f
commit e6e273645d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ import copy
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ # Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
# changes) # changes)
CLIENT_VERSION = "1.3.48" CLIENT_VERSION = "1.3.49"
# Timeout for analysis with Cppcheck in seconds # Timeout for analysis with Cppcheck in seconds
CPPCHECK_TIMEOUT = 30 * 60 CPPCHECK_TIMEOUT = 30 * 60
@ -654,7 +654,7 @@ def upload_results(package, results):
print('Uploading results.. ' + str(len(results)) + ' bytes') print('Uploading results.. ' + str(len(results)) + ' bytes')
try: try:
try_retry(__upload, fargs=('write\n' + package, results + '\nDONE', 'Result'), max_tries=4, sleep_duration=30, sleep_factor=1) try_retry(__upload, fargs=('write\n' + package, results + '\nDONE', 'Result'), max_tries=20, sleep_duration=15, sleep_factor=1)
except Exception as e: except Exception as e:
print('Result upload failed ({})!'.format(e)) print('Result upload failed ({})!'.format(e))
return False return False
@ -669,7 +669,7 @@ def upload_info(package, info_output):
print('Uploading information output.. ' + str(len(info_output)) + ' bytes') print('Uploading information output.. ' + str(len(info_output)) + ' bytes')
try: try:
try_retry(__upload, fargs=('write_info\n' + package, info_output + '\nDONE', 'Information'), max_tries=3, sleep_duration=30, sleep_factor=1) try_retry(__upload, fargs=('write_info\n' + package, info_output + '\nDONE', 'Information'), max_tries=20, sleep_duration=15, sleep_factor=1)
except Exception as e: except Exception as e:
print('Information upload failed ({})!'.format(e)) print('Information upload failed ({})!'.format(e))
return False return False