1
0
mirror of https://pagure.io/fedora-qa/createhdds.git synced 2024-11-21 23:03:08 +00:00

print job ID lists with just space separators

Summary:
This way you can just copy/paste the damn list for report_job_
results instead of reformatting it, if you want to feed it in
manually for any reason.

Test Plan:
Run some commands that schedule jobs and make sure they're
printed as '1 2 3' not '[1, 2, 3]'

Reviewers: jskladan, garretraziel

Reviewed By: garretraziel

Subscribers: tflink

Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D493
This commit is contained in:
Adam Williamson 2015-08-10 11:11:20 -07:00
parent 5c9d7142d5
commit 836dec71fe

View File

@ -120,7 +120,7 @@ def jobs_from_current(wiki, client):
try:
jobs = jobs_from_fedfind(currev.ff_release, client, runarches)
logging.info("planned jobs: %s", jobs)
logging.info("planned jobs: %s", ' '.join(jobs))
# write info about latest versions
f = open(PERSISTENT, "w")
@ -212,7 +212,7 @@ def run_current(args, client, wiki):
jobs, _ = jobs_from_current(wiki, client)
# wait for jobs to finish and display results
if jobs:
logging.info("waiting for jobs: %s", jobs)
logging.info("waiting for jobs: %s", ' '.join(jobs))
report_results(jobs, client)
logging.debug("finished")
sys.exit()
@ -242,7 +242,7 @@ def run_compose(args, client, wiki=None):
jobs = jobs_from_fedfind(ff_release, client)
except TriggerException as e:
logging.error("cannot run jobs: %s", e)
logging.info("planned jobs: %s", jobs)
logging.info("planned jobs: %s", ' '.join(jobs))
if args.submit_results:
report_results(jobs, client)
logging.debug("finished")
@ -260,7 +260,7 @@ def run_all(args, client, wiki=None):
# Run for 'current' validation event.
logging.debug("running for current")
(jobs, currev) = jobs_from_current(wiki, client)
logging.info("jobs from current validation event: %s", jobs)
logging.info("jobs from current validation event: %s", ' '.join(jobs))
utcdate = datetime.datetime.utcnow()
if args.yesterday:
@ -277,7 +277,7 @@ def run_all(args, client, wiki=None):
logging.debug("running for rawhide")
rawhide_ffrel = fedfind.release.get_release(release='Rawhide', compose=utcdate)
rawjobs = jobs_from_fedfind(rawhide_ffrel, client)
logging.info("jobs from rawhide %s: %s", rawhide_ffrel.version, rawjobs)
logging.info("jobs from rawhide %s: %s", rawhide_ffrel.version, ' '.join(rawjobs))
jobs.extend(rawjobs)
except ValueError as err:
logging.error("rawhide image discovery failed: %s", err)
@ -294,7 +294,7 @@ def run_all(args, client, wiki=None):
branched_ffrel = fedfind.release.get_release(release=currev.release,
milestone='Branched', compose=utcdate)
branchjobs = jobs_from_fedfind(branched_ffrel, client)
logging.info("jobs from %s: %s", branched_ffrel.version, branchjobs)
logging.info("jobs from %s: %s", branched_ffrel.version, ' '.join(branchjobs))
jobs.extend(branchjobs)
except ValueError as err:
logging.error("branched image discovery failed: %s", err)