/srv/irclogs.ubuntu.com/2014/05/29/#juju-gui.txt

hatchMakyo +1'd00:07
hatchafter moving the search into the new view I can only pass 11% of our tests with 16 failures before it crashes00:17
hatchlol00:17
hatchwoops00:17
hatchthats for another day!00:17
huwshimihatch: Nice!00:18
hatchYeah I'm pro like that00:19
hatchhere is to hoping your NEW old branch lands heh00:20
huwshimi:)00:25
hatchannnnd I'm out00:26
hatchhave a good one00:26
hatchwow we have no outstanding PR's go us! lol02:28
rick_h_a good day's work :)02:28
hatchhaha yup02:32
hatchrick_h_ you still around?02:53
rick_h_hatch: kinda, packing, loading, playing with toys02:54
hatchheh, I actually just figured it out02:54
hatch:)02:54
rick_h_woot02:54
hatchcontinue playing with toys02:54
rick_h_you should be figuring out how to get done for the day and go relax :P02:55
hatchbeen there, done that, it's either read this make file or do the dishes02:55
frankbanhi rogpeppe: I am working on migrating to IsolationSuite in utils10:45
frankbanrogpeppe: what do you think about removing the TestPackageDependencies tests from the two or three places in utils/*?10:45
rogpeppefrankban: (sorry, was afk)10:55
frankbanrogpeppe: np10:55
rogpeppefrankban: you mean removing the tests entirely?10:56
rogpeppefrankban: from the github.com/juju/utils repo?10:56
frankbanrogpeppe: well, either removing them or waiting for you to refactor FindJujuCoreImports -> FindImports in github/juju/testing. The former can make sense since we are going to split the package, and we "can" assume juju-core is not imported. Anyway, in utils we have several packages, and only two or three define a dependency test10:58
rogpeppefrankban: i'm just in the process of proposing the FindImports change10:59
rogpeppefrankban: (having spend most of the morning trying to come up to speed with git stuff)10:59
rogpeppes/spend/spent/10:59
frankbanrogpeppe: with any success?10:59
rogpeppefrankban: i think i have a better idea now, but we will see when i try to actually put stuff into practice...11:00
frankbanrogpeppe: heh, I mean, I'd also like to improve my understanding of rebasing stuff11:00
rogpeppefrankban: i think removing the tests can make sense11:00
frankbanrogpeppe: cool, then in my branch I can just update the testing dependency and refactor the utils test to use the new helper11:01
rogpeppefrankban: we could possibly have a test at the root of utils that checks that nothing in utils depends on juju-core, i suppose11:01
rogpeppefrankban: sgtm11:01
frankbanrogpeppe: yeah, that make sense11:01
rogpeppefrankban: it should probably just be a pre-commit check though (a recursive grep would do it)11:01
rogpeppefrankban: do we have any precommit checks any more, with the demise of .lbox.check ?11:02
rogpeppei guess i mean a pre-propose or pre-merge check11:02
frankbanrogpeppe: yeah, I'll delete the tests. I think we can set up git hooks11:03
rogpeppefrankban: sounds like a good idea. we should continue to check that code is correctly gofmt'd, for example11:03
frankbanrogpeppe: I am also putting package_test.go files where missing in utils, and replacing juju-core/testing.(Short|Long)Wait with actual values or internal constants when required11:04
frankbanrogpeppe: so that at the end of the process we'll have a self contained utils/*11:04
rogpeppefrankban: you could have local longWait and shortWait constants11:05
rogpeppefrankban: great11:05
frankbanrogpeppe: exactly, when they are used once, I'll replace them with actual values, otherwise I used local constants11:05
rogpeppefrankban: perhaps better to always keep them as local constants so that new tests can use them, but YMMV11:06
frankbanrogpeppe: cool11:19
* frankban lunches11:19
rogpeppefrankban: i found this useful w.r.t. rebasing and other stuff: https://www.youtube.com/watch?v=qh-R0-7Ii_U12:30
frankbanrogpeppe: thanks I'll take a look12:31
rogpeppefrankban: it's the only place i've found so far that talks usefully about git rebase -i12:31
rogpeppefrankban: (which, BTW, isn't as "interactive" as i feared - it just uses $EDITOR)12:32
frankbanyeah12:32
frankbanrogpeppe: I think FakeHomeSuite should got to github testing as well12:33
rogpeppefrankban: i'm not sure there - most of FakeHomeSuite is about core-specific stuff12:37
frankbanrogpeppe: FakeJujuHomeSuite is clearly core specific, FakeHomeSuite seems to just create a fake home dir with a .ssh and other stuff12:39
rogpeppefrankban: ah yes, i didn't notice the distinction there12:40
frankbanrogpeppe: we might need that later, for utils/ssh12:40
rogpeppefrankban: i'm still not sure12:41
rogpeppefrankban: it seems like a very specific kind of isolation which is accomplished anyway by clearing the environment, i think12:41
rogpeppefrankban: i'm open to arguments the other way though12:42
frankbanrogpeppe: looking at ssh test, it seems they need both clearing the env and creating/setting a HOME. I am sure we can decouple them easily from FakeHomeSuite by implementing a suite which embeds IsolationSuite and adds the missing bits. My argument is that this kind of suite could be generic enough to be in github testing, but I am ok either way12:48
rogpeppefrankban: i *think* i'd prefer something that starts with IsolationSuite and adds the missing bits. what i don't really want to see is every single test adding and removing a bunch of files and directories just because...12:49
frankbanrogpeppe: also consider that for our goal we don't need to move utils/ssh12:50
rogpeppefrankban: indeed so12:50
* rogpeppe is still struggling with git13:23
frankban:-/13:23
rogpeppefrankban: how do i create a new repo on github (not through the web UI)13:23
rogpeppe?13:23
rogpeppefrankban: git push says "repository not found"13:24
frankbanrogpeppe: do you need to push a new branch to an existing repo?13:24
rogpeppefrankban: i've forked juju/testing, and i want to push it to my own github account so i can make a pull request13:25
rogpeppefrankban: (i pushed it to juju before, but it's been deleted from there, i think)13:25
rogpeppes/forked/branched/13:26
frankbanrogpeppe: try "git push -f origin {featureBranchName}:{featureBranchName}" assuming origin is your fork13:26
rogpeppefrankban: isn't that pushing it to github.com/juju ?13:27
rogpeppefrankban: i thought the usual practice was to push it to one's own account and then send a pull req from that13:27
rogpeppefrankban: ah, i see13:27
frankbanrogpeppe: it depends on your remote name: i set origin to my fork, if origin is trunk, then replace it with the name of your remote13:28
rogpeppefrankban: so in my case, i've added a new remote13:28
rogpeppefrankban: i'll try -f13:28
frankbanrogpeppe: e.g. git push -u rogpeppe {featureBranchName}:{featureBranchName}13:28
frankbanrogpeppe: -f should not be reuqired13:28
rogpeppefrankban: no, still doesn't work13:28
rogpeppefrankban: perhaps i have to use the web UI to make the repo13:29
frankbanrogpeppe: -u should set the tracking reference, so that next time you should be able to just "git push"13:29
rogpeppefrankban: (but i was trying to avoid that)13:29
frankbanrogpeppe: ah! you still don't have the repo! so yes, you need to for from github and then push your branches from the command line13:29
frankbanrogpeppe: bah, you need to fork the repo from github. good news is that you need to do that only one time for each project13:30
frankbanrogpeppe: and then push your own branches from the command line, with the command above13:31
rogpeppefrankban: i did install a github command line client (ghi), but it doesn't seem to work at all13:31
frankbanrogpeppe: FWIW https://developer.github.com/v3/repos/forks/#create-a-fork13:34
rogpeppefrankban: ah, finally succeeded. part of the problem is i was using github.com/~rogpeppe not github.com/rogpeppe13:35
frankbanheh13:35
frankbanrogpeppe: could you please review https://codereview.appspot.com/92700044 ?13:38
rogpeppefrankban: i will plough on to try and get this pull request actually submitted first, then i'll look, if that's ok13:39
frankbanrogpeppe: np and thanks13:39
rogpeppefrankban: do you know how to delete a branch on github?13:39
frankbanrogpeppe: git branch -D $branch13:40
frankbangit push origin :$branch13:40
frankbanrogpeppe: first line to delete it locally, second to delete on github, e.g. "git push rogpeppe :my-old-branch"13:41
rogpeppefrankban: i don't want to delete it locally, just in github.com/juju/testing13:41
frankbanrogpeppe: ok so the second one: "git push rogpeppe :my-old-branch"13:41
frankbanrogpeppe: push takes the remote name and then a pair of local:remote branches. so you are basically saying push nothing to that remote branch13:42
rogpeppefrankban: but i still have to delete it locally?13:43
rogpeppefrankban: i am still confused about the branch name space13:43
frankbanrogpeppe: I don;t think so13:43
rogpeppefrankban: is it per-repository or per git-database?13:43
frankbanrogpeppe: I think you can just delete the remote one13:43
rogpeppefrankban: so the ":my-old-branch" is a refspec?13:45
frankbanrogpeppe: yes13:45
frankbanrogpeppe: so it is source-ref:destination-ref13:46
rogpeppefrankban: yeah, i was just reading the manual13:46
rogpeppefrankban: now i'm failing dismally to create a pull req13:51
rogpeppefrankban: i'm in "create a pull request", which wants a repo to compare against, but it's not clear how to refer to the original repo13:51
rogpeppes/repo to compare/branch to compare/13:51
rogpeppeit doesn't seem to let me enter a branch SHA hash13:53
rogpeppeor to select juju/testing13:53
* rogpeppe feels inadequate13:53
frankbanrogpeppe: uhm... when I create a pull request from github it usually automatically recognizes the destination (I guess using the fork source)13:53
rogpeppefrankban: perhaps because i didn't use github itself to fork the repo, it won't let me do a pull req13:54
rogpeppefrankban: i guess there's other metadata that github uses outside the repo itself13:54
frankbanrogpeppe: yes, that can be the case. what did you use?13:54
rogpeppefrankban: i created a new repo, then pushed my forked branch to it13:55
hatchrogpeppe select 'compare across forks'13:55
hatchthen select 'edit' again13:55
hatchthen in the final dropdown select your branch13:56
hatchit's a poor UX13:56
rogpeppehatch: i did that, but i don't see an "edit" button13:56
hatchon the far right?13:56
rogpeppehatch: nope13:56
rogpeppehatch: (just searched for the text "edit" and no match)13:56
rogpeppehatch: i see four popups ("base fork", "base", "head fork" and "compare")13:57
hatchmoved discussion...14:02
rogpeppefrankban: finally: https://github.com/juju/testing/pull/614:31
rogpeppehatch: does that look like a plausible pull request?14:31
hatchlooking14:32
frankbanrogpeppe: you'll rebase it later, right?14:32
rogpeppefrankban: yeah14:32
hatchrogpeppe so with these commits i'd probably rebase them all into 114:33
hatchbut other than that14:33
rogpeppehatch: ok14:33
hatchthe rational is that formatting isn't really a commit anyone cares about - and if someone was bisecting through a one line comment change that's kind of irritating :)14:34
rogpeppefrankban: since imports.go is essentially moved from juju-core, i thought it should probably keep the same copyright year.14:49
frankbanrogpeppe: ok14:50
hatchjujugui call in 1014:50
hatchkanban it up14:50
frankbanrogpeppe: :+1: == LGTM (at least that's what we do for the gui)14:57
hatchjujugui call now14:59
hatchkadams54 call15:00
kadams54Working on it15:00
hazmatmade the news http://thevarguy.com/ubuntu/052814/canonical-designers-work-mobile-friendly-ubuntu-cloud-tool15:11
bachi frankban, proposal up at https://codereview.appspot.com/102870043 -- i have not QA'ed it on OS X yet as I am working through and documenting the installation of dependencies before i can get quickstart built.15:15
frankbanbac: cool I'll take a look15:15
bacty15:15
bacjcsackett: maybe you can get paul and deryck to answer your convoy questions via twitter15:16
jcsackettbac: it's a thought.15:16
jcsackettlooks like it was rick and ian doing the work.15:16
bacwhy does the phone hangout app make joining hangouts so difficult?15:17
hatchhazmat wow I had no idea that was public15:18
hatchjcsackett every time we bring something from LP it seems it wasn't written to be portable heh - (the textarea resziser) :P15:31
kadams54hatch: would like to chat about state when you have a few minutes15:47
hatchkadams54 sure, couple mins15:49
hatchkadams54 ok ready, link me15:53
kadams54https://plus.google.com/hangouts/_/gxykkr3joazsb2prf5fdw2j5bea15:54
hatchparty is over?15:54
kadams54https://plus.google.com/hangouts/_/gxykkr3joazsb2prf5fdw2j5bea?authuser=2&hl=en15:54
hatchno luck15:54
hatchhttps://plus.google.com/hangouts/_/gwks23a34eatqqhdu46mbaeqiia?hl=en15:55
hatchtry that15:55
hatchevening anthonydillon 16:04
hatchluca thx for the new design - but is the 'Local charm' heading supposed to not be centred vertically in the 'header area'16:08
lucahatch: now that you mention it, it does look weird, I’ll ask Spencer to have a look and get back to you16:10
hatchsounds good :)16:10
hatchluca it would be rockin if you could also get him to add dimensions/hex codes ect16:11
hatchI know it's more work, but saves us from guessing :)16:11
lucahatch: thats fine, he has a tool that does that for him so wont take long16:11
hatchoh nice, now I won't accept anything but :P16:11
frankbanbac: review done16:14
lucahatch: lol16:15
hatchhaha16:16
frankbanrogpeppe: I had a similar idea re ExcludeEnvVars, that sounds good. I'd be inclined to add that later, in another branch16:17
rogpeppefrankban: sgtm16:18
frankbandata, err was tricky. data was defined globally in another test file, which was not even executed. When I fixed the test, I saw data was not the expected value :-/16:19
frankbanrogpeppe: ^^16:19
rogpeppefrankban: ha16:20
rogpeppefrankban: so was the other data value actually used?16:20
frankbanrogpeppe: yes, causing the test to fail16:20
frankbanrogpeppe: it seems to me a good practice for tests is to not pollute the global namespace, especially with generic names like "data", correct?16:21
rogpeppefrankban: *definitely* with generic names like data16:22
rogpeppefrankban: i think it's fine for tests to create globally named tables when they are named explicitly after the tests16:22
frankbanrogpeppe: yeah16:23
rogpeppefrankban: and i actually think it can aid readability16:23
rogpeppefrankban: although this is a topic on which there has been some debate :-)16:23
hatchoh man I love this new state code16:23
kadams54:-)16:24
kadams54guihelp: https://github.com/juju/juju-gui/pull/352 is ready for review and QA16:24
hatchSEE!!!16:24
hatchthat's why it's so awesome16:24
hatchlol16:24
hatchsorry I'm in the middle of some stuff if someone else could pick up that review16:25
rogpeppefrankban: BTW, do we have a LGTM convention for replies to PR's on github? or is that thumbs-up symbol automatically created from the word "LGTM" ?16:33
frankbanrogpeppe: thumbs up is :+1: , and that's just our convention for the gui development.16:34
frankbanrogpeppe: http://www.emoji-cheat-sheet.com/16:34
* rogpeppe tries to see a thumbs up in those characters16:35
frankbanrogpeppe: in the GUI, having CI connected to github,we also use :shipit: to automatically start the CI/landing process16:35
rogpeppefrankban: do you know what the convention is in github.com/juju?16:35
frankbanrogpeppe: no16:36
hatchit would be nice if they were the same convention :)16:36
anthonydillonhatch, Hey, hows it going?16:41
hatchmotoring along16:41
hatchcrazy storms here lately, hoping I don't have to deal with water in the house16:42
hatchand yourself?16:42
hatchit's rained 6" in 24H lol16:42
rogpeppeha, i *think* i've done my first successful rebase and push17:06
rogpeppethe review conversation is lost though. i guess that's inevitable, though sad.17:07
rogpeppei think i'll try to include a link to the pull request in the commit message in future17:07
rogpeppehatch, frankban: could you sanity check this repo please, just to make sure i haven't been stupid? https://github.com/juju/testing17:08
hatchsure17:09
hatchyou guys don't have a CI so you clicked the big green button?17:09
hatch^ rogpeppe 17:09
rogpeppehatch: that's right. actually i just did "git push" but same difference, i presume17:09
hatchoh ok, no you did it wrong17:10
hatch:D17:10
frankbanhatch: no CI there17:10
hatchrogpeppe https://github.com/juju/testing/pull/6 scroll to the bottom17:10
hatchsee the big green button17:10
frankbanhatch, rogpeppe: yeah there is no "Merge pull request" message in the commit history17:10
hatchyou were supposed to rebase, push back to the pr branch, then push the big green button17:10
rogpeppehatch: but if i did that, all the conversation on the PR would be lost, wouldn't it?17:11
hatchthis isn't horrible, but now you don't have reference to the PR in the commit history17:11
hatchrogpeppe no, it's just hidden17:11
rogpeppehatch: but by rebasing, won't i have lost the items from the commit history?17:11
hatchrogpeppe see this one https://github.com/juju/juju-gui/pull/34117:11
rogpeppehatch: so presumably after rebasing i'd need to do push --force onto my branch, right?17:12
hatchcorrect17:12
hatchgit push -f17:12
hatchrogpeppe it's ok, you'll get it :)17:13
rogpeppeso many ways to get it wrong. so few ways to get it right :-)17:13
hatchlol truth17:13
hatchwe tried to find a way to disable the wrong ways17:13
frankbanrogpeppe, hatch: we definitly need to add CI and :shippit: to github/juju stuff17:14
hatchbut it looks like you just have to be careful17:14
hatchfrankban agreed17:14
hatchmaybe after this cycle.....*snicker*17:14
rogpeppehatch: so the reason the comments say "outdated diff" is because the commit has been lost by rebasing, right?17:14
rogpeppehatch: but i'm guessing that github should keep the commits from being GC'd because they've got comments referring to them, yes?17:15
hatchcorrect17:15
hatchthey are in the reflog17:15
hatchso nothing is really 'lost' it's just very well hidden heh17:15
rogpeppehatch: the reflog doesn't prevent things from being GC'd17:16
rogpeppehatch: after 30 days, *gone*17:16
rogpeppehatch: at least that's my current understanding17:16
hatchoh....well no the comments are always there17:16
rogpeppehatch: but can i retrieve the branches they're referring to?17:16
hatchif you wanted to dig through the reflog17:16
rogpeppehatch: for example if i want to see the entire context of someone elses conversation17:17
hatchit's not like bzr in that they are still first class citizens17:17
hatchit's quite difficult to get that back17:17
rogpeppeoh17:17
rogpeppehatch: for example, i very often need to look at the entire file to see the context, rather than just a limited window. the standard diff view doesn't seem like it provides that.17:18
hatchif you're worried about rebasing after reviews you can make logical commits after the fact and if you don't rebase those out, then those commits and comments will still be there17:18
hatchI typically rebase those out because the original commits are no longer valid without the review changes17:18
* rogpeppe found the rietveldt model worked pretty well for this stuff.17:19
rogpeppei very often would do a diff between different stages of the code review17:20
hatchrogpeppe the BIG difference now is that we really try and make much smaller commits17:20
hatcher17:20
hatchPR's17:20
hatchwhen possible17:20
rogpeppehatch: we always tried to do that. sometimes it just doesn't work out.17:21
hatchI've noticed that our PR size has dropped dramatically since switching from bzr to git17:21
kadams54guihelp: I probably missed this in standup, but anyone know what the status is on Huw's "Wire existing containers and machines into the unit token." card? It's in the review lane but I don't see an associated PR.17:21
hatchkadams54 hmm I wonder if that's one of the ones that landed17:21
hatchlemme check17:21
kadams54It seems to have landed… there are dropdowns with machines/containers in the unplaced unit now17:22
hatchrogpeppe so the issue you have is that commits after putting up for review get rebased out without their comments?17:22
hatchkadams54 yeah I think there was some mixup with the card naming17:22
hatchyou can probably drag that over17:22
rogpeppehatch: that's a potential issue raised by others, yes.17:22
rogpeppehatch: i don't know if it's actually the case or not.17:23
kadams54hatch: Good. It'll save me from having to come up with an explanation for exceeding max WIP :-)17:23
hatchkadams54 my explanations are usually "jus tryin to get work done man"17:23
hatch:P17:23
rogpeppehatch: i just want to make sure that a) the commit history looks sane and b) all the conversations are available indefinitely after the merge has been done.17:23
kadams54hatch: should his card go in Daily Accountable or Landing?17:23
* rogpeppe needs to stop for the day17:23
rogpeppeg'night all17:24
hatchrogpeppe tbh it hasn't been an issue with the GUI, but you can play it by ear 17:24
hatchgnt17:24
hatchkadams54 landing17:24
jcastrohey hatch17:30
jcastrosince rick is missing I shall bug you ...17:30
jcastroI have an odd request17:30
jcastrois there a way we can slow do then deployment animation on jujucharms.com?17:30
jcastroto kind of make it not so fast/instant?17:30
hatchhmm17:31
hatchno17:31
hatchwell not without some time investment in it17:31
hatchjcastro you could hook it up to a local env, then it'll be much slower :)17:32
jcastroyeah17:33
hatchjcastro the issue is that when you're on a fake env it doesn't go through the typical lifecycle stages17:34
hatchso those would have to be simulated on top of the deployment17:34
hatchwhich is not a trivial fix17:34
jcastrowell, it doesn't need to be realistic17:35
jcastrojust not instant17:35
jcastrolike, add a few seconds17:35
hatchyeah the problem is that just flips a switch to deployed, there is no system in place for simulating the steps17:36
Makyohatch, got a sec for a call?17:39
MakyoIt can wait, too.17:39
hatchyeah link me17:39
Makyostandup is empty: https://plus.google.com/hangouts/_/canonical.com/daily-standup?authuser=117:40
hatchoh will these tests ever end!!!!19:50
kadams54guihelp: looking for a review and QA on https://github.com/juju/juju-gui/pull/35220:05
hatchkadams54 I'll get to it before EOD if noone else does, I'm still powering on these darn tests20:46
hatch3 more to write then fixes (I'm sure)20:47
kadams54:-)20:47
hatch3 failures21:10
hatchleft21:10
hatchjujugui looking for two reviews and qa's https://github.com/juju/juju-gui/pull/353 plz and thanks21:21
hatchkadams54 I can do yours now21:22
hatchkadams54 done - one comment21:24
Makyojujugui splitting my day to run down and pick up stuff for the move, will be back on this evening.21:26
Makyohatch, will likely miss the Australian call; you planning on heading to that?21:26
hatchyep21:26
huwshimiMorning22:26
huwshimihatch: Do you know if the AU call is happening today?22:30
hatchhuwshimi well it's just me22:30
hatch:)22:30
hatchI think everyone else has left me22:30
huwshimihaha, ok22:30
hatchI have a branch which you can review and qa though22:31
huwshimihatch: Sure22:31
hatchhttps://github.com/juju/juju-gui/pull/35322:31
hatchdoh!22:31
hatchI committed stuff I shouldn't  have22:31
hatchfixing22:31
huwshiminp22:32
hatchupdated22:33
hatchI want to get this branch landed when I get in tomorrow so I can start switching over the il flag22:35
hatchkadams54 the card that you have in starting is already done22:36
hatchMakyo had fixed it yesterday 22:36

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