/srv/irclogs.ubuntu.com/2010/10/07/#launchpad-reviews.txt

=== Ursinha-afk is now known as Ursinha
sinzuiEdwin: I approved your branch03:17
EdwinGrubbsbenji: r=me03:44
EdwinGrubbssinzui: thanks03:44
=== StevenK changed the topic of #launchpad-reviews to: On call: Edwin || Reviewing: - || queue: [benji,StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== Ursinha is now known as Ursinha-afk
EdwinGrubbsStevenK: are you a reviewer?05:14
StevenKEdwinGrubbs: I am, but my mentor is on holidays05:17
* mwhudson can mentor something if it's easy05:17
mwhudson(not because i'm lazy but because i need to disappear fairly soon)05:18
EdwinGrubbsStevenK: well, I want you to look at the branch since it is a soyuz testfix for db-devel.05:19
StevenKEdwinGrubbs: Sure, point me to the MP?05:20
EdwinGrubbsStevenK: here it is: https://code.edge.launchpad.net/~edwin-grubbs/launchpad/broken_test_do_not_copy_disabled_dases/+merge/3781505:24
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [benji,StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
StevenKOh, that's my fault :-/05:24
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
StevenKEdwinGrubbs: The code + test that was on db-devel pre-dates the devel code, and I was meaning to fix it, but sleep got in the way.05:25
StevenKEdwinGrubbs: So, I can tell you my ideas on the MP, or I can just fix it since it's my fault. Which do you think?05:29
EdwinGrubbsStevenK: you can just fix it.05:30
StevenKEdwinGrubbs: Okay, doing so, thanks.05:32
wgrantStevenK: Quick Soyuz one, if you're interested: https://code.edge.launchpad.net/~wgrant/launchpad/bug-655648-a-f-maverick/+merge/3782006:53
StevenKwgrant: Added my code* to it06:55
wgrantStevenK: Thanks.06:57
noodles775Hi stub, would you have time for a tiny db-review? https://code.launchpad.net/~michael.nelson/launchpad/638090-base_version-property-for-differences/+merge/3774207:47
* stub has a look07:59
stubnoodles775: Might we need to join or lookup rows using base_version ? I'm wondering if it needs an index or not.08:06
noodles775stub: Hrm... I can't think of an example. Currently the use-case is, here's a (loaded) difference, do you want to request a PackageDiff to be generated between the base version and the derived version etc. But right, it might save pain in the future when we add a query and assume an index?08:10
stubnoodles775: Sounds like we don't need it.08:21
stubnoodles775: r=stub patch-2208-24-0.sql08:23
noodles775Great, thanks stub!08:23
bachi henninge09:28
henningeHi bac!09:35
* henninge looks at activereviews09:36
bachi henninge, could you have another look at my MP?  sinzui did the UI mentor09:36
bachenninge: i'm also having some trouble with a translation test and need some domain-specific geniusity09:37
henningeoh, is there a planned downtime for code hosting atm?09:40
henningebac: I imaging the help link looks just like what it looks on the project page, right?09:41
henningecodehosting is back09:41
bacyes indeedy09:41
henningebac: r=me09:43
henningebac: what's the failing test?09:43
bacthanks09:44
bachenninge: i'll paste it in a sec09:44
bachenninge: when using factory.makePOTemplate it looks like sourcepackagename is non-optional, right?09:44
bacif so that is, uh, dumb09:46
bachenninge: http://pastebin.ubuntu.com/507871/09:48
bachenninge: the failure is at line 11609:49
bacand it is barfing on this part of the page template:09:49
bac              <a tal:attributes="href context/menu:navigation/templates/url">09:50
bac                full list of templates</a>.09:50
bactemplates do not exist09:50
bachenninge: so i think i have not done something that is required in the setup09:50
bachenninge: you still around?09:58
henningebac: sorry, got called awy. back now09:59
bacnp09:59
bachenninge: you can see the failure in devel with09:59
bacbin/test -vvm lp.translations -t TestRobotsDistroSeries09:59
bacif you download that test10:00
henningethe setup looks ok10:01
=== maxb_ is now known as maxb
henningebac: I wonder if the distribution needs official_rosetta set10:06
bachmm10:06
henningebut I am still preparing to run the test10:06
henningebac: can you try ubuntu (but a new distroseries)?10:06
bachenninge: in that test (look at set_usage in the base class) i do set the translation_usage property, which sets official_rosetta10:08
henningeoh, that's what the test is about ... ;-)10:10
* henninge is catching on10:10
henningebac: which branch is this on?10:13
* henninge downloaded the wrong branch10:14
bachenninge: lp:~bac/launchpad/bug-652280-pg-trans10:15
bacgive it a second as i'm pushing10:15
bacand done10:18
henningebranching10:19
henningebac: ok, I see the failure but am not any wiser yet.10:33
bachenninge: i see the menu item is enabled_with_permission(launchpad.Edit)10:34
henningebac: ah yes, that is true ;)10:34
bachenninge: the template does not check permissions.  but if that is the case i'm not sure how this works at all10:35
henningebac: can you point me to the template, please10:35
bacdistroseries-translations.pt (i think)10:35
henningesounds sensible10:37
henningebac: hm, I can see ubuntu/maverick/+templates, even when logged out.10:41
bacyeah, i just saw that10:41
henningebac: btw, you can do without the test_suite at the end if you turn your "Base" into a "Mixin"10:50
bachenninge: you mean make it not be a TestCase?10:51
henningeyes and make the actual testcases inherit from (TestCase, Mixin)10:51
baci'm +0 on that.  maybe -010:53
henninge;-)11:00
henningeWhy is that?11:00
henningebac: the test has no problems rendering +templates11:05
bachenninge: i don't think actually rendering +templates is an issue, it is using the menu to simply construct the URL11:06
* bac baffled11:06
henningebac: removing the permissions check from the menu item does not help either.11:07
henningebac: so clearly it is accessing the wrong menu.11:08
bachenninge: and removing the section from the page template results in another KeyError for language_packs...similar construct11:08
henningebac: do you know how menu lookup works?11:13
henningeI mean, how "context/menu:..." works?11:14
bacyeah, i think so11:15
bachenninge: it is found through an adaption of the 'usedfor' interface on the given facet11:16
bachenninge: was that sufficiently hand-wavy?11:17
henningebac: yes, thank you ;)11:18
henningeIt just explained why I don't see a connection made in zcml11:18
bachenninge: odd.  i did just put a breakpoint in the 'templates' menu item...and it was not hit11:18
henningebac: makes sense. if the tempalte does not see it it will not call it.11:19
bacduh11:20
henningebac: I'd ust like to get a "repr" of the menu that is actually used in the template11:20
henninges/ust/just/11:20
henningebac: TranslationUnavailable: Translations for this release series are not available yet.11:23
* henninge greps for TranslationUnavailable11:23
bachuh?11:24
bacwhere'd that come from?11:24
henningebac: I commented out both problem sites in the template.11:25
henningelib/canonical/launchpad/webapp/error.py:class TranslationUnavailableView(SystemErrorView):11:25
bachenninge: so do you see something i'm missing in my setup that would cause translations to not be available?11:26
henningebac: check_distroseries_translations_viewable11:26
henningedistroseries.hide_all_translations11:27
henningebac: I'll try setting that to false11:27
bacyes, it is true by default11:28
henningehmph11:29
henningebac: no joy :(11:29
baci made that change to set hide_all_translations=False.  now i get a ComponentLookupError on +hierarchy on all tests11:34
henningebac: oh, really? I just get the old error. But I also reverted all my other changes.11:35
henningedanilos: !11:35
daniloshenninge, hey11:36
henningedanilos: bac created a new distroseseries on a test and tries to render +translations on it but it fails. What could be missing? ;)11:38
daniloshenninge, sorry, otp with bigjools11:38
henninge:(11:38
henningedanilos: np11:38
bachenninge: thank you for your help.  i must EOD now in bitter defeat.12:04
henningebac: sorry but tomorrow is s a new day ... ;)12:06
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
allenapStevenK: There's no branch for you on launchpad/+activereviews, so is your queue position stale data?12:56
* allenap assumes it's stale.13:07
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: bryceh || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== matsubara-afk is now known as matsubara
=== Ursinha-afk is now known as Ursinha
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gmballenap: Can I get a review for https://code.edge.launchpad.net/~gmb/launchpad/launchpadformify-subscribe-view-bug-651240/+merge/37850 please?14:43
allenapgmb: Certainly :)14:43
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: gmb || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gmbTa.]14:45
adeuringallenap: the changes in your branch look good. But what is the reason for the changes? Do you assume that the SQL query for the old method would be too slow?14:46
allenapadeuring: It's easier to select the targets elsewhere, and it's makes the resulting code closer to the existing structural subs code, so it's easier to reuse.14:48
allenapadeuring: My follow-on branch is now simpler to implement.14:48
adeuringallenap: ok. But now you may get a subscription more than once, if somebody is subscribed to two or more bug targets having bug tasks for a given bug14:49
allenapadeuring: That turns out to be a problem. So far :)14:50
allenapadeuring: That turns out to *not* be a problem. So far :)14:50
adeuringallenap: interesting. But anyway, r=me; the possible duplicate results can be treated later14:52
bigjoolswgrant: moving here....14:52
bigjoolswgrant: test_ftparchive.py doesn't seem to test anything?14:53
allenapadeuring: Thanks :)14:55
wgrantbigjools: It tests that a disabled arch doesn't make it into the a-f config. It's from before I had the other tests -- it's redundant now, but more direct. I'm not sure if I should remove it or not.14:58
bigjoolswgrant: I can't see any new assertions in it, just setup14:59
wgrantbigjools: The assertion is a-f config file comparison.14:59
bigjoolswgrant: I can't see any comparisons15:00
wgrantIt's probably a bad place to put it, but the rest of the tests are so black-box that it seems bad to rely on solely on them.15:00
bigjoolslines 81-89 in the diff15:00
bigjoolssets up the disabled das and re-generates config15:01
wgrantbigjools: I'm adding a new disabled distroarchseries. The point of the test is to show that it doesn't show up in the a-f config file. So the a-f config comparison does not change from the original test.15:01
bigjoolswgrant: that's not a good test, since it works with or without that setup15:02
wgrantRight, exactly.15:02
wgrantBut I don't see how else to do it.15:02
wgrantExcept for the even blacker-box approach of the other test.15:02
bigjoolsadd a direct assertion that it's not in the config15:03
wgrantEh. I suppose.15:04
bigjoolswell, that's a bit shit too15:04
wgrantIt is.15:04
wgrantThis part of the publisher is, sadly, shit.15:04
wgrantAnd the tests are worse.15:05
bigjoolsso, we need a test that it does appear when enabled, and not there when disabled15:05
wgrantIdeally. I could just drop this test, since it's covered by the other one now.15:05
bigjoolstrue15:05
bigjoolsthey are better tests15:06
bigjoolssince you have negative and positive15:06
wgrantThey are. But it feels a little awkward to be testing this behaviour only at that very high level.15:06
wgrantBut I guess the code leaves us little choice.15:06
bigjoolsmy only comment about them is that they do a lot of asserting and if one fails you won't see the results of the others15:07
bigjoolsso if you can think of a way to assert all at once that would be better15:07
wgrantThat would certainly be a good thing. But I don't know of any easy way.15:07
wgrantSo, I'll drop the test_ftparchive test.15:08
bigjoolsone way is to make two lists and compare them15:08
wgrantI would love to improve the test, but we sort of need this code soon, and I need to leave for uni in a little over 6 hours. So I might not.15:10
bigjoolsthat's ok15:10
bigjoolsditch the a-f test then15:11
bigjoolsand I'll land the branch15:11
bigjoolsset the MP to "needs review" though :)15:11
wgrantPushing...15:12
bigjoolsstab stab stab dogfood15:13
wgrantIt's still going?15:13
bigjoolsyes.  perhaps it needs more coal.15:13
wgrantIt seriously cannot take that long to dump 100000 rows from a view.15:14
wgrantOr are there other dirty pockets?15:14
bigjoolswell, it's chugging on lucid.  Perhaps I should restart with -s maverick15:15
bigjools:/15:15
wgrantThat may be a reasonable idea.15:15
bigjoolsle sigh15:15
wgrantbigjools: Diff updated. I am happy enough with the branch now.15:16
bigjoolsok15:17
bigjoolswgrant: I'll test and land, thanks for writing it15:17
wgrantThanks.15:18
wgrantA little unfortunate that I couldn't avoid that wonderful [7:]15:18
bigjoolsshrug :/15:19
wgrantBut I tried to block it in a few other places, and they wouldn't work, so...15:19
bigjoolsso it was quicker this time15:21
bigjoolsthe i386 Packages didn't get re-written though :/15:22
bigjoolsI'll try again, the ctrl-c may have done nasty stuff15:22
wgrantUgh.15:23
wgrantThere'll be no dirty pockets.15:23
wgrantYou'll need to flip one of the pubs back to Pending.15:23
bigjoolsyes15:23
bigjoolsor upload a new package, which is a better test15:23
wgrantBut that'll take another 10 hours.15:23
wgrantAnyway, I should sleep.15:23
bigjoolsnope15:23
wgrantGood luck with that...15:23
bigjools5 mins15:24
bigjoolsthanks wgrant15:24
wgrantThanks for fixing my rather spectacular fuckup.15:24
bigjoolsit's not quite done yet, we need to send grovelling emails to PPA owners15:24
bigjoolsbut enough of making you feel bad for one day :)15:24
bigjoolsg'night15:25
wgrantMost of them are probably already ancient, unnoticed history.15:25
wgrantBut we need to check that out, yeah.15:25
wgrantNight.15:25
gmballenap: How's that review looking? It contains a fix for some of the current buildbot breakage so the sooner it's RTL the better.15:30
gmb(I'll split that bit out if necessary, though).15:30
allenapgmb: I'm about half way through it, but it's going quickly. I'll put the pedal to the floor though :)15:31
gmballenap: Ta.15:31
sinzuigmb, was the test wrong? is the subscription to mozilla-firefox (Ubuntu)?15:42
gmbsinzui: Well, I'm just looking now, and I'm getting the opposite results locally. It should be to Mozilla Firefox, not mozilla-firefox (Ubuntu) because the Mozila Firefox task is the primary task for the bug and we subscribe to the bug not the task.15:43
sinzuiah15:43
gmbsinzui: So, the test passes as it is in stable on my local machine. Change it to fix the BB failure and it fails locally.15:43
gmbI think my brain may melt out through my ears shortly.15:45
allenapgmb: Sorry, I fscked up your review by missing the prerequisite branch. Approved though.15:52
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gmballenap: Thanks.15:52
gmballenap: So _subscribers_for_current_user is used quite a bit in the subsequent branch, so I'm happier to leave that as-is.15:53
gmballenap: And _isSubscriptionRequest() is vestigial and no longer in use.15:54
allenapgmb: Yeah, those comments of mine need a lot of salt today.15:54
gmb(Which I just noticed)15:54
gmballenap: Fair enough. I'll remove one and leave the other, then.15:54
=== noodles775 changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [noodles775] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
noodles775Hi allenap, do you have time for https://code.edge.launchpad.net/~michael.nelson/launchpad/656166-expose-dsd-diffs/+merge/3785816:02
allenapnoodles775: otp, but sure.16:02
noodles775Thanks.16:03
* noodles775 fixes conflicts16:05
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: noodles775 || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: noodles775 || queue: [allenap] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== deryck is now known as deryck[lunch]
gmbjml: I have a fix for the xx-person-subscriptions failure if you'd like to cast a weather eye over it; https://code.edge.launchpad.net/~gmb/launchpad/stable-unfark/+merge/3786016:14
jmlgmb: thanks. looking now.16:16
noodles775allenap: ok, the MP is now updated and without conflicts.16:21
allenapnoodles775: Cool.16:22
=== matsubara is now known as matsubara-lunch
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [allenap] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== deryck[lunch] is now known as deryck
=== salgado is now known as salgado-lunch
=== allenap changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== matsubara-lunch is now known as matsubara
=== salgado-lunch is now known as salgado
=== gary_poster_ is now known as gary_poster
=== benji is now known as benji-lunch
sinzuiEdwinGrubbs, ping19:20
sinzuiEdwinGrubbs, do you have time to review19:22
sinzuihttps://code.launchpad.net/~sinzui/launchpad/mlist-sync-0/+merge/37885 that fixes an oops?19:22
EdwinGrubbssinzui: sure19:23
=== salgado is now known as salgado-afk
EdwinGrubbssinzui: r=me19:50
sinzuithanks EdwinGrubbs19:51
=== benji-lunch is now known as benji
=== EdwinGrubbs is now known as Edwin-lucnh
=== Edwin-lucnh is now known as Edwin-lunch
=== ajmitch_ is now known as ajmitch
=== matsubara is now known as matsubara-afk

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