/srv/irclogs.ubuntu.com/2013/06/06/#launchpad-dev.txt

=== lifeless_ is now known as lifeless
=== Guest63061 is now known as StevenK
lifelessso, whos up for kicking bug mangler Tobias B ?02:21
wgrantI've fixed those and emailed him02:27
wgrantIf he continues, a suspension will swiftly follow.02:27
StevenKwgrant: I'm confused. The test that fails is actually firing an event which ends up tossing an exception that is caught and then returns false. That code path for the event framework is not called for 3.10.2, so there is no exception, therefore the function returns true.02:58
wgrantStevenK: Have you traced through it in both versions?03:01
StevenKThere is a maze of event functions, but I set a breakpoint on the line that causes the exception in 3.9.1, and it doesn't get hit in 3.10.203:03
StevenKwgrant: The fire() function in 3.10.2 looks very very different -- in 3.10.2, the call to getSiblings() (which is what dies horribly in 3.9.1) is guarded by this._hasSiblings03:17
wgrantStevenK: You'll probably want to step through it and work out what's going wrong.03:22
StevenKhttp://pastebin.ubuntu.com/5737687/ fixes it in 3.10.203:22
wgrantWhat does it mean?03:24
wgrantShouldn't the response always have an event_key?03:24
StevenKAh, but this test is for malformed data03:25
StevenKWhich only has { something: 6 } and no event_key03:25
wgrantY.fire behaves differently in the face of undefined?03:26
StevenKYes, it fails to find silblings in 3.9.1, hence tosses an error03:28
StevenKIt doesn't look for silblings in 3.10.2 and so behaves03:28
wgrantCan you see the rationale for the change?03:31
StevenKwgrant: Based on a quick Googling, it is make fire() more performant03:47
wgrantStevenK: What's the intent of the test?03:49
StevenKwgrant: That manager.sucessPoll() with that responseText returns false03:51
wgrantStevenK: Oh, so it catches the exception, right. That diff sounds OK, then03:53
StevenKWell, in fact it fires a namespace.longpoll_fail_event with the exception, so maybe mine should do the same too03:54
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/add-yui-3.10.2/+merge/16768905:49
wgrantStevenK: Can you remove the try/except?05:51
wgrantSurely that check will work for 3.9.2 as well05:51
wgrantOr are there other potential errors?05:51
wgrant3.9.105:51
StevenKwgrant: Just in case there are other errors, like failure to decode05:51
wgrantStevenK: Would it be better to just throw an exception rather than duplicating the failure firing?05:52
StevenKOh05:53
StevenKCould do that05:53
StevenKwgrant: http://pastebin.ubuntu.com/5737890/05:57
wgrantStevenK: Do we prefer to throw strings or objects (eg. Error)?06:09
StevenKwgrant: I see evidence of both, even in the same JS files06:11
wgrantYay06:11
StevenKlib/lp/registry/javascript/timeline.js:                throw new Error("resize_frame must not be empty.");06:11
StevenKlib/lp/registry/javascript/timeline.js:            throw "Invalid y_align argument: " + y_align;06:11
wgrantYayer06:12
StevenK38 for Error and kin, 11 for bare strings06:13
StevenKwgrant: Diff updated06:23
wgrantStevenK: k06:26
StevenKwgrant: So, launchpad.Edit for DAS.06:27
StevenKwgrant: Shall I use launchpad.Moderate or so then?06:28
wgrantModerate might work indeed06:28
wgrantIn other news, person has too many FKs referencing it.06:28
StevenKNews at 1106:29
wgrantSomewhere around 20006:29
StevenKwgrant: http://pastebin.ubuntu.com/5737952/06:37
wgrantStevenK: Sounds reasonable06:40
=== tasdomas_afk is now known as tasdomas
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/das-setchroot-api/+merge/16746406:47
wgrantStevenK: That docstring is not good. "Set the chroot tarball used for builds in this architecture. The SHA-1 checksum must match the chroot file.", maybe.06:50
wgrantThat even lets you format the docstring legally.06:51
wgrantOtherwise that looks OK, except for the file upload bits, but not much we can do about that because lazr.restful and Zope.06:51
StevenKOh, do you want the XXX there like the other callsites to that horrible method that I will hopefully pay for in blood one day?06:52
wgrantThat would be nice.06:54
StevenKwgrant: ... That I add the XXX, or pay in blood for that horrible method? Both?06:55
wgrantBoth would be ideal.06:55
StevenKhttp://pastebin.ubuntu.com/5737987/06:57
wgrantDocstring should be formatted correctly.06:57
StevenKwgrant: http://pastebin.ubuntu.com/5737994/06:59
wgrantRight.06:59
StevenKwgrant: Diff updated07:06
wgrantStevenK: r=me07:08
StevenKwgrant: Thanks07:10
=== Guest60046 is now known as mars
=== BradCrittenden is now known as bac
=== gary_poster|away is now known as gary_poster
=== wedgwood_away is now known as wedgwood
=== BradCrittenden is now known as bac_
=== bac_ is now known as bac
=== BradCrittenden is now known as bac
=== tasdomas is now known as tasdomas_afk
=== daker_ is now known as daker
=== BradCrittenden is now known as bac
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== wedgwood is now known as wedgwood_away
=== wedgwood_away is now known as wedgwood
=== wedgwood is now known as wedgwood_away

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