How to fix failed Launchpad's PPA auto-builds?

Asked by Tamer Saadeh

So I want to start using Launchpad to push some packages. I use GitHub to upload my code to, and I have noticed that there is an option to upload/import from a Git repository (that is what I did). It worked fine. However, when I tried to build the packages they fail with the following error:
  Building recipe:
  # bzr-builder format 0.3 deb-version bugzilla4-{time}
  lp:Bugzilla4

  You have not informed bzr of your Launchpad ID, and you must do this to
  write to Launchpad or access private data. See "bzr help launchpad-login".
  I am not sure what I should do.

Possible problem:
 1. The recipe I wrote does not work
 2. I need to use bzr instead of git
 3. other

Please tell me what is the problem and how do I solve it?

The build logs can be seen at: https://launchpadlibrarian.net/69128657/buildlog.txt.gz

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Tamer Saadeh
Solved:
Last query:
Last reply:
Revision history for this message
Boris Dušek (dusek) said :
#1

lp:Bugzilla4 branch does not exist. Maybe it is named somehow else. Can you provide a link to the bazaar branch in launchpad?

Revision history for this message
Curtis Hovey (sinzui) said :
#2

As I said in the two emails I sent, I deactivated the project /bugzilla4 because /bugzilla is already a registered project. You do not need a new project to register a branch (new version) of the code. You may want a register a new series if version 4 is not tip--The main series branch is https://code.launchpad.net/~vcs-imports/bugzilla/main which is the most current code.

You can use the "Register a branch" link on <https://code.launchpad.net/buzilla> to mirror your branch.

To build the tip of bugzilla:
# bzr-builder format 0.3 deb-version bugzilla-{time}
lp:Bugzilla
merge <mirror-branch-name> lp:~tamersaadeh/bugzilla/<mirror-branch-name>

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#3

Thank you very much. I will try this. I hope this works!

Tamer

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#4

I have a small problem now: I cannot import because I use git. So should I port the vcs to bzr to just create a new bzr repository. (Note: the git repository does not have that much in the first place)

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#5

Never mind, I found a link that will allow me to import it.

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#6

Unfortunately, I did as Curtis have mentioned, but the build still failed (log at: https://launchpadlibrarian.net/69148000/buildlog.txt.gz). I wonder could it be that the structure of the code is weird?

Revision history for this message
Curtis Hovey (sinzui) said :
#7

I think the issue is this from the logs:
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".

I see you have setup your ssh keys in Lp. So I think you just need to use them once.
From a terminal type `bzr launchpad-login` and provide your Launchpad-id (tamersaadeh).

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#8

I just tried exactly what you said, but it still did not work. But I do not think that that is the core problem, I think it has to do with the recipe because of the following line:

  bzr: ERROR: KnitPackRepository('file:///home/buildd/build-96b6f7db875e179a4c07001f3020d01825f79f0d/chroot-autobuild/home/buildd/work/tree/recipe-%7Bdebupstream%7D-0~%7Brevno%7D/.bzr/repository/') is not compatible with CHKInventoryRepository('http://bazaar.launchpad.net/~tamersaadeh/bugzilla/bugzilla4/.bzr/repository/') different rich-root support

Full log at: https://launchpadlibrarian.net/69155073/buildlog.txt.gz

other logs:
https://launchpadlibrarian.net/69155073/buildlog.txt.gz
https://launchpadlibrarian.net/69154597/buildlog.txt.gz
https://launchpadlibrarian.net/69154242/buildlog.txt.gz
https://launchpadlibrarian.net/69152487/buildlog.txt.gz

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#9

Note: no matter how much I did `bzr launchpad-login tamersaadeh` the logs still show:

  You have not informed bzr of your Launchpad ID, and you must do this to
  write to Launchpad or access private data. See "bzr help launchpad-login".

Revision history for this message
Curtis Hovey (sinzui) said :
#10

This is a nasty situation that I think the Launchpad developers need to discuss. Your git import uses the modern repo format. The cvs import for bugzilla uses an ancient format.

As you appears to be the only user with a registered branch, I am going to attempt to upgrade the branch. This could take a few hours. I will update this question when I am done.

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#11

Ok.
Great and many thanks. (perfect timing I was going to sleep now ;))

Revision history for this message
Curtis Hovey (sinzui) said :
#12

This was full of surprises. I have reimported the bugzilla branch. I discovered that they switched from cvs to bzr so the import needed to be updated anyway. Since bugzilla uses bzr, you can learn about submit patches upstream at https://wiki.mozilla.org/Bugzilla:Bzr.

I tried running you recipe, but I do not have permission...I get the login error you saw, which means the user asking for the build does not have permission to work with the branch. I expect you will not get the error.

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#13

Good. I will try to build it now!

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#14

Nope... it still did not work. Here's the log: https://launchpadlibrarian.net/69170957/buildlog.txt.gz

Revision history for this message
Tamer Saadeh (tamersaadeh) said :
#15

I guess I figure out why it was failing, because the source I uploaded was weirdly structured. I fixed that and now it looks like there are just normal bugs.

Thanks!