Upload rejected with "unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Michael Nelson |
Bug Description
fta reported the following rejection this morning:
http://
The relevant bit being:
unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'
Strangely, that rejection email is not displayed in the log, but at the exact time of the email we see:
{{{
2010-06-03 05:00:32 DEBUG Initialising connection.
2010-06-03 05:00:32 DEBUG Beginning processing
2010-06-03 05:00:32 DEBUG Could not fix the lockfile permission: [Errno 1] Operation not permitted: '/srv/launchpad
2010-06-03 05:00:32 DEBUG Checked in /srv/launchpad.
2010-06-03 05:00:32 DEBUG Considering upload upload-
2010-06-03 05:00:32 DEBUG Moving upload directory /srv/launchpad.
d/upload-
2010-06-03 05:00:32 DEBUG Moving distro file /srv/launchpad.
led/upload-
2010-06-03 05:00:32 DEBUG Rolling back any remaining transactions.
}}}
(and there are quite a few more "Could not fix the lockfile permission" messages following.).
I'd take a guess that this is related to a piece of untested code in process-upload that is looking for the old build attributes (datecreated, datebuilt) rather than the new (date_created, date_finished etc.).
Related branches
- Edwin Grubbs (community): Approve (code)
-
Diff: 71 lines (+36/-5)2 files modifiedlib/lp/soyuz/model/binarypackagebuild.py (+6/-5)
lib/lp/soyuz/tests/test_binarypackagebuild.py (+30/-0)
Changed in soyuz: | |
assignee: | nobody → Michael Nelson (michael.nelson) |
importance: | Medium → High |
tags: | added: soyuz-upload |
Changed in soyuz: | |
milestone: | none → 10.06 |
Changed in soyuz: | |
status: | Triaged → In Progress |
Changed in soyuz: | |
status: | Fix Committed → Fix Released |
today, the exact same 3 uploads failed (i mean, same src package name, same dist, but newer version).
No other src package in my numerous PPA uploads seem to be affected.
So in ~ubuntu- mozilla- daily/ppa, xulrunner- 1.9.2/{ jaunty, hardy} and firefox/karmic are repeatedly failing.
I'm not sure why those 3 are different though, they are supposed to be exactly the same as the others.