/srv/irclogs.ubuntu.com/2012/10/05/#ubuntuone.txt

mmccbuilding it now, didn't have time to make the disk image with the background00:00
mmcc(ping vila, the file will be in the shared folder, named 'build-121004.zip'00:01
mmccnow I really really have to go. will check back in late to be sure it uploaded00:01
=== mhall119_ is now known as mhall119
mmcchere: http://ubuntuone.com/22JpZkHpJjGm0peelzpGVe04:40
vilammcc: I see build-121004.zip, thanks, it unzip correctly here (on ubuntu), will test after my coffee ;)05:46
=== lifeless_ is now known as lifeless
=== spm` is now known as spm_
=== spm_ is now known as spm
mandelmorning!08:31
ryeping alecu, http://bazaar.launchpad.net/~ubuntuone-control-tower/ubuntu-sso-client/trunk/view/head:/ubuntu_sso/networkstate/linux.py#L73 - any objection against switching to online mode on any error from NM? - bug #1062051 - that impacts vila's tests10:58
ubot5Launchpad bug 1062051 in Ubuntu One Client "ubuntuone-syncdaemon fails to connect when policy prevents it from contacting network-manager" [Undecided,Confirmed] https://launchpad.net/bugs/106205110:58
gatoxgood morning11:30
gatoxreboot....11:36
gatoxback11:39
gatoxmmcc so..... the branches for the share tabs weren't included in the release?11:51
alecuhello people!11:55
gatoxalecu, hi11:56
gatoxneed to reboot again :S12:14
alecugatox: let me know when you want to discuss the "api problem"12:26
gatoxalecu, yes.......i'm debugging some part first..... to check something12:27
gatoxalthough..... it seems that the branches for the mac release weren't included....... :S12:27
nessitagatox: I'm looking at https://code.launchpad.net/~diegosarmentero/ubuntuone-client/crazy-comma/+merge/128122, and I wanted to tell you that the comma should not be removed12:27
nessitagatox: the result of the deferred will always be a tutple12:27
nessitatuple*12:27
alecurye: +1 to setting the mode to "online" if there are errors contacting NM12:27
nessitagatox: (perhaps we can change the code to be more explicit)12:28
gatoxnessita, i'm looking at that right now....12:29
nessitagatox: what problem were you trying to solve?12:29
nessitagatox: also, never propose a branch like that without a justifying test ;-)12:29
nessitayou need to "show" you're fixing something12:29
ryevila: ^12:30
vilarye: am I correct understanding that this will mean that the u1 client will stop relying on network-manager but use other means to ensure some network connectivity is available ?12:32
alecugatox: nessita is right, the semantics are different with and without a comma: http://pastebin.ubuntu.com/1261813/12:32
mandelnessita, but will that tuple always have a single item?12:32
nessitamandel: yes12:33
nessitaor should be12:33
nessita(if not, that may be the bug)12:33
alecunessita: anyway, I would like to find some other way to do this tuple unpackings, because it looks weird, and it seems error prone.12:33
vilanessita: you've taken the TDD red pill aren't you ?12:33
nessitaalecu, gatox: absolutely agreed. We may change the code to be less obscure (I will take the blame for that original code)12:33
alecuvila: nessita *is* the red pill12:33
nessita:-)12:33
nessitavila: my only goal in this world is to TDDize everyone within my reach12:34
nessita*WATCH OUT*12:34
ryevila: if reply from NM is definite (and not error) then we trust it. If NM tells us weird things, we don't trust it and think we are online12:34
vilanessita: count me in ;)12:34
vilarye: so unknown was error and will now be weird thing right ?12:35
mandelnessita, the problem I see with that result, = is that if you get more than one item you will get unpack errors, I prefer using the index, is more 'in your face'12:35
mandelofcourse you could get an empty tuple12:35
ryevila: yes, well, when the code is fixed12:35
nessitamandel: agreed. THough the deferred will always (should always) return a tuple of a single element) for certain calls12:35
alecumandel: the thing is that getting a tuple with more than one item when you expect just one ought to be an error12:35
* vila nods, I'm subscribed to the bug so I'll know (and my test will also tell me ;)12:36
ryevila: if12:36
nessitamandel: anyways, the code is correct *and* obscure. The key word being obscure :-)12:36
nessitagatox: what motivated you to do that change?12:36
vilarye: ?12:36
mandelnessita, in this case I asked gatox why he did it and he did not know, so that is the problem :)12:36
gatoxnessita, i have some problems with windows and darwin.... where it was returning a different tihng that linux12:37
mandelalecu, true..12:37
* mandel gets back to fight with pointers..12:37
nessitamandel: but that code was not "made" by gatox -- I added (I'm to blame for the , =)12:37
nessitaperhaps gatox fixed it a style thingy?12:37
alecuand doing "assert len(response) == 0; response[0]" sounds like overkill.12:38
alecusorry12:38
alecuand doing "assert len(response) == 1; response[0]" sounds like overkill.12:38
mandelnessita, did not use bzr blame, we where just debugging12:38
nessitaah12:38
mandelalecu, yes, and no.. is a PITA to write but if it safes our asses in the not distant future..12:39
nessitamandel, gatox: fair enough. The best advice I can give you, is never do a change without knowing what or why you're changing, and never without a backing up test12:39
* mandel agrees with nessita12:39
nessitamainly because perhaps your change is correct but someone can come in later and add the comma back, for example :-)12:39
alecunessita, gatox: what about leaving those lines "as is", and adding some comments? like "response, = yield d  # unpacking single element tuple"12:39
nessitaalecu: +112:40
alecumandel: we get the assertion automatically thanks to the weird comma12:40
mandelalecu, until we get a value unpack error in a inlineCallback and we have not try except, but I don't think the bug gatox is searching is related to that12:42
mandelthe signal is nor fired due to some other reason12:42
* gatox is wondering if the feature wasn't included in the mac release for that....12:42
dobeyhmm12:44
alecuvila, rye: are you guys working on that branch, or should I?12:51
vilavila: I'm not12:51
vilameh12:51
vilaalecu: I'm not12:51
alecu:-)12:51
mandelvila, is good to know that you make sure vila thinks the same ;)12:52
vilawho ?12:53
vilahe never listen...12:53
mandelvila, talking to yourself :)12:53
mandellike:12:53
vilathat wasn't me, that was that other one12:53
mandelmandel, lets go and have lunch12:53
mandelyes12:53
vila:)12:53
mandelboth mandels go to lunch12:54
=== mandel is now known as mandel|lunch
alecuvila: how are you starting that "test" dbus session?13:00
viladbus-launch13:00
vilanah, that's probably a bit incomplete as a description...13:01
vilathe test runs on a vm accessed via ssh (with fabric in fact), it does a dbus-launch --sh-syntax, I get the DBUS_* env vars back, I then call (still via ssh) 'DBUS_... u1sdtool --whatever'13:02
alecugreat13:03
vilaand then the test kill the dbus process (pid acquired at dbus-launch time)13:03
vilarye helped understand why my tests were failing spuriously13:04
vila*helped me13:04
ralsinagood morning!13:09
ralsinarye: about the network-manager policy issue... why would NM not report network status to sessions that are not in the console? I agree we should handle policy error better, but that policy is useless :)13:10
ralsinarye: so, maybe we should also affect network-manager?13:10
alecuvila: I'm trying to run sd inside an ssh, but I'm getting errors while retrieving the u1 credentials from the keyring. Have you found something similar?13:12
ryeralsina: NM is configured this way in Ubuntu, cat /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf13:12
alecuralsina: hi!13:12
ryealecu: you need to put oauth tokens in the config file13:12
ryealecu: https://wiki.ubuntu.com/UbuntuOne/Headless13:12
alecurye: thanks13:12
vilaalecu: oh, right, I think I use the syncdaemon.cfg trick where you put the oauth token there13:12
vilaalecu: see.. bah, why didn't I read the log :-/13:14
vilarye: you're too fast ;)13:14
ralsinarye: I agree it is that way, I don't see how not telling someone logged in via network that a network is up makes sense ;-)13:17
ralsinahola alecu13:17
ralsinaalecu, mandel|lunch, gatox: I was at the doctor's because I have a horrible headache and it' an ear infection. I am trying to work but I don't know how much looking at brght lights I can handle.13:18
alecuralsina: ouch :-(13:18
gatoxralsina, oops.... get better13:18
ralsinagatox, alecu: thanks. If I seem unresponsive, phone me :-)13:19
gatox:P13:19
dobeyralsina: what's the issue?13:20
dobeywith nm and policy i mean13:20
ralsinadobey: let me find the bug13:22
ralsinadobey: bug #106205113:22
ubot5Launchpad bug 1062051 in Ubuntu One Client "ubuntuone-syncdaemon fails to connect when policy prevents it from contacting network-manager" [High,Confirmed] https://launchpad.net/bugs/106205113:22
dobeyah ok13:28
=== m_conley_away is now known as m_conley
chaselivingstonmmcc: ping14:01
dobeysigh14:03
dobeybranch lp:ubuntu/unity last night to build packages with a patch, which was 6.6.0-0ubuntu4 UNRELEASED, uploaded to my PPA this morning, and it tells me a newer version is available in ubuntu as 6.8.0-0ubuntu1 :(14:05
=== mandel|lunch is now known as mandel
mandelralsina, uh, take a rest, ear infections are a dangerous thing to have14:06
dobeyugh, and bzr-builddeb won't even let me merge back up :(14:07
gatoxmandel, ping14:09
mandelgatox, pong!14:10
gatoxmandel, i'm looking at: def emit_signal(self, signal_name, *args, **kwargs): in ipc/perspective_broker.py..... and the "on_public_files_list" signal is being emitted successfully....  with the proper data....... do you know who should be catching that signal14:11
gatox?14:11
mandelgatox, if the signals is emitted the callback should be called from the client code, did you create a on_public_files_list callback in the client side?14:12
mandelgatox, if it is missing nothing will happen, take a look in ipc_client.py14:12
gatoxmandel, yep.......14:12
gatoxmandel, i'll follow tracking things from there14:13
mandelgatox, sorry youhave to deal with this..14:20
gatoxmandel, the info is coming to the ipc_client..... i'm printing the data from the cp side.... so now i'm tracking where the signal is getting lost14:21
mandelgatox, have you set the debug mode of the defers to true, that might help14:22
gatoxnop.... will try that in a few14:22
ralsinamandel: thanks, it's just boring alone at home without work :-)14:25
mandelralsina, are you getting atibiotics?14:26
ralsinamandel: will start after lunch14:28
ralsinamandel: luckily it's just a 1-a day 3-day thing14:29
mandelralsina, he, we should change the name of the team to unhealthy+ instead of desktop+14:30
mandelat this speed the only healthy person is going to be gatox and he will probably have an accident with a paperclip or something14:30
gatoxmandel, jejeje it's funny because it's true14:31
gatoxor very probable14:31
dobeyheh14:31
gatoxmandel, i'm going to enable a mandel 's quote section in my twitter14:34
gatoxjejeje14:34
mandelhehe14:34
alecugatox: that wou14:40
alecugatox: that would look like a stream of repeated unfunny jokes14:40
gatox:P14:40
gatoxmandel, defend yourself14:40
mandelgatox, nah, is not himself talking, probably alecu decided not to use the lift to go up stairs and he is feeling funny ;-)14:42
alecuouch :P14:42
mandelhehe14:43
ralsinamandel: look! Sashimi! <mandel faints>14:46
gatoxjuazzzzz14:46
* ralsina kids because he cares14:46
mandelhehehe => http://25.media.tumblr.com/tumblr_m97d9iWzvi1rnrom8o2_250.gif14:47
mandelme15:00
briancurtinme15:00
dobeyme15:00
gatoxme15:01
alecume15:02
dobeymandel: go15:02
mandelDONE: added some autopilot tests for the preview (mainly for links etc.. ) Fough with small mem leak15:03
mandelTODO: finally propose the work to land in trunk.15:03
mandelBLOCKED: no15:03
mandelCOMMENTS: need to leave 30 min earlier, I have to go to the vet (not me)15:03
mandelbriancurtin, please15:03
briancurtinDONE: updated environment and got SSO up with zero manual changes15:03
briancurtinTODO: u1cp still not working in the new env, but it looks promising given it removes all of the manual stuff that caused problems in the past. ironing out kinks to get it going15:03
briancurtinNEXT: dobey15:03
dobeyDONE: releases, uploads, poke py3 twisted guys about tests crashing and packaging15:03
dobeyTODO: reviews, fix bugs15:03
dobeyBLCK: New Qt broke SSO authenticated proxy support. CP tests breakage.15:03
dobeygatox: go15:03
gatoxDONE:15:03
gatoxPropose and fix a branch for the shares tab not working on windows/darwin, file a bug for the api problem. Started working in the api problem (find some clues about this).15:03
gatoxTODO:15:03
gatoxFix the api problem and find sense in the universe again.15:03
gatoxBLOCKED:15:03
dobeyerr oops. not blocked actually15:03
gatoxNo15:03
gatoxalecu, go15:03
dobeymmcc: standup?15:03
alecuDONE: some reviews, started looking into getting protobuf 3 upstream and a branch for bug #106205115:03
alecuTODO: pending split in dash branches, more protobuf15:03
alecuBLOCKED: no15:03
alecuNEXT:15:03
ubot5Launchpad bug 1062051 in Ubuntu One Client "ubuntuone-syncdaemon fails to connect when policy prevents it from contacting network-manager" [High,Confirmed] https://launchpad.net/bugs/106205115:03
mmcchere, writing. sorry, feeling sick again today15:04
mmccDONE: build for qa15:06
mmccTODO: new bugs, look at using DMG background image15:06
mmccBLOCK: no15:06
gatoxmmcc, hi..... did you include the fix in the release?15:07
gatoxmmcc, also.. i've updated the branches: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/crazy-comma/+merge/128122  -  https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/shares-broken/+merge/12810815:07
mmccgatox, I included the control-panel branch with a one-off tweak to do the same thing as your updated branches there.15:09
gatoxmmcc, great15:10
mmccbrb, need to start coffff…e15:11
dobeygatox: can you deal with vila_'s review of https://code.launchpad.net/~diegosarmentero/ubuntuone-client/ubuntuone-client-fix-tests/+merge/127836 please?15:11
gatoxdobey, ack15:12
gatoxit's actually 5 items and a separator..... i'll correct the comment15:13
dobeyright15:13
gatoxvila, branch updated: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/ubuntuone-client-fix-tests/+merge/12783615:15
vilagatox: wow, thanks, it was worth updating the comment, I wouldn't have thought about a separator...15:18
gatoxmandel, i find out the signal problem....... now i have to find out the proper way to fix it :P but i'm getting closer15:22
mandelgatox, share with me, what is the problem?15:23
gatoxmandel, the def connect_signal(self, signal_name, handler): method, in SyncDaemonToolProxy..... it's being called two times with the same signal (from different places it seems).... so when it does: setattr(client, callback, handler)..... the second time with another handler, not the one i set when i said that i want to be connected to that signal, override that value..... so _success_handler is notified for that signal, but not my handler15:24
gatox_success_handler..... is the handler when it's called for the second time15:25
mandelgatox, ok, simple, do make handlers to be a list and call the in sequence15:26
gatoxif i avoid that....... as i just tested..... that works15:26
mmccgatox, that sounds familiar. i did that with the status changed handler a while back to make the sync menu status work…15:26
mmccer, did that == "made the handlers be a list"15:26
gatoxmmcc, can you point me to the place where you did that?15:26
mmcchttps://code.launchpad.net/~mikemc/ubuntuone-control-panel/fix-sync-status/+merge/12297415:26
mmccgatox, yes ^15:26
gatoxmmcc, awesome15:26
=== briancurtin2 is now known as briancurtin
gatoxmandel, this was driving me crazy15:27
mmccweird. I was wondering if that was the problem you were having so I looked for something setting a handler twice a couple of days ago, but I guess I missed this one. sorry15:27
mandelgatox, mmcc, maybe a more generic approach could be done, as ALL handlers should be lists15:28
gatoxmandel, yes15:28
mmccyeah, gatox I feel your pain - that was a LOT of tracking through spaghetti code to figure out15:28
mandelgatox, yes, I know the feeling, is partially my fault, bzr blame probably has my name somewhere there15:28
gatoxmmcc, yap15:28
dobeyok, time to get some lunch i think; bbiab15:29
gatoxmandel, mmcc well..... this seems that is going to be a nice way to end the week15:29
cm-tHi, I have a short question (didnt found in FAQ), just to be sure : The owner of shared folder, he will get the quotas of files on his account, not the other people ?  (ex: A share with B a folder and B add files: the limit of 5Go will be changed only for A, not for B ?)15:31
cm-tor maybe B will "pay" for his files too ? not A?15:32
chaselivingstoncm-t: hi, the quota will be affected for both users15:35
cm-tdamn :/  so if i share 5Go of pics with B, he will be out of quota ?  or only file you own ?15:36
cm-tchaselivingston: ↑15:36
joshuahoovercm-t, chaselivingston: actually, only the owner's quota should be impacted, not those he or she shares with15:37
chaselivingstoncm-t: if B accepts the share and only has a 5GB account, then yes15:37
chaselivingstoncm-t: sorry about that, sounds like i was under a false impression as well :)15:40
cm-tjoshuahoover: the owner of the shared folder you mean, not the owner of file ( i hope)15:41
cm-tno problem chaselivingston :)15:41
joshuahoovercm-t: right, the owner of the shared folder...if i share a 100 GB folder with you and you only have 5 GB, you are not over your quota15:42
cm-t( for the story, we have the project for our next ubuntu party in paris, every one with the share will be able to share pics took on the event to be displayed on ubuntu TV image lens and a multi touch screen with photo app touch friendly if possible - it will show the ubuntu one power too)   there will be a lot of pics, if only 20 people add 3mb x 10 it will grow fast (…)  my question is: does every one will take in his quota t15:43
cm-the pic of other ? if we take the quota of other, we might add a script that remove new photo in shared folder to put in other one (or hack like this15:43
alecuvila, rye: this should fix the NM issue: https://code.launchpad.net/~alecu/ubuntu-sso-client/other-nm-errors/+merge/12827215:44
cm-tthanks joshuahoover, that the awnser i wanted to hear,  don't want to break all people account be involved in our party15:45
ryealecu: yay simplification!15:47
vilaalecu: yeah reliability !16:03
vilaalecu: yeah reliability !^W^Wrobustness16:04
mandelok, EOW for me, I need to take the dog to the vet, catch you all on monday!16:05
mmccbye mandel, see you mon16:06
* gatox lunch16:14
=== gatox is now known as gatox_lunch
mmcchey folks, am I supposed to be able to share a file that was shared with me? this is regarding https://bugs.launchpad.net/ubuntuone-control-panel/+bug/106194916:32
ubot5Ubuntu bug 1061949 in Ubuntu One Control Panel "control panel ui hangs after selecting a file that was shared with me in the share_links search box." [Undecided,New]16:32
alecummcc: you can share folders or publish files...16:34
alecummcc: so you must be trying to publish a file that was shared with you, right?16:34
mmccalecu: I guess so? I'm honestly not 100% clear on what the share links tab lets me do16:35
mmccbut yeah that sounds right. I select a file in the share links tab, so that means I want to publish it…16:35
alecummcc: oh, right. We are now using the term "share" for links too in the UIs. It used to apply only to sharing folders with another u1 user.16:38
mmccyep, and we're not allowed to do that. syncdaemon gets the right error, but it's not making it up to the controlpanel16:41
mmccbut the bug is really in the share links tab, I guess, since it shouldn't let me search for shared links16:41
alecummcc: I'm just trying to "share the link" of a file in a folder that was shared to me, and SD gets this error from the web apis: WebClientError: ('FORBIDDEN', "Can't make shared files public.")16:41
alecummcc: right, it should not let you search inside shared folders.16:42
mmccalecu: yeah, I get that too now that I dig into syncdaemon.log16:42
mmccok, I'll change the bug I wrote for that16:42
alecuu1sdtool throws a tuple unpacking error for this :P16:42
mmccok, it is https://bugs.launchpad.net/ubuntuone-control-panel/+bug/1061949 -- I will let ralsina assign it16:46
ubot5Ubuntu bug 1061949 in Ubuntu One Control Panel "share_links search box should not search within folders that are shared with me." [High,Confirmed]16:46
mmccthere's actually kind of two bugs there - the search UI one, and then also the problem that it just hangs instead of getting the error callback16:47
=== gatox_lunch is now known as gatox
gatoxralsina, are you going to take care of that bug?? or do you want me to take it?17:18
mmccoh hey, you're back gatox. so should I approve this https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/shares-broken/+merge/128108 or are you going to fix it differently so it gets the signal?17:22
gatoxmmcc, i'm going to propose another branch for the signal thing17:23
gatoxmmcc, so please approve that one17:23
mmccgatox: ok, cool17:23
mmccgatox, +1, although did you see vila's comments in the internal channel? share links tab isn't working for him at all: https://bugs.launchpad.net/ubuntuone-client/+bug/106215117:24
ubot5Ubuntu bug 1062151 in Ubuntu One Client "share links tab waiting forever" [Undecided,Confirmed]17:24
gatoxmmcc, but i was working for you?17:25
gatoxit17:26
mmccgatox: yes, it works for me17:26
gatoxhere too.....17:26
gatoxi'll need to check later17:26
mmccI'll ask urbanape. urbanape, does the share links tab work for you?17:26
ralsinagatox: looking...17:26
ralsinammcc, gatox: it's not going to start qorking for vila because of popular vote :-)17:27
mmccralsina: but what if I yell at it loud enough17:27
ralsinagatox: assigning to you17:27
gatoxralsina, ack17:28
ralsinammcc: tried it, didn't work, sorry!17:28
* vila search for qorking definition17:28
ralsinavila: I have fat fingers17:28
mmccralsina: qork.17:28
vilaamazing, google(define qorking) guessed the tyop ;)17:29
mmccso ralsina you tried with the version I built yesterday and it didn't work?17:29
mmccas in, it hangs on loading info?17:29
urbanapehttp://ubuntuone.com/p/sTq/17:29
urbanapeseems to.17:29
urbanapemmcc: works for me17:29
ralsinammcc: no, didn't try it at all17:30
ralsinaok, so it may be something in vila's system. Perhaps OSX version?17:30
ralsinaAlso, vila is the only one that has no development setup in his OSX, right?17:30
vila10.6.817:31
mmcca HA. well, I still have 10.6. time to go give that a try17:31
vilaerrr, no dev setup... not sure about that, that's the girls mac but I may have installed some xcode stuff at some point (or may be not)17:31
ralsinawell, it's something to try at least.17:31
mmccvila, is it only the share links that doesn't work? does sync work for you?17:31
vilaralsina: anything more precise to check for ?17:32
ralsinavila: nothing comes to mind17:32
vilammcc: yes, I did some tests17:32
mmccbecause that's a weird precise thing for an OS version to break…17:32
ralsinavila: so far, we have this shares tab problem only :-)17:32
vilammcc: what do you call a precise thing ?17:36
mmccvila: I meant that it'd be surprising if the OS version only broke just the shares tab, and nothing else. I'd be less surprised if it broke, for example, everything that used IPC, or something like that. but just the shares tab is a strange thing to be the only thing that breaks17:37
vilammcc: can that be some internal exception caught by the main loop and as such leaving the control panel intact ? Any place I could search to validate/invalidate such a cause ?17:37
vilamissing icon, missing library needed only for that tab, stuff like that ?17:38
mmccvila: I'm looking at your logs now… there don't seem to be any exceptions. I also don't think it uses any different code17:38
mmccI noticed that you don't actually have any shared files to display and I'm wondering how well we've tested with that17:38
vilaindeed, sorry I failed to mention that17:39
mmcci.e., control panel calls syncdaemon via IPC and sync daemon's logs show a happy return value of [] but control panel isn't logging any return value17:39
vilabut that will be the case for all new users17:39
mmccyes, if that's the problem then it's a bad bug. not sure that's it yet though17:39
gatoxmmcc, vila i'll check that17:40
vilaOED and family time here, I may lurk around later but no promise ;)17:41
vilaHave fun all and thanks for the good work !17:41
mmccgatox -- in share_links.py, get_public_files sets is_processing = True and _load_public_files sets it to false, *unless* len(result) == 0 :(17:41
vilammcc: haaa ? Got it ?17:41
mmccyep17:42
vilaYES \o/17:42
gatoxmmcc, that's going to be removed with my next branch anyway17:42
vilaAlways good to end the week on good news ;)17:42
mmccgatox: cool, that's good news17:42
mmccgatox: so just remember to check that we handle empty lists of shares correctly - maybe a good test to write17:43
gatoxmmcc, yes17:43
mmccvila, thanks for your help, have a good weekend17:43
mmccgatox, can I suggest also just moving the self.is_processing = False in _load_public_files up to get_public_files? that kind of thing seems like it should always be set and unset in the same scope if we can manage it17:48
mmccso it's easier to check17:48
gatoxmmcc, i prefer not..... if we do that... we are going to hide the loading overlay before we get the response17:55
mmccgatox, really?17:56
gatoxmmcc, the fact that we are calling _load_public_files inside get_public_files is going to dissapear in the next branch17:56
gatoxand that is going to be asynchronous17:56
mmccoh, ok. it'll be a callback. got it17:56
mmccthakns17:57
mmccor thanks even17:57
=== yofel_ is now known as yofel
dobeybrb18:10
vilammcc: oh, hmm, I wasn't completely out :) One last question:18:11
mmccvila, shoot18:11
vilammcc: does lp:~mikemc/ubuntuone-control-panel/catch-quit address quitting the app when using the quit item in the system menu ?18:11
mmccvila: yes, it should.18:12
vilammcc: excellent, I forgot to mention that in my test report as I remember seeing that branch... but wasn't able to check while testing18:12
vilammcc: nor if it that was a bug or a feature ;)18:13
mmccvila: ah, ok. cool. well, I've been alternating between using cmd-q and the quit menu item just to give it a good testing myself. feeling pretty secure about that part of it18:13
mmccnot yet 100% sure that it fixes the issue where it would sometimes hang on quit, though :\ -- that one I can't reproduce reliably18:14
mmcc(referring to bug 1042834)18:14
ubot5Launchpad bug 1042834 in Ubuntu One Control Panel "Control panel hangs on quit, eventually have to force quit" [High,In progress] https://launchpad.net/bugs/104283418:14
gatoxok.... i've everything almost fixed \o/18:21
mmccis the systray.py menu ever used on ubuntu? we're not starting it by default…18:33
gatoxmmcc, for testing..... but is not used by default in ubuntu18:34
gatoxmmcc, it works....... but we use the other menu in ubuntu18:34
mmccgatox: ok. I'm wondering about why you used a timer to update the recent transfers menu18:35
gatoxmmcc, because we decided not to spam the process for each signal that is emitted18:35
ralsinammcc: also, on ubuntu, those signals are broadcasted to all apps on the session, which means a *lot* of work for the system18:39
mmccoh, I meant instead of just updating the menu when it is shown18:40
mmccI see there are showEvent handlers with a comment that they don't get called on ubuntu, but if you instead connect them to aboutToShow and aboutToHide, those work18:41
mmccby "showEvent handlers" i meant "a showEvent() and hideEvent() method"18:41
gatoxmmcc, but the menu can be updated while it is being shown too18:42
mmccso then you don't need a timer at all, you just update the menu when it's shown - but I asked about the timer because I was curious if it was supposed to update live as you hold the menu open18:42
mmccright, only that part does not work on osx :)18:42
mmccso that's why I asked about ubuntu, updating live works on ubuntu?18:43
mmccI guess I'll go check :)18:43
gatoxmmcc, why it doesn't work on mac? what did you see?18:45
mmcchmmm, no, on ubuntu I see no transfers in the menu at all, even though the sync status says I'm downloading stuff18:45
mmccon mac, when I hook up the signals, I see the transfers listed in the menu, but if I hold down the menu, it doesn't change even though I see logs showing  the handler getting called with new info every time the timer fires18:46
gatoxralsina, is that ^ related to the bug you were fixing about the events changes?18:46
mmccI suspect that changing a QMenu while it's shown doesn't work18:47
mmcc(on osx)18:47
mmccalso, shouldn't we have these file name menu items do something when you select them? like show the file in the finder/explorer or something?18:48
dobeymmcc, gatox: https://code.launchpad.net/~dobey/ubuntuone-client-data/mac-build-icns/+merge/12830418:50
gatoxdobey, on it18:50
mmccdobey: running setup.py build_icns on my mac, it complains that I don't have icontoo18:57
mmccicontool18:57
mmccwhere can I find that?18:57
dobeyhmm18:59
ralsinagatox: could be, in nightlies, but shuld also be fixed today18:59
dobeymmcc: lp:icontool19:00
dobeyi guess just poking the timestamp to ensure the PNG files are new enough, isn't enough19:00
dobeymmcc: you'll also need inkscape and some perl modules to use that :-/19:01
dobeymaybe i should just make build_icns not run the build_png bit?19:01
mmccsorry, had a dog cleanup emergency there…19:07
mmccI don't feel strongly either way - I can grab the deps and test the whole thing, or we can separate the icns from the png building19:08
mmccif you want to just build the icns once and commit it, then maybe the right thing to do is leave it as is and check that we can build the whole thing on mac19:09
mmccso we don't have to bounce around between linux and mac to build everything19:10
mmccok, I have to run for lunch… back in a bit19:10
dobeymmcc: right; i'm just concerned about all the additional deps on mac, and i don't know if the icontool/inkscape bits will work on mac19:11
gatoxmmcc, ralsina i have the public files api working fine, and with the current tests passing in all the platforms.... i'll check the diff against trunk to see which new tests should be included and propose today or monday morning19:55
gatoxfine and as it should19:55
ralsinacool19:56
ralsinagatox: good job, looking forward to the branch19:57
gatoxralsina, mmcc if you can review the u1-client branch please: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/ubuntuone-client-publishapi/+merge/12831220:22
gatoxi've another one for u1-cp that i'll proposing soon20:23
dobeygatox: why did your one branch fail with 67 versions of the same error about QThread?20:28
dobeygatox: ah, you broke the backend tests20:28
gatoxdobey, which branch?20:28
dobeyoh no, not the backend, sorry20:28
dobeygatox: shares-broken20:29
dobeyhttps://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/shares-broken/+merge/12810820:29
gatoxdobey, mmmm..... that's working here..... i just run the tests.....20:32
dobeygatox: weird20:37
gatoxdobey, did you executed there too?20:38
dobeygatox: i just ran the tests myself on the tarmac machine, and they passed for me :-/20:38
gatox:S20:38
dobeygatox: so let's try again20:38
dobeygatox: i did dist-upgrade before i did that though, so maybe something was messed up when tarmac ran20:39
gatoxralsina, mmcc and this is the other branch: https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/u1-cp-publishapi/+merge/128316  ..... so the api works in windows and darwin as it should20:45
mmccgatox, that u1-client branch looks good, but it would be a lot easier to review with some more explanation. could you write a description that says exactly what the problem was and how this fixes it? And it seems like the test was just updated so it wouldn't break, but it'd be good to have a test that breaks with the old code and works with the new…20:51
mmccthat is, a new test that e.g. tries to connect two handlers and shows that they don't both get called with the old code20:51
mmccalso, the control panel branch doesn't make sense to me - do you still have to re-set the handlers every time you call get_public_files or share_file, if the u1-client end of things is keeping handlers as a list? It seems like you should be able to leave the control panel the way it is in trunk now if the u1-client changes work…20:57
gatoxmmcc, u1-client is cleaning all the signals connected after the signal is emitted..... i assume that it is doing this to behave as in linux with dbus21:01
mmccgatox: can you point me to where it cleans them?21:04
gatoxmmcc, let me find it again21:04
mmccI ask because I didn't think it did that with the status changed handler, when I worked on that…21:05
mmccThere, the issue was that we were setting two handlers in control-panel and only one of them was being saved, but the handler was never cleaned by u1-client21:06
mmcc(only the last one set was being saved)21:06
mmccthat's why I used a list of handlers there21:06
dobeymmcc: any luck with icontool/inkscape, or should we disable the build_png command on darwin?21:07
mmccdobey: ah, sorry, I didn't try that yet… I'll go poke at it now21:08
dobeymmcc: no problem, would just like to get this icon stuff taken care of before i go on holiday :)21:09
ralsinadobey: is it this monday?21:11
* ralsina wants to avoid touching canonicaladmin21:11
mmcchmm, so I need gnome-autogen? oof, maybe let's disable buildpng21:11
mmccralsina: columbus day is monday, yes21:11
mmccer, but I guess I don't know if dobey is taking off more. shouldn't answer for him21:12
dobeyralsina: yes; well i'm on holiday all week as i said in the call yesterday :)21:12
ralsinadobey: cool21:12
ralsinadobey: have fun!21:13
mmccralsina: yeah, I'm really bad about paying attention to holidays - but I will be off Monday for columbus day, even though that was never a thing anywhere else I've worked21:14
gatoxmmcc, here is disconnected: ubuntuone-client/ubuntuone/platform/tools/__init__.py:28821:14
mmccat UCSD they took César Chávez Day instead21:15
mmccgatox thanks looking21:15
dobeyugh, apparmor21:17
mmccgatox thanks, that makes sense now21:19
mmccso, do we actually need to have a list of handlers in ubuntuone-client then? I guess it can't hurt, but are we really registering multiple handlers for the same signal in the short time between making that call and getting the signal?21:20
=== m_conley is now known as m_conley_away
ralsinaCesar Chavez? The boxer? ;-)21:21
ralsinammcc: I think for US employees the guideline is some federal holidays list, you should ask HHRR, I even forget my own holidays half the time ;-)21:21
mmccralsina: yeah, it's this: http://www.opm.gov/Operating_Status_Schedules/fedhol/2012.asp21:22
mmccit came up on the canonical-usa mailing list this week, precisely because no one except post offices takes columbus day off21:22
mmccso some helpful soul reminded us21:22
ralsinammcc: it's an elaborate scam. We *are* the post office. Surprise!21:23
mmccralsina: so does that mean I can start working on that email client I have on the back burner?21:24
ralsinammcc: no, you are now the maintainer for sendmail 1121:25
ralsinammcc: *on windows*21:25
mmccthat sounds like fun21:25
dobeyyay, test boot from pxe working so far21:26
dobeybut is doomed to fail21:26
ralsinaEOW for me. See you all on monday!21:29
mmccbye ralsina21:29
dobeyralsina: see you in ~10 days21:29
mmccand I'll see you tuesday21:29
ralsinaslackers!21:31
ralsina;-)21:31
dobeymmcc: so icons? :)21:31
mmccdobey: see above, I gave up when the trail of dependencies led to gnome-autogen…21:32
dobeyah21:32
mmccsorry, I prefixed that with 'hmm' instead of dobey. thought they were synonyms21:32
gatoxmmcc, ok..... i'm having a lot of problem trying to write that test you mention because of the way this works..... i can do a test patching everything but it won't reflect the real behavior so doesn't have sense..... i'll go back to this on monday21:34
dobeymmcc: removed the build_png chaining and pushed now.21:34
ralsinagatox: monday is a holiday, you swapped?21:34
gatoxralsina, yes..... i don't have more holidays this year21:34
mmccok gatox, sorry to cause extra work :\ but it'll be good to have that. maybe take a look at the test I wrote for my thing, I used a deferredqueue21:34
ralsinagatox: calavera no chilla :-)21:35
gatoxmmcc, is not the same as in u1-client the ones from u1-cp21:35
gatoxok...... i'm off21:36
gatoxbyeeeeeeee21:36
dobeymmcc: what other icons do we need to add for darwin?21:39
mmccdobey: do you have lisette's design share? there's at least a monochrome menubar icon in there21:40
dobeyyes21:40
dobeythere are 2 sets of monochrome icons in there21:40
dobey"light" and "dark" ones21:41
mmccdobey: in this path? U1_design_share from Lisette / Desktop / mac_client / top-menu_icons / mac_icons / 3221:41
mmcc(there's a 32 and 16 after mac_icons)21:41
dobeylet me see what i have21:42
dobeyah, ok, so they are the same as the ubuntu-mono-light versions, though the 32px size is different21:44
dobeymmcc: what does osx require? both 16 and 32? and are we only going to have the logo icon there?21:44
mmccdobey: I think the short answer is that we will probably want to have both21:46
dobeymmcc: and they have to be in PNG i guess, for qt?21:47
mmccthe long answer is that it's a little complicated and I haven't had time to figure out how it should work yet. You set that using an NSImage (not a path to an icns file) which can have multiple resolutions, and our code is creating a QIcon using a png21:47
mmccso maybe for retina-friendly darwin we need to bypass the QIcon, it depends on how Qt uses the contents of the icon;21:48
dobeywell, a PNG can't have both resolutions21:48
mmccof the qicon…21:48
mmccright21:48
dobeywe should probably bypass the qicon anyway, and do the standard mac thing instead21:48
dobeythough, i have no idea how to generate the correct PDF from the SVG :)21:49
mmccHeh. I'm beginning to think this sys tray icon and menu should just be a separate pyobjc thing and not use qt at all… since the qmenu doesn't update like it does on linux, and the qactions don't appear to listen to setEnabled(false)21:50
dobeyheh21:52
dobeymmcc: should you just pull in the PNG by hand for now, and we can fix it up better later on then?21:53
mmccdobey: yeah, I think that's the best way for now. I would also like to change the icon to show the current sync state, and I want to run that by design. It kind of seems like that's what lisette was thinking anyway21:54
dobeymmcc: and hopefully with my branch now, you can build the ubuntuone.icns on darwin and it has all the sizes in it, including the 'retina' sizes21:54
mmccdobey: checking now21:54
mmccdobey: yes it works21:56
mmccfunny that you have to have 256x256@2x *and* 512x512 when they're exactly the same21:57
mmccI guess they don't have to be21:57
mmccsometimes the larger ones have more detail21:57
mmccanyway my name is Michael McCracken and I'm going to approve of that branch21:57
mmcc+121:58
* briancurtin whispers "paid for by friends of Michael McCracken"21:59
mmcc:D21:59
dobeymmcc: yeah, the @2x aren't properly done right now, they're just the same as the others; we should get that fixed in the future, but i don't want to have to be the one trying to explain what needs to be different between them22:00
mmccdobey: hehe. honestly it's also ok to have them be the same… it's only if designers want to add detail to the larger ones.22:00
dobeymmcc: well, the way lisette explained it to me, the @2x have some subtle but important differences22:01
dobeyand those were visible in the previous set of icons we had there, from here22:01
dobeyerr, from her22:02
mmcchm, ok then22:02
dobeyhrmm, and gatox's branch failed again with the 67 QThread errors22:04
dobeymmcc: anyway, after my branch lands, can you propose a branch to ubuntuone-client-data to replace the ubuntuone.icns with the one generated on darwin?22:06
mmccdobey: sure22:06
mmccwhoa, that's weird, so on linux, QMenu seems like it sends the aboutToShow event constantly, as fast as it can, as long as you are holding the menu open22:29
dobeyok, my branch is landed. i need to get away from here22:33
dobeylater :)22:33
dobeymmcc: propose that branch, and i'll poke at it later22:33
mmccdobey: ok,will do22:33
mmccit's here: https://code.launchpad.net/~mikemc/ubuntuone-client-data/newicns/+merge/12832922:36
mmccok, done! see you tuesday, channel23:12

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