mirror of
https://pagure.io/fedora-qa/createhdds.git
synced 2024-11-28 17:13: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:
parent
5c9d7142d5
commit
836dec71fe
@ -120,7 +120,7 @@ def jobs_from_current(wiki, client):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
jobs = jobs_from_fedfind(currev.ff_release, client, runarches)
|
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
|
# write info about latest versions
|
||||||
f = open(PERSISTENT, "w")
|
f = open(PERSISTENT, "w")
|
||||||
@ -212,7 +212,7 @@ def run_current(args, client, wiki):
|
|||||||
jobs, _ = jobs_from_current(wiki, client)
|
jobs, _ = jobs_from_current(wiki, client)
|
||||||
# wait for jobs to finish and display results
|
# wait for jobs to finish and display results
|
||||||
if jobs:
|
if jobs:
|
||||||
logging.info("waiting for jobs: %s", jobs)
|
logging.info("waiting for jobs: %s", ' '.join(jobs))
|
||||||
report_results(jobs, client)
|
report_results(jobs, client)
|
||||||
logging.debug("finished")
|
logging.debug("finished")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
@ -242,7 +242,7 @@ def run_compose(args, client, wiki=None):
|
|||||||
jobs = jobs_from_fedfind(ff_release, client)
|
jobs = jobs_from_fedfind(ff_release, client)
|
||||||
except TriggerException as e:
|
except TriggerException as e:
|
||||||
logging.error("cannot run jobs: %s", 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:
|
if args.submit_results:
|
||||||
report_results(jobs, client)
|
report_results(jobs, client)
|
||||||
logging.debug("finished")
|
logging.debug("finished")
|
||||||
@ -260,7 +260,7 @@ def run_all(args, client, wiki=None):
|
|||||||
# Run for 'current' validation event.
|
# Run for 'current' validation event.
|
||||||
logging.debug("running for current")
|
logging.debug("running for current")
|
||||||
(jobs, currev) = jobs_from_current(wiki, client)
|
(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()
|
utcdate = datetime.datetime.utcnow()
|
||||||
if args.yesterday:
|
if args.yesterday:
|
||||||
@ -277,7 +277,7 @@ def run_all(args, client, wiki=None):
|
|||||||
logging.debug("running for rawhide")
|
logging.debug("running for rawhide")
|
||||||
rawhide_ffrel = fedfind.release.get_release(release='Rawhide', compose=utcdate)
|
rawhide_ffrel = fedfind.release.get_release(release='Rawhide', compose=utcdate)
|
||||||
rawjobs = jobs_from_fedfind(rawhide_ffrel, client)
|
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)
|
jobs.extend(rawjobs)
|
||||||
except ValueError as err:
|
except ValueError as err:
|
||||||
logging.error("rawhide image discovery failed: %s", 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,
|
branched_ffrel = fedfind.release.get_release(release=currev.release,
|
||||||
milestone='Branched', compose=utcdate)
|
milestone='Branched', compose=utcdate)
|
||||||
branchjobs = jobs_from_fedfind(branched_ffrel, client)
|
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)
|
jobs.extend(branchjobs)
|
||||||
except ValueError as err:
|
except ValueError as err:
|
||||||
logging.error("branched image discovery failed: %s", err)
|
logging.error("branched image discovery failed: %s", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user