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

=== Edwin-afk2 is now known as EdwinGrubbs
=== adeuring changed the topic of #launchpad-reviews to: On call: adeuring || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
henningeadeuring: Hi! Are you ready to do a review? ;)12:10
henningeIt will only be a minute.12:10
henninge... until I have the mp ready12:10
adeuringhenninge: hrmmm, if it's not too long. Actually, I'm again struggling with §$"&§&§/ private librarian files...12:11
henningeadeuring: It's actually a fairly mechanical change, so it should be easy.12:12
adeuringhenninge: ok, where is the MP?12:12
henningein a minute, still fighting lint ;)12:12
henningeadeuring: https://code.launchpad.net/~henninge/launchpad/db-devel-688479-kill-ut-in-tests-1/+merge/4334212:16
* adeuring is looking12:17
adeuringhenninge: overall, the changes look good. But the disabled tests conern me a bit: Couldn't you simply use the old factory method makeTranslationMessage() unitl the new method can be properly used in these tests?12:34
adeurings/conern/concern/12:34
henningeadeuring: yes, I could. OTHOH that bug will be the next to fix after this bug and I want to remove the old factory method in the next branch for this bug.12:52
henningeadeuring: sorry for being afk, btw.12:52
adeuringhenninge: well, you can fix the factory method first and then change the tests. I am perhaps a bit paranoid, but I remeber a somewhat weird bug in Zope 2 which looked like somebody made a short coffee break while working on a feature but never properly finished that feature aufter the coffee break ;)12:54
henninge;-)12:55
henningeThe factory method will not be fixed but removed.12:55
adeuringhenninge: right, what I meant is: I think you should still use the old mehtod until the new one works properly for the currently disabled tests12:56
henningeadeuring: we keep running into these hen-egg problems with this branch. ;)12:56
henningeIn this case it's not the factory that needs to be fixed but the method under test is still referring to the old model.12:57
henningeadeuring: but I can do that, if you insist ;-)12:58
henningenp12:58
henningeI'll have to keep the old factory around a little longer.12:58
adeuringhenninge: I would feel defeinetly better if all tests stay enabled ;)12:58
henningeadeuring: It is important that you feel well!12:59
henninge;-)12:59
adeuring;)12:59
adeuringhenninge: ok, so, r=me12:59
henningeadeuring: thanks12:59
=== bac changed the topic of #launchpad-reviews to: On call: adeuring, bac || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bachi adeuring.  busy today?14:12
=== bac changed the topic of #launchpad-reviews to: On call: adeuring, bac || Reviewing: -,- || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
adeuringbac: well, I must admit that I focused more on understanding the cause of a bad branch I committed yesterday...14:13
bacadeuring: a worthy goal14:13
=== mrevell_ is now known as mrevell
jcsacketti've got one to throw on the queue, adeuring and bac: https://code.edge.launchpad.net/~jcsackett/launchpad/membership-status-matters-676494/+merge/4330314:17
=== jcsackett changed the topic of #launchpad-reviews to: On call: adeuring, bac || Reviewing: -,- || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bacjcsackett: i'll take it14:17
jcsackettbac: it's the stopgap for the TP stuff.14:17
jcsackettthanks, bac.14:17
=== bac changed the topic of #launchpad-reviews to: On call: adeuring, bac || Reviewing: -,jcsackett || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== matsubara is now known as matsubara-lunch
bacjcsackett: your new test runs in 1.27 seconds!  dodged that bullet!14:43
jcsackettbac: whoo!14:44
jcsackettbac: it ran in 1.13 on my machine. you need something faster. :-)14:44
bachmm14:46
bacmy poor MBP is getting old14:46
bacjcsackett: one suggestion:  ACTIVE_STATES is now defined in two places.  how's about moving that into interfaces/teammembership and fixing the two places that use their own copy?14:46
jcsackettbac: good suggestion, i'll do that.14:47
bacthanks14:47
bacjcsackett: this branch has been referred to as a 'stopgap' but i think these changes needed to be made regardless of what happens in the cleanup TP method14:52
bacregardless, r=bac14:52
=== bac changed the topic of #launchpad-reviews to: On call: adeuring, bac || Reviewing: -,- || queue: [-] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jcsackettbac: i think the long term plan is that the query this branch modifies gets replaces by a single way of cleaning up TP.14:52
jcsackettbac, thanks for the review. :-)14:52
=== deryck is now known as deryck[lunch]
=== salgado is now known as salgado-brb
=== benji is now known as benji-lunch
=== sinzui changed the topic of #launchpad-reviews to: On call: adeuring, bac || Reviewing: -,- || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
sinzuibac: do you have time to review https://code.launchpad.net/~sinzui/launchpad/closed-teams-1/+merge/4337517:48
bacsinzui: of course i do.  i was about to grab some lunch though17:49
sinzuifab17:49
=== adeuring changed the topic of #launchpad-reviews to: On call: bac || Reviewing: -,- || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
adeuringnice weekend everybody17:49
=== deryck[lunch] is now known as deryck
=== salgado-brb is now known as salgado
=== benji-lunch is now known as benji
=== abentley_ is now known as abentley
=== matsubara is now known as matsubara-brb
bachi sinzui19:53
bacin your MP, for rule 1 you say19:53
sinzuihi bac19:53
bacRule 1 means a closed team cannot become open if it is a member of19:53
bac         any team19:53
sinzuithat is wrong19:54
bacok19:54
bacit looks wrong19:54
bacany (closed) team?19:54
sinzuiclosed teams cannot become open if they are a member of another closed team19:55
sinzuiI think I discovered that when writing the test...I should have updated the rule in my notes19:55
bacthat makes more sense19:56
bacthanks19:56
bacsinzui: on TeamSubPolicyError were you forced to define 'doc' to get around your problem?19:59
sinzuiyes19:59
bacdo you know why it happens?  is that explained in 'Invalid'?19:59
sinzuiThe Invalid class has def: doc(): return self.__doc__19:59
sinzuiThat appears to be insane20:00
baci'm not familar with the doc method.  what should it do?20:00
sinzuiI understand that in the ideal that the cause of  type of error is obvious, but then why do they all permit use pass a message?20:00
sinzuibac I really cannot explain the issue well. I cannot think or a good reason why that method (rather than str()) is used to get the description of the issue in the Web UI20:02
bacsinzui: odd20:02
bacsinzui: i think this test is redundant and should just be 'else:'20:02
bacelif policy != TeamSubscriptionPolicy.OPEN:20:03
bacyou just checked policy == OPEN20:03
sinzuiI did see that zope wants unicode, translatable docstrings, so it does funky operations like class.__doc__ = _('my translatable error description')20:03
sinzuibac; I do not think that is right. The else clause covers safe transitions such as from moderated to restricted20:04
bacsinzui: at line 95 you test that the policy == OPEN.  so the next check that policy != OPEN must always be true20:05
sinzuiI think I should add something to the elif.20:07
bacyeah, you need to check what you are coming from20:07
baci think 108 should be team.subscriptionpolicy !=OPEN20:07
sinzuielif policy != TeamSubscriptionPolicy.OPEN and team.policy != TeamSubscriptionPolicy.OPEN20:08
bacyou can eliminate the first part because it is already known to be true20:08
sinzuiWe only want to check the teams when we are certain that the team is transitioning from closed to open20:08
bac108 should test that it is transitioning to closed from another closed20:09
sinzuiokay I understand20:10
* sinzui tries a rewrite20:10
bacno, i'm wrong.  108 should test going from OPEN to closed, so the test should be old == OPEN, since we know the new is one is not OPEN20:11
bacurgh.20:11
bacso i think you have a coding mistake20:11
bacwhy is there not a test case that is broken?20:12
sinzuielif team.policy != TeamSubscriptionPolicy.OPEN20:12
bacteam.subscriptionpolicy20:12
=== matsubara-brb is now known as matsubara
sinzui+    elif team.subscriptionpolicy == TeamSubscriptionPolicy.OPEN:20:15
sinzui^ that makes the tests happy20:15
bacsinzui: but the tests were already happy.  i think you may be missing a test case20:19
sinzuiI do not think so. Do you want a test for moderated to restricted?20:20
sinzuithe else that has a pass in it?20:20
baci don't know20:21
baci'm just bummed that you had a logic error but no test failure20:21
bacdoesn't that indicate a lack of coverage?20:22
sinzuiokay. I will add a test from moderated to restricted20:22
sinzuiIf I had pdb running in that test, I would have found that I never entered the pass block, I looked at the teams20:22
bacyeah, i think it'll be an uninteresting test now but would have shown a failure before.20:22
sinzuiI want to avoid looking at teams20:23
bacyou can add the test and then shelve your code fix and see if it fails20:23
sinzuiit would not have failed, I was just making db checks that I intended to avoid20:23
bacyes you are right20:25
bacthe error just caused you to do checks that are not needed in that case.  there is no way it could fail20:25
bacsinzui: r=bac with these changes.20:27
sinzuialmost finished the test20:27
sinzuibac: http://pastebin.ubuntu.com/542016/20:31
bacsinzui: looks good20:31
=== bac 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 is now known as matsubara-afk

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