/srv/irclogs.ubuntu.com/2016/04/05/#launchpad.txt

mwhudsondoes launchpad support mirroring git repos?05:33
wgrantmwhudson: I have it half done, but am currently distracted by some other work.05:38
mwhudsonwgrant: damn ubuntu lts releases?07:08
mwhudsonwgrant: would make git recipes about 1 million % more useful, as i'm sure is obvious07:09
wgrantYeah, that's one of the main motivations.07:09
mwhudsoni guess i can play games with an account that has a passwordless ssh key that only lives on some DC machine but eh...07:39
chrisr_I'm still having problems with launchpad not triggering our builds. Could someone please check why launchpad does not pick up the uploads for cpp-ethereum in https://launchpad.net/~ethereum/+archive/ubuntu/ethereum ? Thanks a lot!09:24
chrisr_uploaded a new package just now09:25
cjwatsonchrisr_: You should have just got a rejection mail.09:30
cjwatsonchrisr_: This time that should give you a bit more to go on.09:31
cjwatsonchrisr_: If you didn't get it, I can dig it out of logs for you.09:31
mwhudsoncan i reference tags in git recipes?09:40
cjwatsonYes.09:41
chrisr_cjwatson: thanks! Unfortunately, I don't have access to that address. Can I use a different address for "maintainer" and for the signing key?09:41
wgrantHm, you're not using your own signing key?09:42
cjwatsonchrisr_: You can, but only the signer will be mailed in the PPA case.09:43
mwhudsoncjwatson: can you see what's going on here then? https://code.launchpad.net/~mwhudson/+recipe/golang-1.4-exp09:43
cjwatsonEr, wait, no09:43
wgrantIIRC the maintainer will be emailed if they're a member of the PPA owner.09:43
mwhudsoncjwatson: maybe i'm not actually specifying the right branch?09:43
wgrantOr something like that.09:43
cjwatsonYeah, that's right, I think it's just the signer.09:43
cjwatsonI rewrote that code recently to be less twisty but it's still twisty.09:44
cjwatsonchrisr_: so anyway, the rejections are like this:09:45
cjwatson2016-04-05 09:25:15 DEBUG   File cpp-ethereum_1.2.3~wily.orig.tar.gz already exists in Ethereum (Release builds), but uploaded version has different contents. See more information about this error in https://help.launchpad.net/Packaging/UploadErrors.09:45
cjwatsonchrisr_: Once you've uploaded a given file to a given archive, you may never upload the same file name with different contents.  People mostly run into this with .orig.tar.gz if their workflow is for some reason not careful to preserve the existing one.09:46
cjwatsonchrisr_: If you need to change the .orig.tar.gz, you need to increase the upstream part of the version number (before the last "-")09:47
cjwatsonchrisr_: But usually it's not necessary to change the .orig.tar.gz, and this probably happens because the previous copy of that file isn't in the parent directory of the directory where you ran the source package build09:48
cjwatsonchrisr_: Also, as a side note, you should stop using the ~wily etc. scheme and start using something like ~ubuntu15.10.  We're running out of alphabet soon, so you can't continue to assume that the codenames will sort alphabetically.09:48
chrisr_I don't think I need to change the orig.tar.gz, and actually I'm using debuild -sd09:49
wgrantmwhudson: Hm, that shouldn't happen unless the tagged commit isn't on any branch.09:50
* wgrant looks.09:50
mwhudsonwgrant: hm, it may not be on a branch in that repo09:50
mwhudsonyeah09:50
wgrantThat'd be the problem.09:50
chrisr_let me try a "clean build"09:50
mwhudsonthe way branches and pushes interact in git is still a bit unclear to me09:51
cjwatsonchrisr_: debuild -sd is a good start, but only works if you have the correct .orig in your parent to build from.09:51
cjwatsonchrisr_: You need to fix that before attempting to do a "clean build".09:51
chrisr_ah, because of sha / md5sums?09:51
wgrantmwhudson: Branches and pushes are easy enough to understand. But don't try to understand tag fetch or push rules.09:51
cjwatsonchrisr_: Right, the .dsc contains the checksums of all the files that make up the source package, and they must match.09:51
mwhudsonwgrant: the tag not being present in the repo was my first problem...09:51
cjwatsonchrisr_: The .changes only lists what's being uploaded, but the .dsc has the full set.09:52
wgrantmwhudson: git-build-recipe isn't currently clever enough to recognise a tag name and just directly clone it. It clones the repo, then gives the revision specifier to rev-parse. git clone will by default grab any tags that reference commits that are in any branch.09:52
chrisr_cjwatson: it might be that increasing the version number is the safer bet then. Would something like 0.2.3+1~wily-0ubuntu1 work?09:52
chrisr_1.2.3+1~wily-0ubunt1 of course09:52
cjwatsonchrisr_: Yes, but if you're increasing the version number anyway then you should take the opportunity to replace ~wily with ~ubuntu15.1009:53
cjwatsonchrisr_: But it shouldn't be necessary to increase the version number in this case09:53
cjwatsonchrisr_: Just download the current .orig files from http://ppa.launchpad.net/ethereum/ethereum/ubuntu/pool/main/e/ethereum/09:53
mwhudsonwgrant: ah ok09:54
cjwatsonchrisr_: Or, possibly more sensibly, from the various "Package files" sections resulting from expanding the cpp-ethereum uploads on https://launchpad.net/~ethereum/+archive/ubuntu/ethereum/+packages (that way it's at least transport-secured)09:54
cjwatsonchrisr_: Make sure those are in the parent directory when you run debuild09:55
chrisr_the problem is that we usually do that using our automation system...09:55
cjwatsonRight, which is why you need to fix your automation :-)09:56
cjwatsonOtherwise you'll just run into the exact same thing next time.09:56
cjwatsonYou need to keep the .orig files around, or else ensure that they are generated in a bit-for-bit reproducible way09:56
cjwatson(pristine-tar can help to achieve the latter, if you choose that)09:57
chrisr_the problem is that the script downloads the release branch and determines the version from its contents, so it breaks if there is a commit to the release branch that does not increment the version number.09:59
chrisr_and that is what happened actually10:00
chrisr_since we want to include that change, I guess it is fair to increment the version number to +110:00
cjwatsonchrisr_: That sounds reasonable10:03
cjwatsonchrisr_: Sounds like a good case for using recipes (although if it's git then you would have to work around our current lack of git-to-git imports)10:04
chrisr_we tag the actual release and we should only check out tags, but yeah, future improvements :-)10:08
mwhudsonwgrant, cjwatson: now what? https://launchpadlibrarian.net/251803269/buildlog.txt.gz10:12
mwhudsonis it possible that the revision for nest-part is being interpreted in the base branch not the nested one?10:12
wgrantI rewrote this code but have totally forgotten it. Will check.10:12
cjwatsonIt may be worth using git-build-recipe locally to iterate quickly.10:13
mwhudsonyeah i guess but the branches are large and in london10:13
mwhudsoncan i put local paths in the recipe?10:13
cjwatsonfile://10:13
mwhudsonalso bedtime10:13
mwhudsonok10:13
cjwatsonOr is it just undecorated paths?  One of those, probably both.10:13
wgrantwgrant@lamuella:~/tmp$ git ls-remote lp:~mwhudson/ubuntu/+source/golang-defaults/+git/xenial | grep tmp-go10:14
wgrantwgrant@lamuella:~/tmp$10:14
mwhudsonwgrant: but it's on https://git.launchpad.net/~mwhudson/ubuntu/+source/golang/+git/xenial/refs/heads?h=tmp-go-1.410:14
mwhudsonthis is me failing at git again i presume10:14
mwhudsonwaait10:15
wgrantNot the same repo :P10:15
cjwatsonthat's not the same repo10:15
cjwatsonsnap10:15
mwhudsonwgrant: *cough*10:15
wgrantNo, recipe.10:15
cjwatsonthpppt10:15
cjwatson(last I checked we had no LP object called thpppt10:15
cjwatson)10:15
mwhudsonit doesn't help that the links in the recipe source don't work...10:15
wgrantYeah.10:16
wgrantIt's complicated.10:16
wgrantIn this case it's unambiguous, but it's sometimes not.10:16
mapreriis it just me or staging.lp.net seems to run an older launchpad than production?  r13390 < r1797210:23
cjwatsonmapreri: It's built from a different branch.10:24
mwhudsonand now it seems the release tag and release tarball have different contents10:24
cjwatsondb-devel rather than devel.10:24
mwhudsoncan't blame lp for that one :-)10:24
cjwatsondb-devel r13390 is in fact newer than devel r17972.10:25
maprerioh, I see the merge commits on db-devel10:26
cjwatsonIt's equivalent to devel r17979.10:26
mapreriI'm not sure if such numbering/versioning is a bzr weirdness or development model weirdness :)10:27
mwhudsonalthough hm, where did it get that orig from...10:27
cjwatsonmapreri: A little of both.10:27
wgrantmwhudson: e0b1199cc6302b267abf335042961b77aee12ff4refs/tags/upstream/1.4.310:28
wgrantI assume.10:28
mwhudsonok10:28
wgrantmapreri: https://dev.launchpad.net/Trunk has some terribly overcomplicated diagrams.10:28
wgrantThough not quite as spectacular as the original RFWTAD diagram.10:29
mwhudsonoh, that suggests a much simpler idea...10:29
mapreriI had the impression edge.lp.net was gone?  those graphs have it.10:30
cjwatsons/edge/qastaging/ for this purpose.10:31
mapreriic10:31
wgrant(the difference being that edge was on the production DB, while qastaging is on its own copy. Better to QA probably broken code on sacrificial data!)10:32
* mwhudson has a working git recipe finally10:38
mwhudsonwgrant, cjwatson: thanks for putting up with my dumb mistakes10:38
cjwatsonnp10:38
wgrantI'm happy to blame git weirdness :)10:40
chrisr_cjwatson: ah, it finally worked, thanks a lot for your help!11:58
cjwatsonAh good11:59
=== xnox_ is now known as xnox
=== cprov_ is now known as cprov
=== psivaa_ is now known as psivaa
=== zoktar_ is now known as zoktar
mohankumar_Team , is there anyway to export bug report from lanchpad ?14:26
teward'export' a bug report how?14:27
dobeyyou can read all bug reports that you have access to read, with the lp API14:27
teward^ that though14:27
tewardwas about to say the API may be of use14:27
mohankumar_teward , to word doc  or excel file  (specific project bug report )14:27
tewardah14:27
tewardin that case, no, there's no direct export to a word doc or excel file; you could probably run a script to create a CSV based on API output, and then convert that to Excel yourself14:28
cjwatsonhttps://help.launchpad.net/API/launchpadlib14:28
teward^14:28
tewardbut i don't think there's a built-in 'export' function like you're seeking14:28
cjwatsonNo, there isn't.14:29
tewardyep14:29
cjwatsonNor will there be.14:29
mohankumar_teward, cjwatson : thanks !14:29
mohankumar_teward ,  could you shed some light on " script to create a CSV based on API output" , any links ?14:30
dobeymohankumar_: you'd have to write the script14:31
dobeyyou could probably use python-launchpadlib and python-uno to generate a libreoffice spreadsheet though14:32
teward^14:32
mohankumar_dobey , Oh , great !14:32
=== dpm is now known as dpm-afk
=== TRB143_ is now known as TRB143
=== dpm-afk is now known as dpm

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!