/srv/irclogs.ubuntu.com/2005/08/03/#launchpad.txt

dilysMerge to thelove@canonical.com/dists--bazaar--1.5: new build (patch-61)12:49
dilysMerge to thelove@canonical.com/bazaar--devo--1.5: Added a --versions to commands displaying revision lists. (patch-47: Matthieu.Moy@imag.fr)12:50
=== Mez [~Mez@cpc2-lich4-3-0-cust115.brhm.cable.ntl.com] has joined #launchpad
=== ddaa [~ddaa@ordo.xlii.org] has joined #launchpad
dilysMerge to thelove@canonical.com/dists--bazaar--1.5: new build (patch-62)09:26
dilysMerge to thelove@canonical.com/bazaar--devo--1.5: --from and multiple versions support for "missing" (patch-48: Matthieu.Moy@imag.fr)09:28
bob2daf: why does dilys sometimes not have a name?09:29
bob2are those pqm requests really sent without one?09:29
ddaaThe name is the name of the archives of the merged patchlogs (when != from the destination archive)09:56
ddaayou can have several names when doing a roll-up merge09:56
bob2hm, I guess I assumed it just took the From: name of whoever sent the request09:57
ddaaand none in the case of an automatic commit, or same archive merge09:57
ddaait _is_ confusing09:57
bob2you're home again now?09:57
ddaaI only understood it after going WTF at lifeless09:57
bob2hah09:57
ddaaFSVO again, I guess09:58
bob2hah09:58
bob2got time for a python q then?09:58
ddaasure09:58
bob2so, I have a moderately complicated class09:58
bob2with lots of neatly factored-out little methods09:59
bob2testing the little methods is non-trivial, tho, since they depend on object state09:59
bob2would you go with "setting state manually in the test suite" or "making the methods take state as arguments"?09:59
ddaaThat's not a python specific question, rather a TDD best practices question10:00
bob2yeah, true10:00
ddaaWhat I would do, would be doing feature tests, i.e. testing whole stories setting up the state running the method being tested, and checkinh the output and new state, without breaking encapsulation.10:01
bob2hmmm10:01
ddaaSuch tests are useful to have, but that's not the end all...10:01
bob2I have that too, but I feel safer having low-level "this method does what it's supposed to" tests, too10:02
ddaaRight, one of my problem is that I have trouble writing unit tests.10:02
bob2the other issue is that some methofs change external state (e.g. write out files, send email), which makes it a pain to test things higher up the stack10:02
bob2does it seem like a terrible idea to test a subclass that replaces the externally-modifying tests with stubs?10:03
ddaaI'd rather set the state manually in your case. Because if your API is  message-passing style, designed around accumulating state in the object, it would not make sense to graft a functional API on top of it for testing.10:03
bob2that's what I was thinking10:04
ddaaI would stub out the externally modifying classes too. Actually, google for "Mock Objects", that's a kind of stub with testing smarties.10:05
bob2ah, I forgot about them10:05
bob2well, in this context, anyway; I do use them for testing inter-object stuff10:05
ddaaBasically, a mock a stub that provides machinery to test interaction with other objects.10:05
ddaaWhile a mere stub is just something that provides enough API to be able to run the code being tested.10:06
ddaaNice of you to ask me about that, but I'm really no authority in OOP...10:07
ddaare: subclassing10:07
ddaalifeless wolud tell you to use compositon :P10:08
bob2haha10:08
ddaaWhich might well make sense in that case.10:08
bob2that's a good point, actually10:09
ddaato have a separate object to handle communication with the outside world.10:09
bob2thanks for your thoughts :)10:09
ddaamy pleasure10:09
=== Mez [~Mez@cpc2-lich4-3-0-cust115.brhm.cable.ntl.com] has joined #launchpad
=== mvo [~egon@ip181.135.1511I-CUD12K-01.ish.de] has joined #launchpad
mvocould someone of the python people review a interface for me? python-apt has a "pure" python interface now that hides the details from apt_pkg. a quick look if it looks pythonic enough would be really cool11:40
ddaaI do not think we have any python-dev here :P12:21
ddaamvo: where can I find the code you want reviewed? From the ubuntu archive?12:22
mvoddaa: http://people.ubuntu.com/~mvo/arch/ubuntu, michael.vogt@ubuntu.com--2005/python-apt--mvo--0, directory "apt"12:23
mvoddaa: thanks :)12:23
ddaadid not say I would do it :P12:23
mvoddaa: aha :)12:23
ddaaThinking of it, I probably focus on my assigned tasks... but I'm curious :)12:24
ddaa* I should probably12:24
mvoddaa: well, if you look at it, it would be very kind if you could /msg me your comments!12:25
ddaamvo: baz remark, you can just say "baz get http://people.ubuntu.com/~mvo/arch/ubuntu/python-apt--mvo--0/"12:25
mvoddaa: that's a nice feature. since what version of baz does it exist?12:26
ddaa1.312:26
ddaaor 1.4...12:26
ddaaactually, without the trailing slash...12:28
=== camilotelles [~Camilo@201.32.192.121] has joined #launchpad
=== carlos [~carlos@3.Red-80-39-5.pooles.rima-tde.net] has joined #launchpad
dilysNew Malone bug 1609 filed on Bazaar by David Allouche: Possible arch-cache race condition leading to data corruption03:26
dilyshttps://launchpad.ubuntu.com/malone/bugs/160903:26
=== silbs [~jane@217.205.109.249] has joined #launchpad
=== Mez [~Mez@cpc2-lich4-3-0-cust115.brhm.cable.ntl.com] has joined #launchpad
=== lamont [~lamont@15.238.5.126] has joined #launchpad
=== carlos [~carlos@3.Red-80-39-5.pooles.rima-tde.net] has joined #launchpad
=== SteveA [~steve@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
SteveAsilbs: hello04:49
=== jamesh [~james@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== Keybuk [~scott@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
silbsSteveA: hi. welcome back.04:51
=== mpt [~mpt@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== kiko [~kiko@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
kikoahoy04:54
kikocarlos!04:54
kikodaf!04:54
carloskiko, !04:55
lifelessddaa , bob2 - jsuch long running tests are doctests in nasture. that said, you will have many repeats to handle different expected conditions, which is where I'd use unit tests with setup and tteardown that give appropriate eady to test objects04:55
carlosso Brazil was connected again?04:55
kikocarlos, apparently. fuck fuck fuck.04:55
ddaadoctests?04:55
ddaalong-running?04:55
ddaa-ECONTEXT04:56
carloskiko, that's because they know I'm going there and know I need network connection :-D04:56
kikoyeah04:56
=== debonzi [~debonzi@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
kikoso what's up with daf?04:56
morgsComing soon, wireless AP with built in satphone...04:56
carloskiko, waiting for me04:56
carloskiko, at London04:56
lifelessddaa: do a lastlog lifeless ;-)04:59
ddaaDoesn't fit.05:00
ddaaWhat do you mean by "lastlog"?05:00
lifeless'/lastlog lifeless'05:02
ddaamy irc client does not know about this command05:02
lifelessyou and bob2 invoked my name05:02
carlosmpt, around?05:03
ddaaYes, I remember this discussion. But still, I do not see the connection with "doctests in nature" and "long running".05:03
carlosmpt, I got your camera, but I was not able to get the memory card05:03
kikocarlos, what sort of memory card?05:04
lifelessoh, if you need to setup a object and then call method X method Y beother bar on it and they are idempotent methods, a doctest will  fit that quite well IMO05:04
lifelessthough not in th emethod docstring 05:04
carloskiko, sd05:04
kikocarlos, we can buy them cheap here, no worries05:05
carlosok05:05
carloscool05:05
=== BjornT [~bjorn@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
mptcarlos: excellent, thanks05:13
carlosmpt, also, they gave me a couple of rechargable AA batteries and the plug to recharge them for free05:14
jameshcarlos: what sort of camera?05:16
carlosmpt, ? I don't remember the model05:17
mptcarlos: Let me guess, it's a Spanish battery charger?05:18
carlosmpt, yeah ;-)05:18
carlosEuropean05:18
mptjamesh: Pentax S-5005:18
mptcarlos: Yeah, my last one came with a US battery charger that was similarly useless05:18
mptcarlos: you can keep it :-)05:18
jameshmpt: cool.  that's the updated version of my camera (I have the S40)05:20
carloswell, It's with my luggage and I already checkin so...05:20
=== salgado [~salgado@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
carloslifeless, any chance to process my cherrypick request?05:22
lifelesscarlos: dude, we've been offline for 2 days05:23
lifelessno internet at the sprint or the hotel.05:23
carloslifeless, I know, that's why I'm asking :-)05:23
carlosif there is a chance05:23
lifelesscarlos - it conflicts05:24
carlosfuck05:24
lifelessstub tried 05:24
carlosok05:24
carlosthen will need to wait until next week05:24
carlosI don't have time to fix it05:24
carlosbefore the flight05:24
lifelesscan it wait till the amin rollout on monday/tuestday ?05:24
carlosyeah, because I cannot fix it now, it should wait anyway05:25
=== stub [~stub@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== carlos -> plane
carlossee you!05:41
=== Mez [~Mez@cpc2-lich4-3-0-cust115.brhm.cable.ntl.com] has joined #launchpad
ddaamorgs: ping06:19
morgsddaa: gnip06:20
ddaais your change for branch display currently on staging?06:20
morgsddaa: I'll take a quick look...06:20
morgsddaa: yes, here's an example: https://staging.ubuntu.com/products/gstreamer06:21
ddaaIs there a policy for using tables for everything?06:22
=== lifeless [~robertc@dsl-211.17.240.220.rns02-kent-syd.dsl.comindico.com.au] has joined #launchpad
ddaaI think that branch listing would be better served, semantically, by a dt/dd list06:23
ddaaand that would mitigate the ridiculously-wide-table problem06:23
morgsddaa: I'm fine with that, I'll give it a try on Monday06:24
ddaathus helping avoid the annoyingly-small-font-size problem...06:24
ddaasabdfl had me refocused on all-things-branches-and-bazaar-in-launchpad-and-friends recently06:24
morgsDo you think the title and URL are the right things to display?06:25
ddaaso, time permitting, I would be able to contribute more code to this kind of things06:25
morgsGreat06:25
ddaaBut I'm so happy with your work, that I really see little reason for that :)06:25
=== ddaa checks out the db schema
morgsddaa: If you think there's anything a user would benefit from, let me know. AFAIK the url is the most useful thing?06:30
ddaaURL is the only useful thing ATM06:30
morgsOK06:30
ddaaThere's something in my pipe coming right from HQ which I suspect is related to branch display. I think in the short term you can just get away with listing branches in a <ul>06:31
ddaaI mean, listing urls06:32
morgsMakes sense. OK.06:32
ddaaIn the medium term I gather I'm expected to write something that will make the rest of the webapp world pale in humility ;)06:32
morgsSort of google maps meets the bazaar? :-P06:33
morgsAnyway, I'm out of here.06:34
=== ddaa looks at google maps
ddaaYeah, sort of something like that.06:35
ddaaOMG, this satellite view thing is painfully cool06:36
=== Seveaz [~seveas@seveas.demon.nl] has joined #launchpad
=== Seveaz is now known as Seveas
dilysMerge to thelove@canonical.com/dists--bazaar--1.5: new build (patch-63)06:54
dilysMerge to thelove@canonical.com/bazaar--devo--1.5: Implicit ^...$ around the regexps for rbrowse (patch-49: Matthieu.Moy@imag.fr)06:55
=== mvo [~egon@ip181.135.1511I-CUD12K-01.ish.de] has joined #launchpad
=== bradb [~bradb@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== cprov [~cprov@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
jordihmm07:34
jordiit's tricky to find the url that generates statistics for all the breezy modulesi n Catalan07:34
jordiah, got it07:35
dilysNew Malone bug 1612 filed on The Launchpad by Scott James Remnant: After logging in, launchpad leaves me up a blind alley without my clothes07:42
dilyshttps://launchpad.ubuntu.com/malone/bugs/161207:42
dilysNew Malone bug 1613 filed on The Launchpad by Robert Collins: cannot sign coc due to launchpad ignoring signing keys07:44
dilyshttps://launchpad.ubuntu.com/malone/bugs/161307:44
=== sabdfl [~mark@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
dilysNew Malone bug 1614 filed on The Launchpad by Robert Collins: bugs related people portal should uniqify the maintainers list07:53
dilyshttps://launchpad.ubuntu.com/malone/bugs/161407:53
bob2lifeless: yeah, I have both doctests and unittests07:57
cprovlifeless: I really didn't get your point on bug # 1613, want to talk about .08:02
=== cprov got it now
bob2(for that reason)08:14
=== stub [~stub@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== salgado [~salgado@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== jamesh [~james@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== kiko [~kiko@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== debonzi [~debonzi@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== cprov [~cprov@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== Keybuk [~scott@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== SteveA [~steve@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== lilo [lilo@levin-pdpc.staff.freenode] has joined #launchpad
lilohi all08:44
KinnisonHello lilo08:45
lilosorry about the kline earlier, one of your IP's hit a user limit.... we have to kline on those to catch bot attacks quickly enough08:45
liloI added new I: lines, so the problem shouldn't recur anytime soon08:45
lilo(hey Kinnison)08:45
Keybuklilo: are bots typically registered with NickServ?08:47
KinnisonThanks for that lilo08:47
KinnisonIt's a conference IP :-)08:48
lilooic! yah, we need to figure out how to get people to check with us before setting those up08:48
Keybukif not, that could be a sweet optimisation for the auto-killer08:48
lilomore likely we just need some way to look for conferences in process and plug a calendar into the kline process08:48
liloI've been thinking about that, but we don't have the facilities yet08:48
=== lilo notes that #freenode-registry can use more Python people 8)
liloanyway, let us know if you need anything at all08:49
SteveAcheers lilo08:54
=== Mez [~Mez@cpc2-lich4-3-0-cust115.brhm.cable.ntl.com] has joined #launchpad
dilysMerge to thelove@canonical.com/dists--bazaar--1.5: new build (patch-64)09:05
dilysMerge to thelove@canonical.com/bazaar--devo--1.5: baz lock-revision without argument, informative message at the end (patch-50: Matthieu.Moy@imag.fr)09:06
=== mpt [~mpt@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== BjornT [~bjorn@200-171-140-32.dsl.telesp.net.br] has joined #launchpad
=== sabdfl [~mark@sabdfl.silver.supporter.pdpc] has left #launchpad []
=== sabdfl [~mark@sabdfl.silver.supporter.pdpc] has joined #launchpad
=== sabdfl [~mark@sabdfl.silver.supporter.pdpc] has left #launchpad []
dilysMerge to rocketfuel@canonical.com/launchpad--devel--0: [trivial, partial rs=SteveA]  nuke the old MaloneApplicationView, fix a typo and deal with null SourcePackage.currentrelease -- fixing bug 1549 in the process. Also fixes (once and for all) the handling of the bugtrackertype enum in checkwatches (patch-2190: christian.reis@canonical.com)10:11
kikootherwise pqm might go rusty!10:37
=== warthylog [~warthylog@port49.ds1-van.adsl.cybercity.dk] has joined #launchpad
=== Topic for #launchpad: Discussion with Launchpad users and developers. || https://launchpad.ubuntu.com/ || Includes Rosetta and Malone.
=== Topic (#launchpad): set by SteveA at Thu Jul 28 19:07:42 2005
dilysMerge to rocketfuel@canonical.com/launchpad--devel--0: [trivial]  fix bugs link in facet menu for person (patch-2191: james.henstridge@canonical.com)11:32

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