[Pkg-debile-commits] [debile-slave] 06/28: Use job uuids and fix failed flag

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:55:19 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch master
in repository debile-slave.

commit 4799c8717802500f70c4ea9c8cf70cfb9833b304
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Fri Aug 9 22:47:16 2013 +0200

    Use job uuids and fix failed flag
---
 ethel/daemon.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ethel/daemon.py b/ethel/daemon.py
index dfbeaf3..e57fbef 100644
--- a/ethel/daemon.py
+++ b/ethel/daemon.py
@@ -35,11 +35,11 @@ def workon(suites, arches, capabilities):
             yield job
         except:
             logging.warn("Forfeiting the job because of internal exception")
-            proxy.forfeit_job(job['id'])
+            proxy.forfeit_job(job['uuid'])
             raise
         else:
             logging.info("Successfully closing the job")
-            proxy.close_job(job['id'], job['failed'])
+            proxy.close_job(job['uuid'], job['failed'])
 
 
 def generate_sut_from_source(package):
@@ -122,6 +122,8 @@ def iterate():
                                                         dest=remote_path)
                             out, err, ret = run_command(cmd)
                             shutil.rmtree(failed[0])
+                    else:
+                        job['failed'] = failed
 
                     logging.info("Sending the logs to the pool")
                     remote_path = proxy.get_log_write_location(job['uuid'])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-slave.git



More information about the Pkg-debile-commits mailing list