/srv/irclogs.ubuntu.com/2012/04/09/#ubuntuone.txt

mandelmorning all!08:40
=== webm0nk3y is now known as jdo
=== jdo is now known as jdobrien
=== jdobrien is now known as webm0nk3y
gatoxgood morning!11:14
mandelgatox, morning!!!!11:22
mandelgatox, I have tests for you to run!11:22
mandel:P11:22
gatoxmandel, hi! give me the tests! :P11:23
mandelgatox, they are here: lp:~mandel/ubuntu-sso-client/fix-activation-tests11:23
gatoxmandel, do you enjoy your holidays?11:23
mandelgatox, you need the ubuntuone-dev-tools stuff from last week11:23
mandelgatox, yes I did, no computers and just internet connection on the phone, it was great :)11:23
mandelgatox, if this works there is one thing to always remember, defer.maybeDefered(listener.soptListening)11:27
gatoxmandel, jejejee ok, let's see11:27
gatoxmandel, may it be that something is missing?? it says that there is no module "tx"11:28
mandelgatox, remember to branch lp:~mandel/ubuntuone-dev-tools/mocked-webserver and put it in the path :)11:29
gatoxmandel, ahhhhh11:29
mandelgatox, uhhhhh la chicas son guerreras!11:30
mandelgatox, http://www.youtube.com/watch?v=JdedFCz5Agk11:30
mandelgatox, welcom to the spanish 80s music :P11:31
gatoxmandel, juazzzzzzzz11:31
gatoxmandel, well..... it's not so different from some 80 music from argentina11:32
mandelgatox, we might be the root cause of that hehe11:32
gatoxjejeje11:32
gatoxmandel, it seems that it was really cheap to do these kind of video clips jejee11:33
mandelgatox, works?11:43
gatoxmandel, i'll restart and retry..... because i had the same 17 errors as always11:43
mandelgatox, sure, can you run and let me see the output?11:44
gatoxmandel, yes11:44
mandelgatox, give me my errors! :P11:56
gatoxmandel, always the same http://paste.ubuntu.com/921696/11:56
gatoxuhhhhh more errors now..... weird11:57
gatoxrunning it again11:57
mandelgatox, ok11:57
gatoxmandel, no....... again the same errors..... now instead of 17 i have 9612:00
mandelgatox, hm.. that is very very weird12:00
gatoxmandel, can we trust in my vm? :P12:01
mandelgatox, yes.. I mean, in a way we can trust the error from the reactor12:01
mandelgatox, I wonder.. is that vm very very slow when you use it?12:01
gatoxmandel, nop..... i don't use it too much..... except for running tests and executing u1....... but it's not slow12:02
mandelgatox, this is going to sound evil.. but can you try to run the twisted tests on that machine :)12:08
mandel?12:08
gatoxmandel, i can try.......12:08
* mandel evil laughs 12:08
gatoxmandel, where is the repo? http://twistedmatrix.com/trac/12:08
mandelgatox, I'm getting a could not connect to http://twistedmatrix.com/trac/12:09
mandel:(12:09
gatoxmandel, me too12:09
gatoxthat's why i ask :P12:10
mandelgatox, che, se fue todo a la mierda en twisted lol12:10
gatoxmandel, i'm not feeling really lucky here12:10
gatoxjeje12:10
mandelgatox, we finally managed to close the reactor!12:10
mandelhehehe12:10
gatoxjejejejejjee12:10
gatoxmandel, so......... we should migrate to qthread now...... :P12:11
gatoxjeje12:11
mandelgatox, no threads please..12:11
alecuhello, all!12:23
ralsinaGood morning!12:48
gatoxralsina, hi!12:49
ralsinahello gatox, what did I miss the last week? :-)12:50
ralsinaLooks like I can't connect to canonical IRC. Nice way to start the week12:50
gatoxralsina, weird...... mmmmmm you miss my life changing decision ejejjej now i begin the morning doing exercise, more energy during the day.....12:51
gatoxralsina, about work..... just bugs :P12:51
gatoxjje12:51
ralsinagatox: good idea, don't start at 40, everything hurts at 40 ;-)12:52
ralsinaok, switching to local quassel, brb12:52
alecugatox, I've just confirmed it. On linux, calling any method in SyncDaemonTool will start syncdaemon, even when .start() was not called before.13:14
gatoxalecu, right..... so, it's consistent in that way13:15
alecugatox, so, on windows it should do the same.13:15
gatoxalecu, so, the thing is.... the code is ok but it shouldn't start sd during u1sdtool -q?13:16
gatoxalecu, or i missing ssomething?13:16
alecugatox, "your branch fixes the bug, but the reality of the milanesa is that an instance of the SyncDaemonTool class should not start SD when it's created".13:18
alecugatox, so, if we fix that milanesa, your branch should not be needed.13:19
gatoxalecu, right13:19
alecugatox, but I still don't have a clear picture on how to fix this.13:20
gatoxalecu, so..... we should refactor the milanesa :P to start sd on start..... or when the user call the methods?13:20
alecugatox, you mean "start sd when the .start() method is called"?13:21
alecugatox, that's one option, yes.13:22
gatoxalecu, yep13:22
dobeyrefactor the milanesa? like, make it so vegan types can eat it? milanesa sin pollo?13:23
gatoxdobey, never take out the meat.... put more meat :P13:23
nessitaalecu: SyncDaemonTool does not start a syncdaemon if is not running on linux (hola!)13:23
dobeyhehe13:24
gatoxalecu, should i start working in that and see how we can refactor that.... or do you want to analyze other options?13:24
alecunessita, if I call any method in a SyncDaemonTool instance on linux, an SD instance will be started.13:24
alecunessita, .start, or any other method too.13:25
nessitaalecu: hum, but the simple fact of creating an instance of SDT does not start it, no?13:25
nessitaalecu: and in windows it does13:25
alecunessita, no. And we have already established that :-)13:25
alecunessita, right.13:25
alecunessita, so: on linux, creating an instance of SyncDaemonTool will not start SD. But calling any method will.13:26
alecunessita, on windows, creating an instance will immediately start SD.13:26
nessitaok, so my review was requesting that the simple fact of starting a SDT in windows will not start the service, to match linux behaviour13:26
gatoxalecu, right..... in windows we are having the problem on SDT __init__13:27
alecunessita, right: we need SDT not start on __init__. But we should also make it so calling every method should start it, to match linux.13:27
nessitaalecu: +113:27
gatoxalecu, maybe this is wrong..... but.... can't we decorate the methods of sdt to start sd if necessary?13:28
alecugatox, sounds like a nice solution13:29
ralsinagood morning alecu, dobey, nessita!13:30
gatoxalecu, nice :D..... do you want me to do that? (in a different branch)13:30
alecugatox, perhaps in SyncDaemonToolProxy13:30
nessitahola ralsina13:30
ralsinanessita: I am still catching up on mail, will reply to yours in a bit13:30
alecuhola ralsina!13:30
nessitaralsina: ack13:31
ralsinadid I miss anything interesting last week?13:31
dobeyhola ralsina13:31
alecugatox, so: I think we should not add a decorator to every method, but instead only add some smarts to SyncDaemonToolProxy.call_method13:35
gatoxalecu, sounds good13:36
gatoxalecu, ok, i'll start with that :D13:37
alecugatox, also, there's some interesting stuff in there too, like "_call_after_connection"13:39
gatoxalecu, yep13:40
alecugatox, so I think that some bits are already there, like waiting for the connection before calling. It should also start the self.client if it was not started.13:40
alecugatox, take a look there, and ping me if it does not make sense.13:41
gatoxalecu, ok13:41
joshuahooverralsina: win release update? :)13:51
ralsinajoshuahoover: still catching up13:52
ralsinajoshuahoover: but I assume it's missing a bugfix or two :-/13:52
ralsinabriancurtin: you here already?13:52
briancurtinralsina: yep, typing up a response to that13:52
ralsinabriancurtin: cool :-)13:52
briancurtinjoshuahoover: i put together a release on friday that included a (kind of hacky) fix to allow the cloud-to-computer installation step to work properly, not sure what its status is with QA13:53
somethinginteresHi, I have just installed and updated Ubuntu 12.04 Beta 2. I am trying to login to my Ubuntu One account and am being told the password I used to login to my PC no longer matches my login keyring or something to that effect. Ideas?13:55
dobeydid you install ubuntu on top of an exsiting ubuntu installation, and carry over your $HOME directory?13:57
somethinginteresdobey: I installed over the top of a Debian install. Carrying over my $HOME from a separate partition13:58
dobeyah13:58
dobeyand did you set up your user in the new install with a different password than you were using on the previous install?13:59
somethinginteresdobey: yes, I did. Different password to my old user. Same name though.13:59
dobeysomethinginteres: you will have to unlock the keyring using the old password then. you should be able to change the keyring password in seahorse, to match your new login password, if you want it to unlock on login14:00
somethinginteresdobey: Let me give that a go.14:01
somethinginteresdobey: hmm, using the old password worked. Trying to change the "Login Keyring" password in Seahorse reports that the "original password" I entered (aka the correct old password from Debian) didn't match.14:03
dobeyhmm14:03
dobeythat's odd14:04
dobeyif it worked to unlock it, it should work to change it14:04
somethinginteresdobey: I'll have to investigate further if the problem arises elsewhere. Thanks for the fix in this case anyway. I'll look into it.14:04
=== salgado is now known as salgado-afk
gatoxalecu, i think it's done! :D.... i'll propose the branch now14:19
alecugatox, awesome!14:20
mandelalecu, morning! I updated https://code.launchpad.net/~mandel/ubuntuone-dev-tools/tcp-testcases/+merge/99759 after your comments14:22
mandelalecu, please take a look when possible14:22
alecumandel, sure, thanks!14:22
briancurtinmandel: that's the branch which goes along with fixing SSO tests, right?14:23
mandelbriancurtin, yes, that is the one, I'm testing right now with gatox a fix required in the webserver14:24
mandelbriancurtin, if I can get this to work we should chat about jenkins automation etc..14:24
briancurtinmandel: sounds good, let me know when you want to chat14:24
mandelbriancurtin, as soon this is fix we could chat on how it was fixed and what to do next :)14:25
briancurtinmandel: cool, that would be useful. i could use a primer on the whole "dirty reactor" issue, what causes it, how to fix, etc14:26
mandelbriancurtin, exactly, is better to have this knowledge in more than one place in case I die at some point hehe14:27
ralsinamandel: reading the mail from last week... why do we need a twisted web server?14:31
mandelralsina, because it is used to do a point to point test of the webclient, tests start a "webserver" and we retrieve data from it14:32
ralsinamandel: and why not use something like SimpleHTTPServer?14:33
mandelralsina, that way we tests everything but don't go to the outside world for it, problem is, is leaving dirty reactors atm14:33
mandelralsina, dont know? alecu is there a particular reason for that ^ ?14:33
alecuralsina, mandel: SimpleHTTPServer is blocking. If we would use something like that in tests, we would need to run it in its own thread. And threads are evil :-)14:34
ralsinaalecu: ack14:35
mandelalecu, +100000 for no threads :)14:35
alecumandel, there is in fact a way of telling trial14:36
alecusorry14:36
alecumandel, there is in fact a way of telling trial to not care about dirty reactors. But "dirty reactor" is just trial way of telling you that you left something without closing it.14:37
alecumandel, the thing is that trial has no way to know which "unclosed" bits belong to your main code, and which belong to your test.14:38
mandelalecu, no worries, I think having dirty reactors is a good thing, I don't want tests that do not clean after them14:38
mandelalecu, I think I got it working14:39
alecuawesome14:39
mandelalecu, funny thing, is just gatox vm the only reliable way to get the dirty reactors.. he must have touched something hehe14:43
gatoxmandel, stop blaming me! :P14:44
dobeythreads are not evil14:45
dobeybad code is evil14:45
dobeyand you don't need threads to write broken code :)14:45
ralsinadobey: code that uses threads is 90% f the time bad and evil14:46
dobeyralsina: 90% of programmers are crappy programmers :)14:46
ralsinadobey: haha, Sturgeon's law at work :-)14:47
mandeldobey, excuse, just 90% of me is a bad programmer, the rest is an ok programmer!14:48
dobeyheh14:48
somethinginteresis the bug of having duplicate devices in the "Devices" tab still a thing in 12.04?14:49
mandelgatox, do you know anything about that^14:50
dobeysomethinginteres: "bug" ?14:51
gatoxsomethinginteres, mandel i haven't seen that14:51
dobeysomethinginteres: it is possible to have duplicate devices, yes, but i don't think it's a "bug"14:51
somethinginteresdobey: I just remember emailing support a while ago and they said it was a "glitch" they were working on.14:52
dobeysomethinginteres: ok, i don't know about that.14:53
dobeyrye, duanedesign: ^^ do you know aobut that?14:53
ralsinadobey, gatox, alecu, briancurtin, urbanape: standup in 7'14:53
briancurtinack14:53
gatoxralsina, ack14:53
* rye is reading14:54
ryesomethinginteres: are there duplicate entries in https://one.ubuntu.com/account/machines14:55
duanedesignsomethinginteres: i have not had that happen in quite awhile. Not sure what the 'official' status is though14:55
dobeythere is a bug in rhythmbox/libubuntuone/rhythmbox-ubuntuone that can result in the local token being removed from the keyring (but the entry remains on the server), which will be fixed in an update tomorrow14:57
dobey(is already fixed in nightlies)14:57
dobeybut outside of that, i don't know of any current bugs that would cause the same issue. only way would be to delete the token locally yourself.14:58
ryedobey: yeah, but the info about the tokens is coming from the server... so if it is duplicating locally then that's basically a reauthorization14:58
dobeyrye: yes, the list in the control panel is from the server. the problem happens when the token gets removed from local keyring, and not from the server15:00
ralsiname15:01
briancurtinme15:01
gatoxme15:01
mandelme15:02
dobeymeh15:02
gatoxalecu, urbanape ?15:02
dobeythisfred, nessita?15:03
briancurtinurbanape is on vacation this week15:03
gatoxdobey, nessita is on rotation15:03
dobeyah right15:03
ralsinaDONE: nothing, email catchup TODO: perf.reviews, tech leads call, catchup, some IRL QA of latest windows build, whatever is needed BLOCKED: well, there is a *pile* of mail still to read/answer/delete/burn/forget/tatoo on my forearm15:03
ralsinaNEXT: briancurtin15:04
briancurtinDONE: firewall exceptions added to installer, fixed cloud-to-computer in a hacky way, created a new windows installer15:04
briancurtinTODO: fix some read-only/read-write differences by trying out the winsys package, get tests green!15:04
briancurtinBLOCKED: none15:04
briancurtinNEXT: gatox15:04
alecume15:04
gatoxDONE:15:04
gatoxKind of fix this one: Bug #824574 (but the fix present another issue... looking at that). Worked on Bug #907479.15:04
gatoxTODO:15:04
gatoxFinish with #907479. Start with Bug #973830.15:04
gatoxBLOCKED:15:04
gatoxNo15:04
ubot5Launchpad bug 824574 in Ubuntu One Control Panel "QT UI scroll bar overlaps list area bottom border" [Low,In progress] https://launchpad.net/bugs/82457415:04
gatoxmandel, go15:04
ubot5Launchpad bug 907479 in Ubuntu One Client "u1sdtool -q should not start syncdaemon when syncdaemon is not running" [Medium,In progress] https://launchpad.net/bugs/90747915:04
ubot5Launchpad bug 973830 in Ubuntu One Control Panel "Error after removing current device" [High,In progress] https://launchpad.net/bugs/97383015:04
mandelDONE: Easter holidays. Update dev-tools branch that is up for review. Fixes more tests with the help of gatox.15:04
mandelTODO: Get all sso tests work, propose mp then talk with briancurtin on how to move with jenkins.15:04
mandelBLOCKED: no.. besides debugging15:04
mandeldobey, please15:04
dobeyλ DONE: bug #969262, started u1db packaging15:04
dobeyλ TODO: finish bug #968555, finish u1db packaging15:04
dobeyλ BLCK: none.15:04
ubot5Launchpad bug 969262 in libubuntuone (Ubuntu Precise) "Error while getting credentials: The '/org/freedesktop/secrets/collection/login/24' object does not exist" [High,Triaged] https://launchpad.net/bugs/96926215:04
ubot5Error: Launchpad bug 968555 could not be found15:04
dobeyalecu15:04
alecuDONE: national holidays and weekend, catching up with mail15:04
alecuTODO: reviews, first techleads call, SD bugs15:04
alecuNEXT: ?15:04
thisfredme15:05
gatoxthisfred, go15:05
thisfredDONE: tracked down segfault15:05
* ralsina forgot thisfred and mandel! This is already going to hell! ;-)15:05
thisfredTODO: finish split words mapping15:05
thisfredBLOCKED: no more15:05
mandelralsina, wait what? you forgot about us.. mal.. muy mal? :P15:06
ralsinamandel: I just came back frm vacations, have not got my brain started yet15:06
mandelhehehe15:06
dobeyralsina: have you tried ether? it's a great starting fluid15:07
ralsinadobey: have any online ether providers? ;-)15:07
ralsinaok, comments!15:08
ralsinabriancurtin, mandel: have you had any progress on the jenkins area?15:08
thisfred# XXX: add comments15:09
mandelralsina, I just ran the tests on gatox evil machine and I got 19 error in the TxWebclient implementation which is no clean, that is an easy thing to fix son in a few mins I'll ask him to try again15:09
ralsinamandel: awesome15:09
briancurtinralsina: i got hung up most of last week trying to get windows ready. i ended up having to propose a hacky little branch for an issue elopio found during install15:09
mandelralsina, if that is ok, then we can start merging the fixes and see if the all pass in jenkins :)15:09
ralsinabriancurtin: cool, let's launch that thing15:09
gatoxmandel, my machine obviusly hate you15:09
ralsinamandel, briancurtin: so, after it works on gatox's box we start on jenkins?15:10
briancurtinralsina, mandel: yes sir. i'm working right now on trying a new approach to solving the read-only/read-write problem (wanted to do it last week) that will hopefully solve some of the test failures on windows with files not being found/accessible15:11
ralsinabriancurtin: awesome15:12
mandelbriancurtin, that is great! 'cause I think that those tests did fail on jenkins15:12
dobeyneed lunch, bbiab15:12
briancurtinmandel: its more than just the specific ro/rw tests, too. on u1client i get a bunch of tests that almost always fail trying to access tritcask files15:13
mandelbriancurtin, oh, is that because the path is too long?15:14
briancurtinmandel: hm, i don't think so, but i'll look into that possiblity. i don't have the traceback handy but i seem to remember it being for access15:14
mandelbriancurtin, take a look on that, I know that tritcask does not use the \\?\ trick which means that the length of the path is a problem15:15
ralsinabriancurtin, mandel: we had tons of times "filename too long" in tritcask tests, and verterok had made them shorter15:16
ralsinabut I suppose it all depends on *where* you are running the tests, of course15:16
* gatox goes to buy some food...... brb!15:20
=== gatox is now known as gatox_lunch
=== salgado-afk is now known as salgado
ralsinaalecu: no tech leads call, but I would like a short mumble with you in about 30'?15:53
alecuralsina, sure!15:53
alecuralsina, so, there's no tech leads call today?15:54
ralsinaalecu: right15:54
alecuack15:54
ralsinaalecu: not enough people available, strong case of the mondays, high probability of meteorite showers, etc.15:54
aleculols15:55
mandelbriancurtin, ping16:11
briancurtinmandel: pong16:12
mandelbriancurtin, can you grab lp:~mandel/ubuntuone-dev-tools/mocked-webserver put it in you path and run the tests for lp:~mandel/ubuntu-sso-client/fix-activation-tests ?16:14
mandelbriancurtin, gatox evil machine is having lunch :(16:14
briancurtinmandel: yep, i'll let you know in a few minutes16:16
mandelbriancurtin, thx!16:16
=== gatox_lunch is now known as gatox
mandelalecu, ping16:27
briancurtinmandel: the first run passed :) i'll run a few times and see if it's all ok16:28
mandelalecu, we have an issues with the txweb.WebClient in its current implementation because it leaves the tcp.Client behind after the requests, got any idea?16:28
mandelbriancurtin, great!16:28
dobeymandel: https://bugs.launchpad.net/ubuntuone-dev-tools/+bug/972366/comments/116:30
ubot5Ubuntu bug 972366 in ubuntuone-dev-tools "Provide a twited web server implementation" [Medium,In progress]16:30
alecumandel, pong16:31
alecumandel, is it using http/1.1?16:31
mandeldobey, hm.. I don't know how to rephrase that, the issue is that we have a mocked webserver in the tests that does not clean the resources correctly16:31
mandelalecu, let me check16:31
mandelalecu, it uses the default http.HTTPClient which in 1.016:34
mandelform http://twistedmatrix.com/documents/8.1.0/api/twisted.web.http.HTTPClient.html16:34
mandels/form/from16:34
briancurtinmandel: the tests passed 5 times in a row, so i think you win16:35
mandelbriancurtin, I win in your machine and mine, gatox one thinks a diff way..16:37
briancurtinthat's because it's run by the green alien on the cover16:38
gatoxjejeje16:38
alecugatox, does your "windows machine from hell" have the proxy settings enabled while running the tests?16:41
gatoxi think not.... checking.......16:41
=== salgado is now known as salgado-lunch
gatoxalecu, nop16:43
alecumandel, ping16:44
mandelalecu, pong16:44
alecumandel, so, we should probably redefine the "Webclient.shutdown" method in txweb, so it calls self.connector.disconnect() or something.16:45
mandelalecu, I'm done that, in briancurtin machine does the trick on gatox it does not since we have to wait for it to really really disconnect16:45
mandelalecu, so we get back to the issue realted with the 3 deferreds16:46
alecumandel, right. We should really be using that for every webclient test that creates a fake webserver.16:47
alecumandel, I don't know how much of a change all of that is.16:47
mandelalecu, so the deal is the following, on glib and qtnetwork we just ensuring that the webserver is correctly cleaned does the trick because the webclient leaves nothing in the reactor, the tx implementation does, which means that there is no solution for all of them16:48
mandelalecu, if you look at the diff of lp:~mandel/ubuntuone-dev-tools/mocked-webserver you will see the fix that ensures that qt and glib are correctly cleaned16:49
mandelalecu, and lp:~mandel/ubuntu-sso-client/fix-activation-tests will be with the tcpactivations fixed too16:49
mandelalecu, all those are based on using lp:~mandel/ubuntuone-dev-tools/mocked-webserver16:50
alecumandel, we should not be doing this: self.connections.append(connection)16:53
alecumandel, because those "connections" may be long finished16:53
mandelalecu, that has been written in desperation mode :(16:54
alecumandel, oh, ok.16:54
mandelalecu, those are the only tests failing in gatox machine16:54
mandelalecu, for just those tests I'd need to patch the server side, the client side and wait for the deferreds to be called, which means that we cannot reuse the parent test case class, not that I'm to worried about that to be honest16:55
alecumandel, and does that work?  I mean, the "c.disconnect()" ?16:55
mandelalecu, no, it does not16:55
alecumandel, perhaps shutdown is not being called on cleanup?16:56
mandelalecu, it is, I pdb into it16:56
alecudamn.16:56
mandelalecu, I know how to fix it, but by rewriting the entire test for that, which I think is not a good idea because it would be optimum to use the same tests for all webclients and not have the tx implementation to be diff16:59
alecumandel, how would those tests differ?17:01
alecumandel, can you write just one?17:01
mandelalecu, sure, give me some time, the hard stuff is the setup :)17:02
dobeyhrmm17:11
=== m_conley_away is now known as m_conley
=== salgado-lunch is now known as salgado
mandelI've got to do some errands17:47
mandelwill be back in 5 min17:47
mandelalecu, briancurtin, gatox, ralsina I'm a little block and close to EOD, I'm going to walk the dog to see if I get some ideas17:57
briancurtinmandel: enjoy17:57
gatoxalecu, not done.... i've fighting all this time with something really weird, that if i don't call the connect on the __init__ some stuff stays in None... i'm trying to fix that yet..... just a heads up17:57
gatoxmandel, ack17:57
ralsinamandel: cool17:58
alecugatox, ok17:58
gatoxcreating an installer everytime you want to test something in a branch....... FUN NOT18:32
ralsinagatox: yes, we should make it work from sources again, but it's a pain18:41
ralsinagatox: not being able to execute .py files == sucks :-/18:42
gatoxralsina, no, it's not that..... the problem is that is only reproducible with the installer...... i'm just testing stuff from u1-client18:42
ralsinagatox: oh. Really?18:42
ralsinagatox: :-(18:42
gatoxralsina, yapppp..... that's why is reallyyyyyy slow to test this and see if it breaks anything else (like now :P)18:43
dobeywhy is there an ubuntuone/platform/windows/pyinotify.py in ubuntuone-client? :(18:59
dobeyanyone?19:04
beunodobey, I'll take "Things thathappen while drunk" for $10019:04
gatoxdobey, i assume that it is there to "simulate" the same behaviour in windows, that pyinotify does in linux19:05
gatoxand probably you would import something like: from u1.platform import pyinotify..... and is going to be valid for windows and linux19:06
dobeyoh, i guess it's MIT19:06
gatoxdobey, mit?19:06
dobeylicense19:06
gatoxah19:06
=== salgado is now known as salgado-afk
ralsinaHave to do school run, will be back in a bit19:13
gatoxack19:13
briancurtinanyone have a tip on where would be the best place to shorten file paths for tests? these tritcask ones are too long, and it looks like they're already shortened from some place (eg some test names in the path look to be cut off)19:31
dobeybriancurtin: this is on windows i presume?19:32
briancurtindobey: yeah19:36
dobeyhow long are the paths if they're ending up as too long?19:39
briancurtindobey: the one i'm looking at is 266 long. 255 is max19:40
dobeybriancurtin: hrmm. that is pretty long, yeah. do you have a long branch nick for your branch or something?19:41
briancurtindobey: ah yeah, i guess the path leading into the test folder is kind of long. i could restructure things a bit and save some chars and see if i can keep it consistently under19:44
dobeybriancurtin: well, you are lucky that you get to use 255 chars. no unix sockets19:46
=== salgado-afk is now known as salgado
ralsinabriancurtin: ask verterok, but there is a magical constant that makes tritcask's filenames shorter on tests (within reason ;-)19:51
briancurtinralsina: i did have a kind of long path leading up to the branch so that might save me for a bit, but i'll check with him and see for the future19:52
verterokralsina,  the "magic" value is in the base testcase...let me check19:58
verterokbriancurtin: ^19:58
verterokbriancurtin, ralsina: tmpdir property in contrib/testing/testcase.py @ line 30320:02
briancurtinverterok: cool, thanks!20:02
gatoxok..... eod here...... this is almost working.... almost! i'll keep working on this bug tomorrow! see you!20:03
dobeywow it's 1610 already here :-/20:11
consindoHow does Ubuntu One deal with conflicts?20:52
beunoconsindo, it renames the files to .conflict20:52
salgado.u1conflict, no?20:53
consindoIf we're adding sync in to our app, would it be possible for the data to be sent off to an external server to be merged and then saved to Ubuntu One?20:53
beunoconsindo, pretty sure you could yes20:54
consindoOk, does Ubuntu One store revisions of files?20:55
beunoconsindo, not at the moment, no20:56
aquariusconsindo, heya20:57
aquariussorry20:57
aquariusconsindo, was afk briefly :)20:57
aquariusconsindo, so, there are two ways we could look at nitro syncing with U120:57
aquariusconsindo, I've been looking at the nitro code, and adding a new storage backend is just a case of providing my own $.jStorage implementation, yes?20:58
consindoaquarius, yes20:58
dobeywhat is nitro?20:58
aquariusdobey, task manager. See nitrotasks.com20:59
aquariusconsindo, so, there are two approaches that can be taken for storing data in Ubuntu One20:59
dobeythis screams u1db20:59
aquariusconsindo, the existing file sync, which is what you'd use to sync your documents and photos and so on with all your machines -- this is good for things like photos and documents and music, but for rapidly changing conflicting data it's not ideal20:59
aquariusconsindo, the second approach is u1db, the Ubuntu One synced database21:00
aquariusconsindo, http://voices.canonical.com/ubuntuone/2011/12/22/u1db-technical-preview-release-tell-us-what-you-think/ is a summary of the preview release of u1db21:00
aquariusconsindo, I was planning on sitting down today and writing a u1db backend for nitro, but I saw that you're already working on some other sort of syncing mechanism yourselves, and so I wanted to chat it over with you21:01
aquariusconsindo, u1db is designed for this sort of data; conflicts are handled properly, the data is synced on your command, only the changes are sent, you can have revision history if you want it, it's JSON-based and usable from any language, and so on :)21:02
aquariusconsindo, and it means that you don't have to invent your own syncing thing and deal with all the corner cases :)21:02
dobey*please* choose the u1db21:02
thisfredit farts rainbows21:02
dobeybasically21:02
aquariusconsindo, there's a standalone u1db server, too, so if people wanted they could run their own nitro sync server; I know some people prefer running their own services to using a cloud account that comes with their machine21:03
consindoconsindo, great! What about people that don't want to use Ubuntu one?21:04
consindoaquarius, Mac Users etc21:04
aquariusconsindo, see the last thing about the standalone u1db server; if someone doesn't want to use Ubuntu One they can happily run their own server if that's what they like doing21:04
thisfredaquarius: the only man that can reply faster than his own shadow :)21:04
consindoaquarius, So we can add in some code to merge data?21:05
aquariusconsindo, u1db isn't platform-specific; you can have an Ubuntu One account (and therefore u1db storage) whichever platform you're on. Ubuntu One's on Windows, Ubuntu, Android, iOS, coming to the Mac...21:05
aquariusand you don't need to use U1 file sync to use u1db21:05
aquariusconsindo, indeed you can add code to merge data. If someone makes conflicting edits to a task list (say, on two different machines) you can get both versions from u1db, and then logic in nitro itself can merge those edits, or ask the user, or choose one, whichever you prefer21:06
aquariusand a web-based Nitro can connect to the user's U1 account and show their tasks exactly as a desktop version can21:07
consindoaquarius, there's a bunch of people asking for different forms of sync. I guess we could add in other service as well21:08
consindoe.g Dropbox, Google Tasks21:08
aquariusconsindo, that's up to you, of course. If there's a swappable back end then people could write many different syncing things21:08
aquariusthat sounds like a lot of work to me, but it's not my project ;)21:09
aquariusUbuntu One file sync does what Dropbox does, so you *could* implement nitro syncing on top of it, but u1db is better because it's designed for this sort of thing and file syncing isn't (conflicts are more of a problem, because you end up having to store your tasks in many separate files, or have *really* complex merging logic)21:10
aquariusbut as I say you could build this on top of Ubuntu One file sync if you wanted -- and again, a web version of Nitro could happily read those task files and present the user's tasks exactly as the desktop app does (and a mobile app would of course work the same way)21:11
=== m_conley is now known as m_conley_away
consindoaquarius, u1db is still a technical preview - any idea when it'll be ready?21:13
dobeyconsindo: we'll have packages in PPA soon. i don't know when aquarius will have the JS implementation ready though.21:14
aquariusconsindo, ah, now that's the question I was expecting you to ask :) We're still working on the full-on Ubuntu One server implementation, but the standalone server already exists and works fine (so it can be developed against that -- and you'd want to develop against that anyway)21:14
aquariusconsindo, in terms of client libraries, the Python one already exists (so you can have $.jStorage proxy gets and sets back to Python, as you have now), and I'm midway through writing a native JavaScript implementation (so you wouldn't need the Python at all)21:15
dobeywell i'd think he'd want to develop with a JS API, not python (or C) :)21:15
thisfredC is also 95% done21:15
consindoaquarius, Yeah, we would want to use a JS API not a python one. The Mac OSX version will be done in Objective-C.21:16
aquariusconsindo, I'd be interested in helping to port nitro to u1db, but since I saw that you guys are working on syncing I wanted to see what your plans were so as we fit together :)21:16
consindoaquarius, We were planning on using node.js + redis. Does u1db have a REST api?21:17
aquariusconsindo, it does indeed21:17
aquariusconsindo, the advantage with using u1db is that you guys don't necessarily have to spend your lives sysadminning a popular server and can concentrate on making a fantastic tasks app21:17
aquariusconsindo, but as I say that's up to you, of course. :)21:19
consindoaquarius, I don't think people will even trust us with their data - We're still students.21:20
aquariusconsindo, another advantage :)21:20
aquariusconsindo, if they're storing data in their personal cloud then it's still *their* data; you don't have to worry about how to handle data export, what to do about data from other countries, etc, etc21:20
aquariusWe do that, so you don't have to :)21:20
consindoaquarius, u1db sounds like a great idea. We'll play around with it and hopefully we'll be able to use it =)21:21
consindoI think the advantages outweigh the disadvantages21:21
dobeyyay u1db21:22
aquariusconsindo, excellent. How can I help?21:22
dobeyfinish the JS implementation! :)21:22
consindoaquarius, we have to finish our merging code first. If we run into any problems we'll contact you.21:23
consindoWe'll probably end up using the REST Api21:23
aquariusconsindo, cool. Keep me up to date :)21:23
aquariusconsindo, happy to have a call or whatever to talk it over in more detail21:23
consindoaquarius, I haven't used Ubuntu one file sync since 2010. Is it much faster now?21:24
dobeyconsindo: you'll probably want to use the JS API, as it will use HTML5 storage, and things will "just work" while offline, and you won't have to deal with having to manage your own local storage implementation for it, and all that.21:24
aquariusconsindo, it's much faster now, indeed21:24
dobeyi however, need to run. have a good evening all21:25
aquariusconsindo, yeah, the way u1db works (the JS version, at least) is that it stores the data in localStorage, and then you tell it "sync" whenever you want, and it syncs with the server -- so the u1db implementation itself talks to the REST API, and you always have a local copy of the data to work with21:25
consindoaquarius, Has the JS API even been started?21:25
aquariusso everything's fine ofline21:25
aquariusya, it's started; I'm working my way through the test suite implementing it :)21:25
consindoaquarius, thanks. We'll try and finish our merging code in the next few days =)21:27
aquariusconsindo, cool!21:27
consindostayradiated, Is there anything else?21:27
consindoaquarius, I think we're fine. Thanks!21:30
aquariusexcellent. Nice to meet you both :)21:30
=== salgado is now known as salgado-afk

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