[copr] master: - return status to main log for builds - output the complete mockchain command that will be run since it seems that required repos are not being included (ebe3000)

skvidal at fedoraproject.org skvidal at fedoraproject.org
Tue Jan 15 20:49:10 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit ebe3000ddce455ab295a3180b5e9e150167c8cd5
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Jan 15 15:48:29 2013 -0500

    - return status to main log for builds
    - output the complete mockchain command that will be run since it seems that
      required repos are not being included


>---------------------------------------------------------------

 backend/dispatcher.py |    2 +-
 backend/mockremote.py |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/backend/dispatcher.py b/backend/dispatcher.py
index 5a73a08..4b828b1 100644
--- a/backend/dispatcher.py
+++ b/backend/dispatcher.py
@@ -317,7 +317,7 @@ class Worker(multiprocessing.Process):
             job.status = status
             self.return_results(job)
             self.callback.log('worker finished build: %s' % ip)
-            self.event('build end: user:%s copr:%s build:%s ip:%s  pid:%s' % (job.user_name, job.copr_name, job.build_id, ip, self.pid))
+            self.event('build end: user:%s copr:%s build:%s ip:%s  pid:%s status:%s' % (job.user_name, job.copr_name, job.build_id, ip, self.pid, job.status))
             # clean up the instance
             if self.create:
                 self.terminate_instance(ip)
diff --git a/backend/mockremote.py b/backend/mockremote.py
index 7017a51..2d13a57 100755
--- a/backend/mockremote.py
+++ b/backend/mockremote.py
@@ -299,6 +299,7 @@ class Builder(object):
         #print '  Running %s on %s' % (buildcmd, hostname)
         # run the mockchain command async
         # this runs it sync - FIXME
+        self.callback.log('executing: %r' % buildcmd)
         self.conn.module_name="shell"
         self.conn.module_args = str(buildcmd)
         results = self.conn.run()



More information about the copr-devel mailing list