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 6cf66a9 backend: do not start a build if copr_base is not available yet
6cf66a9 is described below
commit 6cf66a9b138d2ecaa48e60a8fe500a47a4d3569e
Author: Jakub Kadlcik <frostyx(a)email.cz>
AuthorDate: Sun Dec 1 19:57:18 2019 +0100
backend: do not start a build if copr_base is not available yet
We don't have any mechanism to define relationships between builds
and actions, so we can possibly come across a situation when an action
for creating repodata for new project takes a longer time than
expected and meanwhile a build in the project is started. That will
inevitably result in failure because we set `skip_if_unavailable=0`
for the `[copr_base]` repository.
Merges: #1125
Fixes: #1057
---
backend/backend/daemons/build_dispatcher.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/backend/backend/daemons/build_dispatcher.py
b/backend/backend/daemons/build_dispatcher.py
index ccfe823..4546ca7 100644
--- a/backend/backend/daemons/build_dispatcher.py
+++ b/backend/backend/daemons/build_dispatcher.py
@@ -1,5 +1,6 @@
# coding: utf-8
+import os
import time
import multiprocessing
@@ -181,6 +182,11 @@ class BuildDispatcher(multiprocessing.Process):
self.log.debug("Skipped job %s, cached", job)
continue
+ repodata = os.path.join(job.destdir, job.chroot,
"repodata/repomd.xml")
+ if not os.path.exists(repodata) and job.chroot !=
"srpm-builds":
+ self.log.debug("Skipping job %s because copr_base repo is not
available yet", job)
+ continue
+
# ... and if the task is new to us,
# allocate new vm and run full build
try:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date