/srv/irclogs.ubuntu.com/2012/03/25/#launchpad-dev.txt

cody-somervillepython-launchpadlib is not currently installable from launchpad ppa on natty:03:19
cody-somerville python-launchpadlib : Depends: python-lazr.restfulclient (>= 0.11.2-1) but 0.11.1-1build1 is to be installed03:19
cody-somerville                       Depends: python-lazr.uri (>= 1.0.2-4) but 1.0.2-3build1 is to be installed03:19
wgrantcody-somerville: Natty's no longer supported for Launchpad development.03:41
cody-somervilleIt hasn't even been a year since Natty was released.03:41
lifelesscody-somerville: its best effort only03:42
lifelesscody-somerville: not deliberately broken, but no effort made to spport it03:42
wgrantEveryone else who has wanted to run Launchpad has been running either Lucid or the latest stable.03:46
wgrantNobody complained when we proposed not actively maintaining Natty in ppa:launchpad, so we stopped.03:46
cody-somervilleis python-launchpadlib getting backported in another PPA?03:46
lifelessyou can use the one in natty itself03:47
* cody-somerville manually patches his launchpadlib with https://code.launchpad.net/~leonardr/launchpadlib/handle-unknown-token/+merge/5156303:50
StevenKcody-somerville: Are you subscribed to launchpad-dev? That's where I announced that Maverick was removed from the LP PPA.05:37
cody-somervilleStevenK, I am. I use natty not maverick though.05:38
StevenKI announced that Natty might get shot in the face, though.05:39
StevenKwgrant: I figured out why my rev broke. IBugSet.createBug() calls notify() *then* _setInformationType()05:39
StevenKwgrant: But I'm not sure how to test that. The fix, of course, is to call _setInformationType() right after the bug is created.05:40
wgrantStevenK: Right, that's what I suspected immediately :)05:47
wgrantStevenK: Should be very easy to test.05:47
wgrantStevenK: You just have to create a private bug on a product with a structsub, and check the notification recipients.05:47
wgrantStevenK: And no, the fix is to merge _setInformationType into whatever creates the bug.05:52
wgrantStevenK: private/security_related exist only for compatibility; they should not permeate that far into the model.05:52
StevenKI'm still questioning if they will die completly.05:54
StevenKBut yes -- I can bring forward convert_to_information_type() in adapters.bug from the next branch and pass in private, security_related and information_type to the Bug() call.05:55
wgrantDifferences (ndiff with -expected +actual): - Time zone: Europe/London (UTC+0000) + Time zone: + Europe/London + (UTC+0100)06:13
wgrantHah06:13
wgrantI guess that'll affect all builds for the next view months...06:13
wgrantfew06:13
StevenKwgrant: Oh sigh06:17
lifelessStevenK: yo can subscribe, create a bug, in your handler check the information type07:20
wgrantBut you also need the integration test that I outlined above.07:24
StevenKI tried to write it, it fails either way.07:24
czajkowskialoha11:18
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
rick_h08025419:33
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
lifelesshttp://www.soapatterns.org/masterlist_c.php22:36
bigjoolslifeless: people still run php!22:39
lifelessvery many22:40
lifelessprobably generates most pages on the internets22:40
* bigjools was being tongue-in-cheek22:40
bigjoolsglad you are thinking about the patterns anyway22:41
bigjoolsit's nice to see some abstractions written down22:41
wallyworld_bigjools: boo!22:42
bigjoolswallyworld_: enjoy your drag club?22:42
wallyworld_how's your ticker this morning?22:42
wallyworld_yes, *very* informative22:42
StevenKwgrant: http://pastebin.ubuntu.com/899767/  is my test complete bong?22:52
wgrantStevenK: Does it work?22:53
wgrant(no, it doesn't -- so yes, complete bong :))22:54
wgrantStevenK: You need to check the recipients *at creation time*.22:55
wgrantThis is well after.22:55
wgrantYou could do what lifeless said, or you could create a bug and inspect the BugNotificationRecipient table afterwards, or preferably both.22:55
StevenKI'd rather just one nice test.22:56
StevenKBut okay, I need to reach into BugNotificationRecipient with Storm.22:56
wgrantStevenK: You need an integration test.22:59
wgrantBut both would be preferable.22:59
StevenKwgrant: I thought the one I pasted was?23:01
lifelesswgrant: StevenK: checking the BNR table afterwards is a test I would delete23:01
wgrantlifeless: Why?23:01
lifelessnotificationservice won't have that table23:01
wgrant.............23:01
wgrantnotsureifserious23:01
lifelesstotally23:01
wgrantThen you'd change the test to check the notification service?23:01
lifelessuse abstractions, don't test across them23:02
bigjoolscompletely23:02
wgrantlifeless: THen mock out the notification service.23:02
wgrantBut don't just mock out one of the Zope subscribers and check that single callsite.23:02
wgrantNot for something like this.23:02
StevenKwgrant: Right, and there should be *one* notification to the reporter?23:07
StevenK(Currently, I have two)23:08
wgrantStevenK: And potentially one to the security contact or bug supervisor.23:08
lifelessStevenK: you probably have two due to bug23:10
StevenKlifeless: Yes, I know, thank you.23:10
lifelessbug 13230023:10
_mup_Bug #132300: mail for new bugs inconsistent with other bug mail (ignores mail-on-my-actions disabled, missing footers, duplicate mail vs structural subscriptions) <email> <lp-bugs> <notifications> <Launchpad itself:Triaged> < https://launchpad.net/bugs/132300 >23:10
lifelessStevenK: ^ was digging the number up23:11
StevenKlifeless: I have two due to the critical filed on the weekend.23:11
StevenKThe one I've been thinking about, and kicking myself for since I found about it.23:11
lifelessStevenK: bug 963539 ?23:13
StevenKlifeless: Yah.23:13
StevenKwgrant: http://pastebin.ubuntu.com/899792/  Given that test (which passes), what other test do I need?23:14
wgrantStevenK: There's no existing API for that?23:14
StevenKNot that I could see.23:15
wgrantAnd that test fails before the reversion?23:15
StevenKwgrant: Yeah, I resurrected the changes, and the test failed. Applying the diff I wrote in anger on Sunday fixes it.23:16
lifelesswgrant: equally, or better, mock out the existing notification api to check its private. Oh wait, thats what I suggested.23:17
wgrantlifeless: Mocking out the API called by the subscriber, maybe.23:18
wgrantBut the subscribers are too muddy now to safely mock out directly.23:18
wgrantErm23:19
wgrantWho is this Eike character, and why did they readd the crap that you removed from that bug description? :/23:19
StevenKwgrant: I can reach into BugNotification and pull out the record and then call .recipients() on it, or I can just Join() through to BNR.23:19
StevenKI picked the latter.23:19
lifelesswgrant: i suspect a bug in 'bug-repo-syncer'23:20
wgrantIndeed it is.23:21
wgrant./bug_repo_syncer/common.py:        #Match discovery bug link: "[@[@BUGLINK "bug #123"@trac @]@]"23:22
_mup_Bug #123: There's no direct way to see the project info when translating it <lp-translations> <Launchpad itself:Fix Released> < https://launchpad.net/bugs/123 >23:22
lifelessbug 96486223:22
_mup_Bug #964862: something is damaging the bug description in bug 936502 <bug-repo-syncer:New> < https://launchpad.net/bugs/964862 >23:22
wgrantlifeless: So, yes, ideally we'd mock out the notification API, except that LP's "lol what's an abstraction" policy makes that difficult to do reliably without checking the DB tables.23:25
StevenKwgrant: So I've fixed and can put this up for review again, or I need another test?23:26
wgrantStevenK: Is information_type now handled natively?23:27
StevenKwgrant: information_type is now set correctly when the bug is created.23:28
lifelessthats a different question :P23:29
wgrantAll three attributes need to be set correctly in the initial INSERT23:29
wgrantAnd preferably the method only takes information_type23:29
wgrantCalculating private and security_related from that.23:30
StevenKwgrant: All three attributes are set correctly when the bug is created.23:30
wgrantThey were last time too.23:30
wgrantWhat we care about is *in the initial INSERT statement*.23:30
StevenKSorry, yes, set correctly during the initial INSERT.23:31
wgrantSounds reviewable :)23:31
StevenKwgrant: http://pastebin.ubuntu.com/899809/23:33
wgrantIndeed.23:34
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/bugs-use-information_type-redux/+merge/99236 if you're offering23:40
wgrantStevenK: Will look in a sec.23:43
wgrantTrying to convince the staging mailbox to function...23:43
wgrant"Downloading message header 1 of 345783"23:44
StevenKHaha23:44
StevenKHmmmm. Mail. I should read that.23:44
wgrantStevenK: btw, you may have seen that cocoplum scripts are nodowntime now.23:47
StevenKI have, yes.23:47
wgrantStevenK: This means that everywhere that touches the DB is nodowntime.23:47
wgrantSo we no longer have to inject cocoplum deployment sequence points.23:47
wgrantFor this sort of thing.23:48
lifelesspoppy still has a DB connection23:48
wgrantlifeless: Yes, but it doesn't use it.23:48
wgrantSo it doesn't matter.23:48
lifelesswouldn't it be a lot safer to remove it23:48
lifelessso that there is no timebom23:48
wgrantOh yes.23:48
lifelessb23:48
wgrantI actually looked last week at deleting poppy from the tree.23:48
lifelesso\o/23:48
wgrantSadly it would require the extraction of the SSH server stuff.23:48
lifelessso ?23:49
wgrantWhich is slightly less than trivial, so I didn't JFDI.23:49
lifelessthat needs extraction anyhow23:49
wgrantSure.23:49
lifelessfair enough23:49
wgrantHad it not required that, it would have been an obvious JFDI task.23:49
wgrantStevenK: Can I expect a followup in the near future that makes information_type the native form?23:50
StevenKwgrant: That's in the branch that was reviewed on Friday23:51
wgrantAh23:51
wgrantIndeed.23:51
StevenKWhich depends on two DB patches23:51
wgrantDoes not.23:51
wgrantThe change I want is purely internal API changes.23:51
wgrantCurrently things still pass private/security_related flags around.23:51
wgrantWhen they should only deal with information_type.23:52
StevenKRight. That's the next branch.23:52
wgrantThe Bug model can deal with mapping that to private/security_related.23:52
wgrantStevenK: I think I mentioned this in the last review, but from the diff it looks like bug.private writes were previously permitted by the security policy, but I don't see any ZCML changes in this brnach to prevent that.23:52
StevenKwgrant: wgrant: private/security_related aren't in the ZCML, so I'm not sure how to tell it "forbid anyone setting these"23:58

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