=== Edwin-lunch is now known as EdwinGrubbs [03:29] thumper: i'd ask you to review a branch if you could see it :-) [03:29] mwhudson: if it is small you could pastebin :) [03:31] thumper: http://pastebin.ubuntu.com/334267/ [03:31] thumper: its the next layer of the bzr-svn onion === stub1 is now known as stub [03:33] mwhudson: I don't suppose you feel like killing updateFromData ? [03:34] thumper: i could give it a go i guess [03:34] config.codeimport.default_interval_subversion, ? [03:34] sorry [03:34] I missread [03:34] nn [03:34] nm [03:34] damn friday fingers [03:35] mwhudson: line 171 of diff [03:35] mwhudson: what about using the with statement ? [03:36] mwhudson: won't it close files on context exit? [03:37] mwhudson: the for loop at 181... what is the purpose? [03:41] shouldn't it error if it can't connect at all in the setup? [03:55] thumper: for the former, wow yes, python 2.5 :) [03:55] thumper: it takes a little while for the svnserve process to start accepting connections, that's what the for loop is for [03:55] mwhudson: my suggestion is that if we don't get acceptance perhaps the setup should fail [03:56] thumper: no, it usually connects the second time around the loop [03:56] oh i see what you mean now [03:56] friday brain :) [03:56] I know what you mean [04:02] mwhudson: other than that it looks good [04:02] thumper: thanks! [04:02] mwhudson: do we have the BZR_SVN enum in prod already? [04:02] mwhudson: it would be interesting to see what happens on vanilla production branch looking at a bzr_svn import [04:02] thumper: yeah, it's been around for ages [04:03] mwhudson: as long as it doesn't die in a heap, we should be ok [04:03] thumper: yeah, i'll see if i can do that locally [04:03] thumper: i know +code-import-list will explode [04:03] mwhudson: ah, why? [04:03] I don't remember that view [04:04] thumper: getImportDetailsForDisplay [04:05] (another reason we should move to a single url field, i think...) [04:15] * thumper nods [04:19] mwhudson: movie and pizza time, I'll check back in later :) [04:19] thumper: certainly, don't watch the cricket === 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 [11:41] bigjools: care to review? ;) http://paste.ubuntu.com/334439/ [11:42] henninge: +1 [11:42] bigjools: as in r=bigjools? ;-) [11:43] henninge: r=bigjools :) [11:54] bigjools: I made it a formal MP to be able to properly request an r-c. Please add your vote there, too. Thanks ;) [11:54] https://code.edge.launchpad.net/~henninge/launchpad/access-to-translationgroup-table/+merge/15643 [11:54] sure [11:56] henninge: thinking about it, I think I'd be happier with a test [11:57] * henninge was just thinking about that on the loo ... === adeuring1 is now known as adeuring [11:58] TMI [11:58] bigjools: how would I test that ... [11:59] henninge: the best test is to upload a package with an attached translation that would need to use the code you changed [11:59] bigjools: so this happens whenever I store an upload in the librarian? [12:00] that should not be too hard to simulate [12:01] henninge: soyuz calls sourcepackagerelease.attachTranslationFiles() [12:01] that's all I know :) [12:01] let me see if there's some existing tests you can copy [12:02] the traceback goes through realiseUpload - publish - publish_ROSETTA_TRANSLATIONS [12:02] oh, nm, missed the next line [12:03] hmmm it appears there are no tests for uploading translations at all [12:04] which is not surprising since this bug would have been caught [12:05] henninge: we need a package with translations attached in lib/lp/archiveuploader/tests/data/suite [12:05] then add a test in lib/lp/archiveuploader/tests/test_uploadprocessor.py [12:05] I am happy to help [12:05] since it's probably making your eyes glaze already [12:05] bigjools: ok, I'll look at it and come back to pester you ... ;) [12:12] 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:13] BjornT_: well right now there are *no* tests that upload packages with translations [12:13] I find it hard to see why the translations team should write a test that calls their code using a soyuz db user [12:14] 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 cases [12:14] we are all one team ... ;) [12:14] yes, I would not suggest adding more than one :) [12:14] bigjools: they should write such tests, if their code is executed in a soyuz db user context [12:15] bigjools: that's a good way of avoiding errors like these [12:15] BjornT_: they should, and the test should run in the Soyuz area [12:16] bigjools: what do you mean by 'in the soyuz area'? [12:16] i.e. I don;t think the translations tests should know about soyuz specifics [12:16] in our test directory [12:16] * henninge is thinking [12:16] bigjools: that's the point, they only have to know about the db user, nothing more [12:17] so once we have a test that uploads a translations package, there can be unit tests in soyuz module that call the SPR methods [12:17] bigjools: it depends a bit on which method is tested, of course [12:17] yeah I don;t really like that they need to know about it. Am I being too sensitive about that? [12:17] bigjools: is it not the same the other way round? [12:18] I mean, if we add a translations upload test to the soyuz test directory? [12:18] bigjools: but for example, look at lp/bugs/doc/bug-set-status.txt. where should that live? [12:18] soyuz uses translations, translations doesn't use soyuz [12:18] bigjools: that's one of tests to make sure that closing bugs via changelogs works [12:19] BjornT_: yeah, we have a similar one the in the archiveuploader module [12:19] bigjools: if it's very similar, it's probably redundant [12:19] lib/lp/archiveuploader/tests/nascentupload-closing-bugs.txt [12:20] and lib/lp/soyuz/doc/closing-bugs-from-changelogs.txt [12:21] BjornT_: if you think it's ok for translations to know about soyuz db users then I am fine with it [12:21] I just wanted to raise the question [12:23] 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:24] soyuz already knows a lot about translations :) [12:24] it has to deal with the tarballs attached to source packages [12:24] bigjools: maybe it knows too much :) [12:25] heh [12:28] 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] right [12:28] bigjools: it might make sense to have a tests harness in soyuz land, but the tests should be re-used [12:28] bigjools, BjornT_: also, that sounds to me like a much quicker way to get a valid test set up for this branch ... ;-) [12:28] well I still want a full translations package upload test [12:29] henninge: what bigjools said [12:29] henninge: yep [12:30] I'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] bigjools: was about to ask that, too. [12:30] bigjools: which is the shorter test? [12:31] BjornT_: re-using existing tests with a new db user [12:32] 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 landing [12:32] great [12:32] makes your life easier for the moment henninge :) [12:32] cool [12:33] * henninge will do that right after lunch. === henninge is now known as henninge-lunch [12:33] mmm food === mrevell is now known as mrevell-lunch [13:26] Hi adeuring, got time for this one? [13:26] https://code.edge.launchpad.net/~michael.nelson/launchpad/487009-db-extract-get-build-records/+merge/15649 [13:29] noodles775: sure [13:32] Thanks! === salgado-afk is now known as salgado === henninge-lunch is now known as henninge === mrevell-lunch is now known as mrevell [15:07] noodles775: r=me [15:08] Thanks adeuring. [15:15] henninge, that db permission fix is not release-critical, since stub's already done it on the production DB, right? === salgado is now known as salgado-lunch [15:30] barry: Your mailing list branch is approved. I had two points you may want to address before landing it [15:30] sinzui: awesome, thanks [15:33] salgado-lunch: I am not sure how persistent stubs change is and what happens when "something" is restarted or rebuilt etc. [15:34] something = appserver or dbserver or stub's car ... ;) === salgado-lunch is now known as salgado === matsubara is now known as matsubara-lunch [15:46] henninge, 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 DB === adeuring1 is now known as adeuring === beuno is now known as beuno-lunch [16:20] anybody fancy reviewing a lazr.restfulclient branch? https://code.launchpad.net/~james-w/lazr.restfulclient/fix-caching/+merge/15635 [16:20] tiny diff, ugly bug === deryck is now known as deryck[lunch] [16:33] hello. [16:34] james_w: adeuring is OCR - so worth pinging him :) [16:34] james_w: sure, I'll look === matsubara-lunch is now known as matsubara [16:45] james_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] makes sense [16:46] james_w: thanks! r=me [16:52] adeuring: new revision pushed, could you land it for me, I don't have the rights? [16:52] james_w: sure, will do. [16:52] thanks [17:00] hey jpds -- i was going to chat with you about the review but then just submitted it anyway [17:02] bigjools: I just pushed the branch. [17:03] bigjools: After a not-so-successful high-level approach (calling addOrUpdateEntryFromTarball), I went for low-level testing on canSetStatus [17:03] bigjools: it actually produced more problems with access to pofile and potemplate tables, so I included these, too. [17:03] henninge: can a translations person review it for you? [17:03] danilos: ? [17:04] danilo__: ? [17:04] CaptainAmerica to the rescue [17:04] are you sure he has an alarm on that name? [17:05] he's also the only one from my team around. [17:05] bac: Is it just the registered by Mark text I have to edit? [17:06] jpds: yes. it just needs to match the new output [17:06] jpds: test it with: bin/test -vvt distributionmirror-views.txt === beuno-lunch is now known as beuno [17:22] beuno: I am still trying to reconcile how to handle official verses unofficial packages for projects. look at https://edge.launchpad.net/bzr [17:24] ^ 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 PPA [17:24] or some other archive === deryck[lunch] is now known as deryck [17:27] We 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 distro [17:27] sinzui, give me 30 and we'll think about it together [17:33] bac: OK, will work on it when I can time. [17:41] beuno: I have a lunch appointment. I will be back in a hour. === gary_poster_ is now known as gary_poster [19:21] jpds: 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. [20:02] bac: Done. [20:05] jpds: it still doesn't work, though. You left out "Linux" in the mirror title [20:06] jpds: run: /bin/test -vvm lp.registry -t distributionmirror-views.txt [20:06] jpds: oops [20:06] bin/test -vvm lp.registry -t distributionmirror-views.txt [20:06] (no leading slash, of course) [20:08] * jpds ponders, the only thing I did with "Linux" was remove it from "Official Ubuntu Linux Mirror registered by ...". [20:09] And it shouldn't be on mirror pages: https://edge.launchpad.net/ubuntu/+mirror/archive.ubuntu.com [20:11] jpds: you did remove the word "Linux" from the expected test output [20:12] "Ubuntu Linux" is the context/title [20:12] jpds: so stuff "Linux" back in there and you will be good [20:17] bac: But if Linux isn't displayed on the live pages... why is it in the tests? [20:17] * bac looks [20:22] jpds: 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-mirror2 [20:23] that's because the distro title is "Ubuntu Linux". the name property is simply "Ubuntu" [20:24] Oh, right. === matsubara is now known as matsubara-afk [20:47] sinzui: are you still looking for a reviewer, or is the irc topic just stale? [20:47] bac: Well I've made the change as you've said, can't get ec2test to work nicely though. [20:47] EdwinGrubbs: That is stale === 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 [20:47] jpds: if you've never used ec2 i wouldn't bother now. there is quite a bit of setup involved. [20:48] jpds: did you run the simple local test i listed? [20:48] bac: No, I'll work on it later. [20:49] jpds: it's a one-liner. should only take a few seconds [20:53] jpds: nm, i grabbed your new branch and the test passes [20:54] jpds: 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. [21:55] bac: Sorry, was having food, and done. === salgado is now known as salgado-afk