This is an automated email from the git hooks/post-receive script.
praiskup pushed a commit to branch master in repository copr/copr.
The following commit(s) were added to refs/heads/master by this push: new bbdf83f frontend: build srpm first bbdf83f is described below
commit bbdf83fb73cfb91811cdb4cd944045d10de043f7 Author: Pavel Raiskup praiskup@redhat.com AuthorDate: Thu Aug 29 00:13:21 2019 +0200
frontend: build srpm first
This makes sure that we get everything imported to dist-git as soon as possible, and it also makes the statistics more real (because we get the build queue large very fast).
Merges: #967 --- frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py b/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py index c344965..5e0f72c 100644 --- a/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py +++ b/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py @@ -181,8 +181,10 @@ def pending_jobs(): Return the job queue. """ srpm_tasks = [build for build in BuildsLogic.get_pending_srpm_build_tasks() if not build.blocked] - build_records = ([get_build_record(task) for task in BuildsLogic.get_pending_build_tasks()] + - [get_srpm_build_record(task) for task in srpm_tasks]) + build_records = ( + [get_srpm_build_record(task) for task in srpm_tasks] + + [get_build_record(task) for task in BuildsLogic.get_pending_build_tasks()] + ) log.info('Selected build records: {}'.format(build_records)) return flask.jsonify(build_records)
copr-commits@lists.fedorahosted.org