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

=== slank is now known as slank_away
StevenKFailed example:00:16
StevenK    print concrete_one_zero.files[0].libraryfile.read()00:16
StevenKDifferences (ndiff with -expected +actual):00:16
StevenK    + None00:16
StevenK:-(00:16
StevenKwgrant: From what I can see, everything should be okay, but why does read() return None :-(00:21
wgrantStevenK: You sure you opened it? You might even need to call read() on the object that gets returned from open()00:26
StevenKread() will autoopen00:26
StevenK(And autoclose, which is handy)00:26
wgrantStevenK: Is it using a real librarian?00:27
wgrantIf you break in the test, can you see the file?00:27
wgrantHave you checked the librarian log?00:27
StevenKIt's a doctest, breaking is hard00:27
lifelessyou could fix that00:28
StevenKpdb inside a doctest has always broken00:28
StevenKAnd the only way I know to fix it is to destroy all doctests00:28
wgrantIt'll break00:29
wgrantIt just won't have useful context00:29
wgrantYou can still poke around outside it00:29
StevenK(Pdb) p self._datafile00:31
StevenK<lp.services.librarian.client._File object at 0x10489890>00:31
StevenK(Pdb) p self._datafile.read()00:31
StevenK'None'00:31
wgrantDid that make a request to the librarian?00:31
wgrantCan you seek?00:31
wgrantWhat does it mean for it to return None?00:31
StevenK*** ForbiddenAttribute: ForbiddenAttribute('seek', <lp.services.librarian.client._File object at 0x10489890>)00:31
StevenKwgrant: Ah, but it isn't None, it's the string None00:32
wgrantAh, true00:32
wgrantSo maybe your code is buggy :)00:33
StevenKYes, I'm checking00:33
StevenK(Pdb) p fs['file_content']00:34
StevenKMiniFieldStorage('file_content', 'first attachment file content \xff')00:34
StevenK(Pdb) p fs['file_content'].file00:34
StevenKNone00:34
StevenKwgrant: http://pastebin.ubuntu.com/1618379/00:42
StevenKwgrant: Does that address your concerns?00:42
wgrantStevenK: Can you confirm that the test fails if you go back to the code that I reverted?00:43
wgrantie. without the reretrieval00:43
StevenKI have already confirmed before I pasted the diff00:43
wgrantGreat00:43
wgrantSounds reasonable, then00:43
StevenKwgrant: I thought those were your two concerns? A XXX in the function itself, and a test00:45
StevenKwgrant: The MP is updated00:52
wgrantStevenK: Looking01:03
wgrantStevenK: Oh01:07
wgrantStevenK: What about signature_content?01:07
StevenKI think that one is immune01:08
StevenKLet me check01:08
StevenKIn [6]: l.files[0].signature.read()01:11
StevenKOut[6]: '-----BEGIN PGP...01:11
StevenKIt's ASCII-armored, so coercing to unicode will not negatively impact it01:11
StevenKIn [8]: f = open('/tmp/f.tar.gz.asc').read()01:12
StevenKIn [9]: lfa == f01:12
StevenKOut[9]: True01:12
wgrantStevenK: Yeah, but still01:13
wgrantASCII-armored sigs are designed to survive exactly this sort of thing, but we should probably apply this hack to all lazr.restful file inputs01:14
lifelessyou could fix zope.01:14
* lifeless waits for the laughter01:14
wgrants/laughter/stabbage/01:14
StevenKwgrant: http://pastebin.ubuntu.com/1618447/01:16
wgrantStevenK: :)01:18
StevenKI can add a \xff to the signature content if you wish01:19
StevenKJust to be sure01:20
wgrantMight as well01:21
* wgrant lunches01:21
StevenKwgrant: Back from lunch?02:48
wgrantStevenK: Yeah02:53
StevenKwgrant: Should I take the Branch:+register-merge critical?02:53
wgrantStevenK: Worth a try02:54
StevenKwgrant: So the method to find a branch needs a rewrite and new indicies?02:55
wgrantStevenK: Don't think of it as a rewrite and new indices02:55
wgrantThink of it as a redesign approximately from scratch02:55
wgrantIt may or may not need new indices02:55
wgrantBut the search method needs to be rethought with performance over more than 1000 branches in mind02:56
=== Ursinha_ is now known as Ursinha
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/destroy-private-projects-feature-flags/+merge/14702206:19
wgrantStevenK: r=me06:27
StevenKwgrant: And my QA is done06:27
StevenKwgrant: You want a NDT?06:27
wgrantStevenK: Please :)06:28
wgrantThe indices are there now06:28
wgrantSo we should be good to go06:28
StevenKAnd kills 4 criticals06:30
StevenKYou have a lock on LPS?06:30
wgrantStevenK: Apparently. It's yours06:33
wgrantI sadly can't really close the vocab critical06:33
wgrantIt's still pretty awful for bad names06:33
wgrantDepending on the number of builds06:33
StevenKAww06:33
StevenKwgrant: Are you going to land 7?07:41
wgrantStevenK: Not just yet07:46
wgrantGoing to wait and see if the world ends07:46
StevenKFair enough07:46
wgrantIt's still safe to back out the ndt at this point.07:46
StevenKMmmm, 7 is the point of no return07:46
wgrantExactly07:46
StevenKIt's probably landable and deployable tomorrow07:47
wgrantThat's the plan07:47
StevenKIt's a good plan07:47
wgrantHm, I should fix tuolumne07:47
=== wgrant changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: - | Firefighting: - | Critical bugs: <130
adeuringgood morning08:48
jtvGood morning adeuring09:06
adeuringhi jtv!09:07
jtvNice weather today.  Let me just check if any of my mangoes are ripe yet.09:08
lifelesshi09:45
=== yofel_ is now known as yofel
lifelesswhere should stale vcs mirrors be reported these days09:45
lifelesshttps://code.launchpad.net/~testing-cabal/testtools/trunk only tracks up to the 24th jan09:46
lifelessthere have been 27 or so commits since spread over the interveneing period09:47
* wgrant guesses it's a https github import09:47
wgrantIndeed it is09:47
jmlwgrant: is there an open bug re that?09:51
wgrantjml: Yes09:52
jmlwgrant: got it. ta.09:53
wgranthttps://bugs.launchpad.net/bugs/107246109:54
_mup_Bug #1072461: Code import from github does not take latest commits <code-import> <git> <Launchpad itself:Triaged> < https://launchpad.net/bugs/1072461 >09:54
=== slank_away is now known as slank
=== teknico___ is now known as teknico
=== teknico__ is now known as teknico
slankIs there a way to get a list of branches for a user/project via the api? I'd like to grab the equivalient of code.lp.n/~user/project15:07
=== teknico_ is now known as teknico
=== teknico_ is now known as teknico
james_wslank: I don't know of a way to do that without filtering client side16:51
slankjames_w: that's probably ok. perhaps there's a way to get branches for a user? I haven't found that either.16:52
james_wslank: user.getBranches()16:53
james_wslank: I can't link directly, but the second "Custom GET method" under https://launchpad.net/+apidoc/devel.html#person16:53
slankjames_w: ah. thanks!16:55
=== slank is now known as wedgwood
=== matsubara is now known as matsubara-afk
=== mwhudson_ is now known as mwhudson

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