← Back to team overview

canonical-ci-engineering team mailing list archive

Programmatically detecting rejected PPA uploads

 

Will and Ursula,

For the CI-Airline project, we need a way to determine when a source
package upload is rejected. So far, I've been unable to use the
launchpad API to determine when an upload fails. Can you (or anyone
else) provide any suggestions on what I should be doing?

My test for this is to upload a source package with the same version
as a package already in my test PPA [1]. This generates an email after
a few minutes with a rejection message.

With Ursula's help I was able to get the following to provide data on
source package uploads:

curl 'https://api.launchpad.net/1.0/ubuntu/trusty?ws.op=getPackageUploads&archive=https://api.launchpad.net/1.0/~fginther/%2Barchive/ci-ppa-1'

This does provide an entry for my original source package upload, but
does not provide any entries that are marked as rejected.

I tried another ppa [2] which had several uploads rejected on Jan 15
as a result of the ppa running out of storage. This PPA also showed no
entries that were rejected:

curl 'https://api.launchpad.net/1.0/ubuntu/trusty?ws.op=getPackageUploads&archive=https://api.launchpad.net/1.0/~ubuntu-unity/%2Barchive/daily-build&status=Rejected'
{"total_size": 0, "start": 0, "entries": []}


[1] - https://launchpad.net/~fginther/+archive/ci-ppa-1
[2] - https://launchpad.net/~ubuntu-unity/+archive/daily-build

Thanks,
Francis
-- 
Francis Ginther
Canonical - Ubuntu Engineering - Continuous Integration Team


Follow ups