Package: rebuildd
Version: 0.3.4
Severity: important

When using "rebuildd-job", it will completely silently fail for many
different kinds of syntax or data errors.  For example, if an
architecture is specified which is not enabled in the config file, it
will accept the input and exit without doing anything.

Connecting over the "telnet" interface is not much better; the error
message that is returned is completely generic.  I had to manually
add debug messages to the python scripts to figure out where the error
was.

The "rebuildd" tool itself also has several silent failures, one of
which will cause a Job object to get stuck in the "BUILDING" state.  In
the "Job->run()" function, for the code block that looks like this:

  try:
      proc = subprocess.Popen(cmd.split(), [.....])
  except Exception, error:
      state = 1
      break
  state = proc.poll()

If an exception occurs, such as "No such file or directory", the Job
will silently fail and get stuck in the "BUILDING" state.  To fix this,
I inserted code so that it looked like this:

  try:
      proc = subprocess.Popen(cmd.split(), [.....])
  except Exception, error:
      build_log.write("Unable to execute command \"%s\": %s" %
          (cmd, error))
      with self.status_lock:
          self.status = failed_status
      state = 1
      break
  state = proc.poll()

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (800, 'stable'), (700, 'testing'), (600, 'unstable'), (500, 
'experimental')
Architecture: powerpc (ppc64)

Kernel: Linux 2.6.26-2-powerpc64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages rebuildd depends on:
ii  lsb-base                    3.2-20       Linux Standard Base 3.2 init scrip
ii  python                      2.5.2-3      An interactive high-level object-o
ii  python-apt                  0.7.7.1+nmu1 Python interface to libapt-pkg
ii  python-sqlobject            0.10.2-3     Python module for SQLObject
ii  python-support              0.8.4lenny1  automated rebuilding support for P

Versions of packages rebuildd recommends:
pn  pbuilder                     <none>      (no description available)
ii  python-gdchart2              0.beta1-3.4 Python OO interface to GDChart
ii  python-webpy                 0.230-1     Web API for Python applications

Versions of packages rebuildd suggests:
pn  cowdancer                     <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to