donate-cpu-server.py: only include packages which crash on head in the crash report package list (#4714)

This commit is contained in:
Oliver Stöneberg 2023-01-18 20:19:31 +01:00 committed by GitHub
parent f8c4354d2e
commit e205550bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ from urllib.parse import urlparse
# 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)
SERVER_VERSION = "1.3.35" SERVER_VERSION = "1.3.36"
OLD_VERSION = '2.9' OLD_VERSION = '2.9'
@ -225,10 +225,10 @@ def crashReport(results_path: str, query_params: dict):
if counts[1] == 'Crash!': if counts[1] == 'Crash!':
c_head = 'Crash' c_head = 'Crash'
html += fmt(package, datestr, c_version, c_head) + '\n' html += fmt(package, datestr, c_version, c_head) + '\n'
if package_url is not None:
pkgs += '{}\n'.format(package_url)
if c_head != 'Crash': if c_head != 'Crash':
break break
if package_url is not None:
pkgs += '{}\n'.format(package_url)
elif line.find(' received signal ') != -1: elif line.find(' received signal ') != -1:
crash_line = next(file_, '').strip() crash_line = next(file_, '').strip()
location_index = crash_line.rfind(' at ') location_index = crash_line.rfind(' at ')