PQM

PQM doesn't send any emails if the test exit status is 241 (or other weird exit status)

Bug #237671 reported by Māris Fogels
2
Affects Status Importance Assigned to Milestone
PQM
Incomplete
Undecided
Unassigned

Bug Description

If a test suite exits with status code 241, PQM will not send any emails. The test log is still present, and it correctly reports the exit status.

Normally, if a test exits with status 1, then PQM will send a failure email.

Revision history for this message
Barry Warsaw (barry) wrote :

Really, PQM should send a notification regardless of the exit status. Two other examples have been seen recently.

1. When the test runner runs for more than 15 minutes, it will get killed, but the exit status indicates signal death, and these exits don't trigger a notification.

2. If the bzr merge command fails (e.g. because the target was a loom), this also doesn't trigger a notification.

pqm should /always/ send a notification!

Changed in pqm:
assignee: nobody → thumper
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 237671] Re: PQM doesn't send any emails if the test exit status is 241.

On Wed, 2008-06-11 at 15:03 +0000, Barry Warsaw wrote:
> Really, PQM should send a notification regardless of the exit status.
> Two other examples have been seen recently.
>
> 1. When the test runner runs for more than 15 minutes, it will get
> killed, but the exit status indicates signal death, and these exits
> don't trigger a notification.

I thought the killing was done by test.py or some wrapper *nothing*
should be killing PQM itself to stop a test run - thats nuts because it
will prevent cleanups happening. IF this is the case its a bug in the
deployment.

> 2. If the bzr merge command fails (e.g. because the target was a loom),
> this also doesn't trigger a notification.
>
> pqm should /always/ send a notification!

If the merge fails a conflict list is sent to the user. I presume you
mean the source being a loom causes no notification - I would guess that
this *actually* causes a traceback - and for some reason I am not
getting a copy of the traceback?

(PQM /always/ sends a notification except when PQM suffers an uncaught
exception, uncaught exceptions go to the output which cron captures and
sends to the operators. This lets them report bugs and fix the issue).

I haven't seen seeing any tracebacks for the launchpad instance in a
long time, so either the configuration is borked, the admins are not
reporting them anymore or ....

Anyhow, this is the code for handling test suite exit values:

   ecode = child.wait()
   if not ((ecode is None) or (ecode == 0)):
       self.output.append('\npre-commit hook failed with error code %d
at %s\n' % (ecode - 255, time.strftime('%c')))
       raise PQMCmdFailure(self.sender, self.successful, self.line,
self.output)

-Rob

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Changed in pqm:
status: New → Incomplete
Tim Penhey (thumper)
Changed in pqm:
assignee: Tim Penhey (thumper) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.