/srv/irclogs.ubuntu.com/2009/12/04/#launchpad-reviews.txt

=== Edwin-lunch is now known as EdwinGrubbs
mwhudsonthumper: i'd ask you to review a branch if you could see it :-)03:29
thumpermwhudson: if it is small you could pastebin :)03:29
mwhudsonthumper: http://pastebin.ubuntu.com/334267/03:31
mwhudsonthumper: its the next layer of the bzr-svn onion03:31
=== stub1 is now known as stub
thumpermwhudson: I don't suppose you feel like killing updateFromData ?03:33
mwhudsonthumper: i could give it a go i guess03:34
thumperconfig.codeimport.default_interval_subversion, ?03:34
thumpersorry03:34
thumperI missread03:34
thumpernn03:34
thumpernm03:34
thumperdamn friday fingers03:34
thumpermwhudson: line 171 of diff03:35
thumpermwhudson: what about using the with statement ?03:35
thumpermwhudson: won't it close files on context exit?03:36
thumpermwhudson: the for loop at 181... what is the purpose?03:37
thumpershouldn't it error if it can't connect at all in the setup?03:41
mwhudsonthumper: for the former, wow yes, python 2.5 :)03:55
mwhudsonthumper: it takes a little while for the svnserve process to start accepting connections, that's what the for loop is for03:55
thumpermwhudson: my suggestion is that if we don't get acceptance perhaps the setup should fail03:55
mwhudsonthumper: no, it usually connects the second time around the loop03:56
mwhudsonoh i see what you mean now03:56
mwhudsonfriday brain :)03:56
thumperI know what you mean03:56
thumpermwhudson: other than that it looks good04:02
mwhudsonthumper: thanks!04:02
thumpermwhudson: do we have the BZR_SVN enum in prod already?04:02
thumpermwhudson: it would be interesting to see what happens on vanilla production branch looking at a bzr_svn import04:02
mwhudsonthumper: yeah, it's been around for ages04:02
thumpermwhudson: as long as it doesn't die in a heap, we should be ok04:03
mwhudsonthumper: yeah, i'll see if i can do that locally04:03
mwhudsonthumper: i know +code-import-list will explode04:03
thumpermwhudson: ah, why?04:03
thumperI don't remember that view04:03
mwhudsonthumper: getImportDetailsForDisplay04:04
mwhudson(another reason we should move to a single url field, i think...)04:05
* thumper nods04:15
thumpermwhudson: movie and pizza time, I'll check back in later :)04:19
mwhudsonthumper: certainly, don't watch the cricket04:19
=== adeuring changed the topic of #launchpad-reviews to: on-call: adeuring || reviewing: - || queue [sinzui] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== matsubara-afk is now known as matsubara
henningebigjools: care to review? ;) http://paste.ubuntu.com/334439/11:41
bigjoolshenninge: +111:42
henningebigjools: as in r=bigjools? ;-)11:42
bigjoolshenninge: r=bigjools :)11:43
henningebigjools: I made it a formal MP to be able to properly request an r-c. Please add your vote there, too. Thanks ;)11:54
henningehttps://code.edge.launchpad.net/~henninge/launchpad/access-to-translationgroup-table/+merge/1564311:54
bigjoolssure11:54
bigjoolshenninge: thinking about it, I think I'd be happier with a test11:56
* henninge was just thinking about that on the loo ...11:57
=== adeuring1 is now known as adeuring
bigjoolsTMI11:58
henningebigjools: how would I test that ...11:58
bigjoolshenninge: the best test is to upload a package with an attached translation that would need to use the code you changed11:59
henningebigjools: so this happens whenever I store an upload in the librarian?11:59
henningethat should not be too hard to simulate12:00
bigjoolshenninge: soyuz calls sourcepackagerelease.attachTranslationFiles()12:01
bigjoolsthat's all I know :)12:01
bigjoolslet me see if there's some existing tests you can copy12:01
henningethe traceback goes through realiseUpload - publish - publish_ROSETTA_TRANSLATIONS12:02
henningeoh, nm, missed the next line 12:02
bigjoolshmmm it appears there are no tests for uploading translations at all12:03
bigjoolswhich is not surprising since this bug would have been caught12:04
bigjoolshenninge: we need a package with translations attached in lib/lp/archiveuploader/tests/data/suite12:05
bigjoolsthen add a test in lib/lp/archiveuploader/tests/test_uploadprocessor.py12:05
bigjoolsI am happy to help12:05
bigjoolssince it's probably making your eyes glaze already12:05
henningebigjools: ok, I'll look at it and come back to pester you ... ;)12:05
BjornT_henninge, bigjools: uploading a package with translation is good as an integration test, but it's also good to have move specific tests that only call the method in question. that test can be run as a number of different db users.12:12
bigjoolsBjornT_: well right now there are *no* tests that upload packages with translations12:13
bigjoolsI find it hard to see why the translations team should write a test that calls their code using a soyuz db user12:13
BjornT_bigjools: right, and i'm not saying that you shouldn't add one :) i just want to avoid you adding too many, so that you don't use integration tests to test edge cases12:14
henningewe are all one team ... ;)12:14
bigjoolsyes, I would not suggest adding more than one :)12:14
BjornT_bigjools: they should write such tests, if their code is executed in a soyuz db user context12:14
BjornT_bigjools: that's a good way of avoiding errors like these12:15
bigjoolsBjornT_: they should, and the test should run in the Soyuz area12:15
BjornT_bigjools: what do you mean by 'in the soyuz area'?12:16
bigjoolsi.e. I don;t think the translations tests should know about soyuz specifics12:16
bigjoolsin our test directory12:16
* henninge is thinking12:16
BjornT_bigjools: that's the point, they only have to know about the db user, nothing more12:16
bigjoolsso once we have a test that uploads a translations package, there can be unit tests in soyuz module that call the SPR methods12:17
BjornT_bigjools: it depends a bit on which method is tested, of course12:17
bigjoolsyeah I don;t really like that they need to know about it.  Am I being too sensitive about that?12:17
henningebigjools: is it not the same the other way round?12:17
henningeI mean, if we add a translations upload test to the soyuz test directory?12:18
BjornT_bigjools: but for example, look at lp/bugs/doc/bug-set-status.txt. where should that live?12:18
bigjoolssoyuz uses translations, translations doesn't use soyuz12:18
BjornT_bigjools: that's one of tests to make sure that closing bugs via changelogs works12:18
bigjoolsBjornT_: yeah, we have a similar one the in the archiveuploader module12:19
BjornT_bigjools: if it's very similar, it's probably redundant12:19
bigjoolslib/lp/archiveuploader/tests/nascentupload-closing-bugs.txt12:19
bigjoolsand lib/lp/soyuz/doc/closing-bugs-from-changelogs.txt12:20
bigjoolsBjornT_: if you think it's ok for translations to know about soyuz db users then I am fine with it12:21
bigjoolsI just wanted to raise the question12:21
BjornT_bigjools: i think it's fine for now. we should find a better way of structuring it, so that it's easier to find all the tests related to a given feature (it's a bit tricky, since one test can belong to multiple features). at the moment either translations have to know a bit about soyuz, or soyuz have to know a bit about translations. which is better?12:23
bigjoolssoyuz already knows a lot about translations :)12:24
bigjoolsit has to deal with the tarballs attached to source packages12:24
BjornT_bigjools: maybe it knows too much :)12:24
bigjoolsheh12:25
BjornT_bigjools: i just read henninge's mail. that tells me that there probably are tests already for setStatus and addOrUpdateEntry, and those tests should be run using the soyuz db user (as well as the db users it currently runs with)12:28
bigjoolsright12:28
BjornT_bigjools: it might make sense to have a tests harness in soyuz land, but the tests should be re-used12:28
henningebigjools, BjornT_: also, that sounds to me like a much quicker way to get a valid test set up for this branch ... ;-)12:28
bigjoolswell I still want a full translations package upload test12:28
BjornT_henninge: what bigjools said12:29
bigjoolshenninge: yep12:29
bigjoolsI'd be ok with him landing this with that shorter test, as long as a bug is file to write the bigger test, what do you think BjornT_?12:30
henningebigjools: was about to ask that, too.12:30
BjornT_bigjools: which is the shorter test?12:30
bigjoolsBjornT_: re-using existing tests with a new db user12:31
BjornT_bigjools: right. i think that's the easiest way of trying to prevent errors like this to happen in the future. i'd be happy with those tests for the first landing12:32
bigjoolsgreat12:32
bigjoolsmakes your life easier for the moment henninge :)12:32
henningecool12:32
* henninge will do that right after lunch.12:33
=== henninge is now known as henninge-lunch
bigjoolsmmm food12:33
=== mrevell is now known as mrevell-lunch
noodles775Hi adeuring, got time for this one?13:26
noodles775https://code.edge.launchpad.net/~michael.nelson/launchpad/487009-db-extract-get-build-records/+merge/1564913:26
adeuringnoodles775: sure13:29
noodles775Thanks!13:32
=== salgado-afk is now known as salgado
=== henninge-lunch is now known as henninge
=== mrevell-lunch is now known as mrevell
adeuringnoodles775: r=me15:07
noodles775Thanks adeuring.15:08
salgadohenninge, that db permission fix is not release-critical, since stub's already done it on the production DB, right?15:15
=== salgado is now known as salgado-lunch
sinzuibarry: Your mailing list branch is approved. I had two points you may want to address before landing it15:30
barrysinzui: awesome, thanks15:30
henningesalgado-lunch: I am not sure how persistent stubs change is and what happens when "something" is restarted or rebuilt etc.15:33
henningesomething = appserver or dbserver or stub's car ... ;)15:34
=== salgado-lunch is now known as salgado
=== matsubara is now known as matsubara-lunch
salgadohenninge, indeed; I was thinking of a schema change, and if that was the case it would only be possible to revert it manually.  but since this is actually a permission change, it might be possible to revert it accidentally if someone applies security.cfg to the DB15:46
=== adeuring1 is now known as adeuring
=== beuno is now known as beuno-lunch
james_wanybody fancy reviewing a lazr.restfulclient branch? https://code.launchpad.net/~james-w/lazr.restfulclient/fix-caching/+merge/1563516:20
james_wtiny diff, ugly bug16:20
=== deryck is now known as deryck[lunch]
jpdshello.16:33
noodles775james_w: adeuring is OCR - so worth pinging him :)16:34
adeuringjames_w: sure, I'll look16:34
=== matsubara-lunch is now known as matsubara
adeuringjames_w: this looks like a really good bug fix! Just two formal nitpicks: (1) Could you move the last parameter in the changed call on a new line? we try to keep the length <= 78 characters. (2) I think most of your commit message is worth to appear as a comment for the changed method call so that readers know why http_method.upper()  makes sense here?16:45
james_wmakes sense16:45
adeuringjames_w: thanks! r=me16:46
james_wadeuring: new revision pushed, could you land it for me, I don't have the rights?16:52
adeuringjames_w: sure, will do.16:52
james_wthanks16:52
bachey jpds -- i was going to chat with you about the review but then just submitted it anyway17:00
henningebigjools: I just pushed the branch.17:02
henningebigjools: After a not-so-successful high-level approach (calling addOrUpdateEntryFromTarball), I went for low-level testing on canSetStatus17:03
henningebigjools: it actually produced more problems with access to pofile and potemplate tables, so I included these, too.17:03
bigjoolshenninge: can a translations person review it for you?17:03
henningedanilos: ?17:03
henningedanilo__: ?17:04
bigjoolsCaptainAmerica to the rescue17:04
henningeare you sure he has an alarm on that name?17:04
henningehe's also the only one from my team around.17:05
jpdsbac: Is it just the registered by Mark text I have to edit?17:05
bacjpds: yes.  it just needs to match the new output17:06
bacjpds: test it with:  bin/test -vvt distributionmirror-views.txt17:06
=== beuno-lunch is now known as beuno
sinzuibeuno: I am still trying to reconcile how to handle official verses unofficial packages for projects. look at https://edge.launchpad.net/bzr17:22
sinzui^ beuno, the "Packages in distributions" portlet does not have a version line for the unofficial packages. Should I hide them everywhere or do it make it clear that they are only available via PPA17:24
sinzuior some other archive17:24
=== deryck[lunch] is now known as deryck
sinzuiWe really cannot hide them if we do not know the version, because we can only know the Ubuntu versions--we do not track versions in any other distro17:27
beunosinzui, give me 30 and we'll think about it together17:27
jpdsbac: OK, will work on it when I can time.17:33
sinzuibeuno: I have a lunch appointment. I will be back in a hour.17:41
=== gary_poster_ is now known as gary_poster
bacjpds: when you make the changes let me know and i'll update the review and land it for you, if PQM has opened by then.19:21
jpdsbac: Done.20:02
bacjpds: it still doesn't work, though.  You left out "Linux" in the mirror title20:05
bacjpds: run:  /bin/test -vvm lp.registry  -t distributionmirror-views.txt20:06
bacjpds: oops20:06
bacbin/test -vvm lp.registry  -t distributionmirror-views.txt20:06
bac(no leading slash, of course)20:06
* jpds ponders, the only thing I did with "Linux" was remove it from "Official Ubuntu Linux Mirror registered by ...".20:08
jpdsAnd it shouldn't be on mirror pages: https://edge.launchpad.net/ubuntu/+mirror/archive.ubuntu.com20:09
bacjpds: you did remove the word "Linux" from the expected test output20:11
bac"Ubuntu Linux" is the context/title20:12
bacjpds: so stuff "Linux" back in there and you will be good20:12
jpdsbac: But if Linux isn't displayed on the live pages... why is it in the tests?20:17
* bac looks20:17
bacjpds: if you look here you'll see that the text is the same as it appears in the test:  https://launchpad.dev/ubuntu/+mirror/archive-mirror220:22
bacthat's because the distro title is "Ubuntu Linux".  the name property is simply "Ubuntu"20:23
jpdsOh, right.20:24
=== matsubara is now known as matsubara-afk
EdwinGrubbssinzui: are you still looking for a reviewer, or is the irc topic just stale?20:47
jpdsbac: Well I've made the change as you've said, can't get ec2test to work nicely though.20:47
sinzuiEdwinGrubbs: That is stale20:47
=== sinzui changed the topic of #launchpad-reviews to: on-call: adeuring || reviewing: - || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== EdwinGrubbs changed the topic of #launchpad-reviews to: on-call: - || reviewing: - || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
bacjpds: if you've never used ec2 i wouldn't bother now.  there is quite a bit of setup involved.20:47
bacjpds: did you run the simple local test i listed?20:48
jpdsbac: No, I'll work on it later.20:48
bacjpds: it's a one-liner. should only take a few seconds20:49
bacjpds: nm, i grabbed your new branch and the test passes20:53
bacjpds: one last thing.  if you go to https://code.edge.launchpad.net/~jpds/launchpad/fix_196703/+merge/15644 and set the commit message i'll be able to land it for you through ec2.  just include the text of the message, not the review name or any of that stuff.20:54
jpdsbac: Sorry, was having food, and done.21:55
=== salgado is now known as salgado-afk

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