1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

Drop successfulBuilds from build.json

This should reduce the file size from 34MB to 1MB and it is not used by
the monitor.
This commit is contained in:
Jochen Sprickerhof 2022-10-12 15:33:27 +02:00 committed by Jochen Sprickerhof
parent 6d505af6e4
commit b73c4b9214

View File

@ -1075,10 +1075,8 @@ def main():
# Build applications... # Build applications...
failed_builds = [] failed_builds = []
build_succeeded = []
build_succeeded_ids = [] build_succeeded_ids = []
status_output['failedBuilds'] = failed_builds status_output['failedBuilds'] = failed_builds
status_output['successfulBuilds'] = build_succeeded
status_output['successfulBuildIds'] = build_succeeded_ids status_output['successfulBuildIds'] = build_succeeded_ids
# Only build for 72 hours, then stop gracefully. # Only build for 72 hours, then stop gracefully.
endtime = time.time() + 72 * 60 * 60 endtime = time.time() + 72 * 60 * 60
@ -1193,7 +1191,6 @@ def main():
'supplied reference binary ' 'supplied reference binary '
'successfully') 'successfully')
build_succeeded.append(app)
build_succeeded_ids.append([app['id'], build.versionCode]) build_succeeded_ids.append([app['id'], build.versionCode])
if not options.onserver: if not options.onserver:
@ -1255,17 +1252,17 @@ def main():
logging.info("Stopping after global build timeout...") logging.info("Stopping after global build timeout...")
break break
for app in build_succeeded: for app in build_succeeded_ids:
logging.info("success: %s" % (app.id)) logging.info("success: %s" % app[0])
if not options.verbose: if not options.verbose:
for fb in failed_builds: for fb in failed_builds:
logging.info('Build for app {}:{} failed:\n{}'.format(*fb)) logging.info('Build for app {}:{} failed:\n{}'.format(*fb))
logging.info(_("Finished")) logging.info(_("Finished"))
if len(build_succeeded) > 0: if len(build_succeeded_ids) > 0:
logging.info(ngettext("{} build succeeded", logging.info(ngettext("{} build succeeded",
"{} builds succeeded", len(build_succeeded)).format(len(build_succeeded))) "{} builds succeeded", len(build_succeeded_ids)).format(len(build_succeeded_ids)))
if len(failed_builds) > 0: if len(failed_builds) > 0:
logging.info(ngettext("{} build failed", logging.info(ngettext("{} build failed",
"{} builds failed", len(failed_builds)).format(len(failed_builds))) "{} builds failed", len(failed_builds)).format(len(failed_builds)))