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

=== trijntje_ is now known as trijntje
mandelmorning all!08:08
JamesTaitGood morning all! :-D08:33
=== mpt_ is now known as mpt
gatoxgood morning11:27
ralsinagood morning!11:40
mandelgatox, ralsina morning!11:42
gatoxmandel, ralsina hi11:42
ralsinagatox: check the last comment in bug #106215112:03
ubot5Launchpad bug 1062151 in Ubuntu One Client "share links tab waiting forever" [Undecided,Confirmed] https://launchpad.net/bugs/106215112:03
gatoxralsina, ack12:03
gatoxlinking....12:03
=== mandel is now known as mandel|lunch
ralsinaHave to run an errand, wll be back in < 60'13:07
gatoxbrb....... reboot13:09
=== mandel|lunch is now known as mandel
mandelralsina, 1-1 whenever you want14:10
ralsinamandel: to the bat-mumble!14:10
mandelralsina, ok, let me reboot into os x14:10
chaselivingstonralsina: is mmcc out today?14:57
thisfredchaselivingston, quite possibly, it's a US holiday14:59
chaselivingstonthisfred: right, wasn't sure if he swapped it like many of us did14:59
thisfrednot sure either15:00
briancurtinme?15:00
gatoxme15:01
ralsinachaselivingston: he's out, yes15:01
ralsiname15:01
thisfredme15:01
ralsinaAlso, welcome back thisfred!15:01
thisfredralsina, thx!15:02
gatoxmandel, ^^15:02
mandelme15:02
ralsinabriancurtin: go15:03
briancurtinDONE: debugging SD tests, trying to figure out why it can't find comtypes15:03
briancurtinTODO: wade through the rest of the allegedly missing things (that arent missing) and run everything15:03
briancurtinNOTE: swapped today's US holiday for the friday after thanksgiving15:03
briancurtinNEXT: gatox15:03
gatoxDONE:15:03
gatoxWrite a little guide about how to install and get the SyncMenu indicator working. Filed a couple of bugs about the SyncMenu and Systray Icon for u1-client and u1-cp. Working on the weird tests for the api fix branch.15:03
gatoxTODO:15:03
gatoxSubmit the tests and push people to review those branches again.15:03
gatoxBLOCKED:15:03
gatoxTrying to figure it out how to implement this tests.15:03
gatoxralsina, go15:03
thisfredralsina, I'm shifting my core hours, so I'll be here from 1.5 hours ago until 7.5 hours from now, with a 1 hr break in the middle15:03
ralsinaDONE: calls, calls, reorg calls, and calls. TODO: calls! BLOCKED: no, NEXT: thisfred15:03
thisfredDONE: move 3000 miles west TODO: pick up playlists, unless they're done BLOCKED: no NEXT: mandel15:03
ralsinathisfred: awesome15:03
mandelDONE: autopilot tests. Merged with lp:unity and found that unity is broken (does not compile) yet make dash works (so no blocker for my work).15:03
mandelTODO: reviews, go after people to get things landed.15:03
mandelBLOCKED: no15:03
thisfredralsina, that mean 1 hour later than it used to be, and for me starting at 6:30, rather than 5:30 ;)15:04
ralsinathisfred: lazy! ;-)15:06
thisfredI know! :)15:07
thisfredIt also means being done in time for happy hour every day! :D15:07
* mandel reboots due to updates15:10
* thisfred too, due to computer being weird15:12
* gatox lunch15:30
=== gatox is now known as gatox_lunch
thisfredanything the matter with lp/internal IRC? Both are giving me a hard time15:35
ralsinathisfred: lp is slowish15:39
ralsinathisfred: interal IRC seems fine15:39
thisfredI can't seem to connect at all, getting a lot of 'connection reset's... bloody comcast. And again, the only game in town, it looks like...15:40
thisfredmail also superslow15:41
mandelthisfred, try spinning the mouse to the right, if you do it to the left it will go slower ;)15:42
thisfredheh15:42
mandelEOD in spain, catc you all tom!16:20
thisfredlater mandel16:21
thisfreddefinitely in dns hell16:21
thisfredbah16:21
ralsinathisfred: it's just you, I rebooted my server and everything normalized :-)16:23
mandelhehe moving always brings problems to the internet connection16:23
thisfredyeah, especially in combination with comcast16:23
thisfredI think dnsmasq and the xfinity router hate eachother16:24
thisfredmaybe not. disabling dnsmasq doesn't solve all the problems, at least16:26
thisfredsigh16:26
thisfredweird that almost everything seems to work, though, except for launchpad, canonical mail, and canonical irc16:27
mandelon purpose so that you don't work :)16:28
ralsinathisfred: switch to google dns?16:28
thisfredralsina, yeah maybe16:29
thisfredhmm, no change either, so maybe it's not dns16:31
thisfredmaybe ssl cert lookup or something16:32
thisfredi hate computers16:32
ralsinagatox_lunch: what was the command you used to upgrade to Q? I feel lucky!16:35
mandelralsina, can't you do sudo update-manager -d when you have setup the sources correctly?16:36
=== gatox_lunch is now known as gatox
beunoralsina, you'll need to tell 12.04 to upgrade you to newer versions, not just LTSs16:36
ralsinabeuno: right16:36
beunoyou can set that from update-manager itself16:36
mandelin sources16:37
beunono, don't touch your sources16:37
beunoignore mandel, as usual! :p16:37
* beuno has all his computers on 12.1016:37
gatoxralsina, what mandel says...... but you need to allow updates from betas from the settings dialog that you have in that window16:37
ralsinagatox, beuno, mandel: thanks I think I got it16:37
ralsinaI never actually live-updated before, I always started from scratch16:38
mandelbeuno, as  I have, software sources => updates => Notify me of a new Ubuntu version => for any new version16:38
mandelunless that has changed..16:38
ralsinaoh, crap, another bug in our startup stuff, we ignore --switch-to now :-/16:43
gatoxralsina, what?16:43
ralsinagatox: --switch-to=account (or any other) does nothing16:44
ralsinain u1cp16:44
gatoxralsina, do you want to assign that to me? it seems that i have a couple of bugs u1cp related16:44
ralsinagatox: I was about to look at it myself16:44
gatoxralsina, ah ok16:45
ralsinagatox: if I get distracted I'll send it to you. But I wrote that part so...16:45
gatoxralsina, roger that16:45
ralsinaoh, it's switching but later it switches back16:51
=== eu is now known as Guest86389
=== Guest86389 is now known as adorilson
ralsinaSo, --switch-to has been broken since *march* and revno 290 :-(17:29
ralsinawhich just happens to be a huge diff, just to make it more fun17:29
ralsinaelopio: are you around today?17:31
ralsinanessita: you around? I have a question about a branch of yours from march :-)17:36
nessitaralsina: shoot17:36
ralsinahttp://bazaar.launchpad.net/~ubuntuone-control-tower/ubuntuone-control-panel/trunk/revision/29017:36
ralsinalook for folders_tab_idx17:36
ralsinabasically that negates the --switch-to option17:36
ralsinado you know why you added that?17:37
nessitaralsina: yes, can this be the callback that only gets called from when the user finishes the wizard?17:38
nessitaralsina: or have you confirmed that the same callbacks is called no matter where the user is coming from?17:38
ralsinanessita: confirmed, if I comment those two lines, switch-to works again17:39
ralsinanessita: seems to be connected to credentials_found in general17:39
nessitaralsina: as the commit message reads, this branch added a page to the wizard... so I would guess the changes are for that workflow to work...17:40
ralsinanessita: ok, I'll try the wizard with that commented17:41
nessitaralsina: I guess a solution that works in both scenarios is needed (plus tests so none breaks that again...)17:41
ralsinanessita: it works just fine in both cases17:42
nessitaralsina: I don't think I added that for no reason17:42
* nessita thinks17:42
nessitaralsina: would you please confirm what you tried out?17:42
elopioralsina: I'm here.17:42
nessitato see if I can think of another scenario where this switch is needed17:42
ralsinanessita: removed the device, logged in with existing account, went through the wizard17:43
ralsinanessita: ended in the "managing" widget, just fine17:43
nessitawhat page in the management widget did you end up in?17:43
ralsinaelopio: we need to add another smoke test17:43
nessita(you need to end up in the folders tab)17:43
ralsinanessita: with the --switch-to option, in the right now17:43
ralsinasorry,  right onw17:43
gatoxmandel, are you still around?17:43
nessitaralsina: and without it?17:43
ralsinaI'll try without it now17:44
elopioralsina: for macosx? and when?17:44
ralsinaelopio: we need to test that the --switch-to option on u1cp works. It's mostly for ubuntu17:44
ralsinaelopio: although it should work on all platforms.17:44
ralsinaelopio: and for the next run if it's not much trouble. It has been broken for 7 months ;-)17:44
elopioralsina: ok, I can test it right now on ubuntu.17:45
elopioralsina: ok, I'll add it to the smoke :)17:45
ralsinaelopio: right now I know it's broken :-)17:45
elopiowhat does it do?17:45
ralsinaelopio: lets you choose what tab of the u1cp is open on startup17:45
ralsinaso --switch-to=devices should open the devices tab17:45
elopioralsina: got it. Let me know when I can test.17:45
ralsinaelopio: cool, thx!17:46
gatoxnessita,  do you have a minute for a technical question?? because i was ask to do a test.... that i'm not completely sure if it make sense..... and there aren't tests about that, and maybe there is a reason17:46
nessitagatox: shoot17:46
gatoxnessita, i've changed a little bit the implementation of ubuntuone/platform/tools/perspective_broker.py: connect_signal (https://code.launchpad.net/~diegosarmentero/ubuntuone-client/ubuntuone-client-publishapi/+merge/128312)..... and mmcc ask me to add a test for that..... the tests for that module are in: tests/platform/tools/test_tools.py ........ but i'm having a lot of problem trying to tests THAT..... becouse of the crazy things that th17:48
gatoxe class wrap, etc..... and i notice that there isn't any test that check the behavior of connect a signal, and then execute the function... and i thought that maybe there is a reason....... and i can stop suffer17:48
ralsinanessita: works perfectly without --switch-to.17:51
nessitaralsina: what page did you end up in after logging in?17:52
ralsinanessita: folders17:52
ralsinanessita: it has happened a few times that the default page got changed in designer17:52
nessitaralsina: you sure? even after deleting the device? I would think you would end up in the same devices tab17:52
ralsinanessita: oh, I restarted u1cp17:52
nessitaralsina: can you try without restarting?17:52
nessitalike deleting, re logging17:53
ralsinanessita: sure, but I expect that will happen in that case17:53
ralsinanessita: but this is the wrong solution, we should move to folders tab when deleting the device, not when we get the credentials17:53
ralsinain any case, checking17:53
nessitait was a design request to end up in the folders tab after logging in. But you are free to change as you consider it proper.17:54
ralsinanessita: it will end in folders anyway17:54
nessitaralsina: with my change, yes17:54
nessitawithout it, not sure17:54
ralsinanessita: with mine too :-)17:54
nessitaralsina: not sure what's your change :-)17:54
ralsinanessita: "move to folders tab when deleting the device, not when we get the credentials"17:54
nessitaralsina: I personally find that dirty, since that's a workaround for the requiremente "after login end up in folders"17:55
nessitabut not my call17:55
ralsinanessita: but your change breaks lots of other things. Thanks for the rationale for your branch, I wouldn't have guessed it!17:56
nessitaagreed that my chance was too violent17:56
nessitaI guess I thought it was correct since no test broke17:56
nessitasorry for that17:57
ralsinanessita: al mejor cazador se le escapa alguna liebre :-)17:57
ralsinanessita: I'll add tests for it for next time!17:57
nessitagatox: so, going back to your question17:57
gatoxnessita, yap.....17:57
gatoxnessita, did you receive my message?17:58
nessitagatox: I'm looking at the code and I'm kinda puzzled about the change, I'm not understanding it17:58
nessitayes17:58
gatoxnessita, the things is:17:58
gatoxnessita, that was doing a lot of bad things, because several stuff was being connected to the same signal, and setattr just override the attr, so the last thing connected was the one being called...... and we need to have something as a list of handlers to be call when the signal is emitted17:59
nessitagatox: right, the original code will not allow more than one callback. So, I understand your change.17:59
gatoxnessita, aja....17:59
nessitafirst of all, this code is <with love>ugly</with love>:17:59
nessita+        if (signal_name in self.connected_signals and59+           handler not in self.connected_signals[signal_name]):60+            self.connected_signals[signal_name].append(handler)17:59
nessitagatox: do you know what a default dict is?18:00
gatoxahhh yes....18:00
gatoxnessita, yes..... that can be improved with that18:01
nessitagatox: https://pastebin.canonical.com/76064/18:01
nessitaso, first of all, improve the code using a defacultdict(set)18:01
nessitasecond, you need to add the following test:18:01
gatoxnessita, yap....18:01
nessitagatox: having an instance of this class (or a heir, whatever you're testing), do:18:02
nessitacalled1 = []18:04
nessitacalled2 = []18:04
nessitaself.the_instance.connect('the-signal', lamba *a: called1.append(a))18:04
nessitaself.the_instance.connect('the-signal', lamba *a: called2.append(a))18:04
nessitathen triger the signal "the-signal" in your instance with:18:04
nessitaself.the_instance.emit('the-signal', 'foo', 'bar', object())18:04
gatoxnessita, yes..... my problem was that the existing tests are patching connect_signal, and stuff, because this is being wrap with call_after_connection_inner...... and trying to create the instance to actually use it.... was generating a lot of reactor was unclean....18:04
nessitaand then assert that both called1 and called2 have the value ('foo', 'bar', object()) in it (where object() should be a variable so is the same one)18:05
nessitagatox: did you try the test I'm describing?18:05
nessitagatox: if you have a test case that patchs everything out, create a new testcase that does not patch everything out18:06
gatoxnessita, yes..... i was doing that...... and there i was having the reactor was unclean problem18:06
nessitagatox: so, that's  "separated" from how to test the change. I think the change needs to be backed up with one or more tests18:07
gatoxbut.... i'll keep trying to get a functional instance of that18:07
nessitaabout the reactor unclean... it can get messy... but it usually means that you still have stuff in the reactor when the tests finished18:07
nessitagatox: so I guess you're not disconnecting your "instance" properly? are you calling shutdown as a cleanup function/>18:08
nessita?18:08
nessitagatox: you can push the branch to LP and make a proposal in WIP state18:08
nessitaI may take a look at that diff and try to help18:08
gatoxnessita, ok..... let me try some stuff and will ping you later with the MP if i can't figure it out18:09
gatoxnessita, thx18:09
nessitaack18:09
nessitaprego18:09
ralsinagatox, maybe nessita: https://code.launchpad.net/~ralsina/ubuntuone-control-panel/switch-baby-switch/+merge/12855918:16
ralsinaif not nessita, briancurtin18:17
briancurtinralsina: i'll take a look18:17
ralsinabriancurtin: thanks!18:17
briancurtinralsina: typo in commit message, s/hen/then18:17
briancurtinralsina: i don't think i can test this IRL since i'd have to remove the device and login again - still need existing creds on windows. i'll try it though and see if this env fixed that18:19
gatoxralsina, on it18:19
ralsinabriancurtin: ack18:19
ralsinabriancurtin: you can try half of it though18:19
briancurtinralsina: yep, i'll give ya what i have18:19
ralsinabriancurtin: awesome!18:19
ralsinagatox: this fixes one of the broken bits in the sync-indicator test BTW18:20
gatoxralsina, +118:28
ralsinagatox: thanks!18:29
chaselivingstonralsina: is there a list of known issues for mac anywhere?18:33
briancurtinralsina: approved18:36
=== m_conley_away is now known as m_conley
ralsinachaselivingston: filter by u1-darwin tag18:43
chaselivingstonralsina: ok, i'll give that a shot, thanks18:43
ralsinachaselivingston: that should get you the known mac bugs although lots of others are cross-platform bugs18:43
chaselivingstonralsina: sure, i'll see if that's enough to get us started18:44
gatoxnessita, this is the branch where i'm trying to add the test: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/ubuntuone-client-publishapi/+merge/12831218:50
gatoxnessita, i'm running the test with:  u1trial -t test_connect_several_handlers_to_same_signal tests/platform/tools/test_tools.py18:51
gatoxnessita, there's not assert there or anything.... just trying to execute connect_signal and avoid dirty reactor18:51
nessitagatox: will look in 15 min approx18:52
gatoxnessita, ack...... i'll keep looking here18:52
nessitagatox: are you calling shutdown somewhere as a cleanup call?18:55
gatoxnessita, nop..... i'll add that in the tearDown.... but i think the problem is somewhere else18:56
nessitagatox: do you know what ditry reactor means?18:56
nessitadirty*18:56
nessita(let's start with the basics)18:56
gatoxnessita, yes18:57
nessitagatox: how would you describe it?18:57
nessita(I'm curious cuz if you think that shutdown can be added later, then we have different understanding of what a dirty reactor is)18:57
gatoxnessita, i've added the call to shutdown in the tearDown method of the test case and i'm getting the same error...... that's what i was trying to explain18:58
nessitagatox: note 1: always use addCleanup, instead of tearDown18:59
nessitanote 2: how would you describe what the dirty reactor is?19:00
nessitagatox: ^19:01
=== m_conley is now known as m_conley_away
gatoxnessita, 1) i get a similar problem with addCleanup... but it fails in some other way.... maybe i can debug further from there19:01
gatox2) when some of the stuff running on deferred, are not closed properly and we still got live objects19:02
nessitagatox: not only deferred. When you have a service listening in a port and a client connects to it, and never disconnect, that will also give you a dirty reactor19:02
nessitagatox: so, that's useful to know when dealing with these tests: both the "server" and the client has to be properly disconnected19:03
nessitain my case, if I add:L19:03
nessita        self.addCleanup(self.sdtool.shutdown)19:03
nessitato the setUp, the cleanup never finishes19:03
nessitabecause the server can not shutdown19:03
nessitabecause there may be a connection to the server that is not being closed19:03
nessitagatox: does that ring any bell?19:04
nessitagatox: I'm also getting a lot of19:05
nessitaERROR:root:Could not find any typelib for SyncMenu19:05
nessitaAnother instance is running19:05
nessitagatox: you should note that this test you're creating is trying to connect to a syncdaemon service, which is not available...19:05
nessitaI'm getting:19:05
nessitaubuntuone.platform.ipc.ipc_client.SyncDaemonClientConnectionError: ('Could not connect to the syncdaemon ipc.', ActivationTimeoutError())19:05
gatoxnessita, yes..... i'm getting something like that here too.......19:06
nessitagatox: that means the sdtool is trying to connect to a service that is not avaliable19:06
nessitaso you need to fix that part first19:06
gatoxnessita, i should patch UbuntuOneClient19:07
nessitaI've been lucky enough to forget a lot about this, so I'm honestly not sure19:07
nessitabut definitely you need to solve the connection issue first19:08
nessitagatox: have you considered what the other test case do?         self.sdtool.client.fake_remote = FakeRemoteObject()19:09
nessitahum, no19:09
gatoxnessita, ok..... thx, i think i have an idea of what i can do19:09
nessitamaybe unrelated19:09
gatoxnessita, nop.... that's not it19:09
nessitagatox: hoped it helps19:09
gatoxnessita, already try that19:09
nessitaright, is unrelated19:09
gatoxnessita, yes, thx.... i was at the point of not understanding anything19:09
nessitaanytime19:09
=== m_conley_away is now known as m_conley
gatoxnessita, it's almost working...... thanks for the tips! :'D..... i understand now.....19:43
* gatox was mentally blocked19:43
nessitagatox: that's great :-)19:44
gatoxok...... eod here...... i submit the tests for the u1-client branch..... FINALLY........ i hope it land tomorrow after the reviews, that will fix a couple of problems in windows/darwin20:09
gatoxbye people!20:09
* gatox needs to rest and relax...... 20:09
ralsinaEOD for me20:43
ralsinaI will be back later, so post review requests, etc.20:43
briancurtinralsina: two easy branches to review if you're up for it: https://code.launchpad.net/~brian.curtin/ubuntuone-control-panel/run-tests-update/+merge/128583 and https://code.launchpad.net/~brian.curtin/ubuntuone-client/run-tests-update/+merge/12858222:37
briancurtinand i'm out22:38
=== m_conley is now known as m_conley_away

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