/srv/irclogs.ubuntu.com/2013/12/19/#juju-gui.txt

hatchjujugui lf a quick doc review https://github.com/juju/juju-gui/pull/3700:48
MakyoOn it.00:48
hatchthanks00:48
hatchlooks like I need to make some changes to get the docs to compile so I'll make any other changes you find too00:51
Makyohatch, +1 otherwise.00:53
hatchMakyo curious - it's under the Bit rotted instructions along with a lot of other stuff00:54
hatchshould I just leave it?00:54
rick_h__Makyo: I'm out. I can qa again in the morning. I didn't see a reply back sorry00:55
Makyorick_h__, np, be well00:55
rick_h__Makyo: have a good night. The stuff in there ok?00:56
Makyorick_h__, Yep, just making sure it was basically LGTM otherwise, could submit tonight with those changes, on for another few hours.00:57
rick_h__Makyo: yea, sorry. I wasn't sure if there was back story to any of it and such. Like the escape things, the shortcuts used00:57
rick_h__I'll LGTM with comments00:57
MakyoCool, thanks :)00:57
rick_h__done00:58
Makyohatch, If the fix is quick, go ahead, otherwise, remove.00:58
rick_h__hatch: if those aren't system installed don't you have to find the path in the node_modules to run them?00:59
rick_h__e.g. lint and such?00:59
rick_h__hatch: I'm nervous about that change off the top of my head without matching updates to some bin scripts01:00
hatchrick_h__ when you install something with npm -g it's available to any node script01:00
rick_h__hmmm, you still -g, but it has to be sudo do write to the lib dir01:00
hatchnot if you change the permissions01:00
rick_h__it installs in /usr/lib doesn't it? only root can write there01:01
rick_h__ugh, bad form to charm perms on /usr/lib man01:01
hatchusr/local/lib01:01
hatchand no, giving sudo to any node script on npm is bad form :P01:02
rick_h__hmmm, http://paste.ubuntu.com/6597268/01:02
rick_h__I'm not a fan of this move01:02
hatchinteresting...01:02
hatchrick_h__ you must be running an older install https://npmjs.org/doc/files/npm-folders.html01:03
hatchusr/local is the prefix now01:04
hatchhmm the python tests are failing01:06
rick_h__hatch: yea, this machine is still 13.04 I think. 01:07
rick_h__hatch: but still, installing something globally in ubuntu is always a sudo thing01:07
hatchI mean version of npm/node when it was installed originally 01:07
rick_h__I'm not a fan of changing that by messing with permissions in system level directories (outside of ~)01:07
hatchagree to disagree? ;P01:08
rick_h__heh, not without a card to talk about it on standup so I can get reinforcements :)01:08
hatchtbh I don't see where the disadvantage is here01:09
rick_h__and the test that failed was saucelabs01:09
hatchif anything, restricting it's permissions is better01:09
rick_h__it's monkeying with standard linux practices01:09
rick_h__the old issue you had to chown one directory in your home 01:10
rick_h__this is playing outside of home, it's breaking multi-usre systems01:10
rick_h__user01:10
rick_h__if user rharding owns the global node modules, how can user mitechie install/use them01:10
rick_h__it's kind of fundamental to how this stuff works 01:10
hatchif root owns them neither user can without sudo01:10
rick_h__right, but you can grant sudo to muliple users01:11
rick_h__and if sudo does something, everyone gets access and shares01:11
hatchyou can also create a node-dev user group and assign it to them :)01:11
rick_h__this is setting things to one user, and the wrong one. It's a big breach of linuxy01:11
rick_h__fine, then update the instructions to use sudo to create a node-dev group, assign permissions to that folder to that group, and add your user account to that group :)01:12
rick_h__bath time, bbl, but veto without discussion on the change please01:12
hatchlol I think at that point the user knows what to do01:12
hatchok I'll leave the PR open01:12
rick_h__and the user knew what to do the old way :)01:16
rick_h__plus tests still don't pass :P01:16
hatchhey thats your fault those are the sauce labs tests :P01:19
hatchok I could do something like "Don't want random js scripts from running with sudo? Then you can do this...." :P01:19
rick_h__bah, it is a timeout isn't it. Crap01:24
rick_h__I had hoped my branch today would stop that. Oh well, going to production tomorrow should help01:25
hatch:) till tomorrow01:25
hatchcya01:25
rick_h__jujugui updating FF testing from 16 v16 to 26. Any objections?13:14
rick_h__actually 25, they don't have 2613:16
=== gary_poster|away is now known as gary_poster
* benji reboots to finish installing updates.13:24
gary_posterfrankban, rick_h__ sorry, family issues made me start late.  joining, frankban; may be late rick_h__ 13:24
frankbangary_poster: np13:24
rick_h__gary_poster: rgr13:25
bachey y'all it's quiz time.  who can guess why 'q' as a variable name is bad?13:55
benjibac: because when you're in pdb you'll type "q" expecting to see its contents but instead you "q"uit the debugger13:57
benji(not to mention that single-char variable names are almost always a bad idea)13:57
bacbenji: yes, you win a valuable prize!13:58
bacbenji: i've only done it three times this morning.  (not a quick learner.)13:58
benjiheh13:59
benjiI've tried to train mayself to use "p q" and "! q = foo" all the time in pdb so as not to have that problem.  I've not succeeded.14:00
bacconflicts with other pdb commands are annoying but not quite as much as q.14:00
benjiI love the gmail mute-a-thread function.  It's great when someone leaves the company or has a baby.14:27
hatchlol14:29
hatchrick_h__ did you see http://stridercd.com/ looks like a node version of jenkins14:34
rick_h__hatch: yea, and I talked with the dev about our landing issue14:35
rick_h__hatch: and he was interested in getting a plugin to do it14:35
hatchlanding issue?14:35
rick_h__hatch: but it's not charmed, running nodejs (non-approved tech technically), and was a bigger learning curve14:36
rick_h__hatch: the jenkins-github-lander stuff. Automated github merge based on test run14:36
hatchohh right right14:36
rick_h__so yea, I did look into it and talked with the dev. It's interesting, would have loved to had more time to follow that route as I'm not really a jenkins fan, but this was closer to working then strider for our needs14:37
hatchyou probably didnt choose it because it was node.js lol14:37
rick_h__:P14:38
rick_h__Honestly, the fact that it would make it harder to get into general use and for juju-core played a factor14:38
rick_h__but personally, I went through the code and found it cool. 14:38
hatchI wish we could have icons for unapproved charms14:39
hatchtotally unrelated heh14:39
hatchbut with these new must-have-tests rules my ghost charm will never get approced14:40
hatchapproved*14:40
hatchjujugui I made some changes to the hacking doc which involve changing permissions on a /usr/local/lib dir instead of using npm with sudo, can you check it out and give your opinion plz https://github.com/juju/juju-gui/pull/3714:42
bachatch: why is using sudo to modify directory ownership better than using sudo to install globally?14:49
hatchbac because when running npm under sudo your js script has root privileges - whereas the other way around it can only execute stuff your user can14:50
bachatch: excellent14:51
MakyoWe14:53
MakyoWe're not running our script under sudo ?.?14:53
MakyoWe shouldn't be, at least.14:53
hatchMakyo `sudo npm -g install jshint` executes the install script under sudo14:54
hatchso it can do what it wants14:54
rick_h__right, and we've selected jshint to be able to do things...like install a system (all user) available bin/jshint14:54
MakyoIsn't that part of the contract of using npm?  Same with apt-get, same with juju on a local provider...14:54
rick_h__it's the way it works. Just as you sudo apt-get install xxxxx does the same14:54
rick_h__or sudo pip install pyscss14:54
rick_h__it's the expected process. We're not doing "sudo npm install -g $user-supplied-thing" 14:55
MakyoIf the node community doesn't have a framework for dealing with malicious packages in their management system, perhaps we should move away from node.14:55
hatchok how about this.... I'll change it back to read with sudo then add "If you are not comfortable with giving npm install scripts root you can change the permissions of these directories..."14:56
hatchMakyo it doesn't anyone can upload anything to npm14:56
MakyoThen perhaps we should move away from Node.14:56
hatchyou can even override old versions on npm with new code 14:56
rick_h__then add it to to anything installing python or system packages as well hatch 14:56
rick_h__any time you install any software you're doing this14:56
hatchwell I was under the assumption that the apt packages were reviewed 14:56
MakyoI was under the impression that npm packages were reviewed :)14:58
hatchhaha, nope they are not14:58
Makyo:T14:58
hatchI'm assuming the same with apt then? :)14:58
MakyoApt's reviewed.  In order to make it in a release, a package has to be submitted and approved, thus juju-core requiring a PPA for a while.14:59
rick_h__well, main is. universe isnot so much. pypi is not reviewed15:01
rick_h__go get is definitely not reviewed15:01
hatchI've never run go get with sudo before15:02
MakyoHah15:02
hatchpypi requires sudo?15:02
MakyoOutside of a virtualenv.15:02
rick_h__to install globally, which is why we use virtualenvs15:02
rick_h__what I would LOVE to see is using npm sans -g and building our scripts to use the node_modules dir15:02
rick_h__that's the *right* fix imo15:02
rick_h__this is just breaking linux for the sake of not doing ^15:03
Makyo+115:03
hatchI'm assuming we don't because it's a heavy install?15:03
rick_h__huh? no, we don't because -g means it's automatically on our system path15:03
rick_h__and otherwise you have to find the bin/xxxx in the node_modules path15:04
rick_h__at least that's my guess, I didn't write it out this way15:04
bacgary_poster: call in a few?15:04
gary_posterbac yes, almost15:04
bacgary_poster: ok, ping me here when ready.  i'm there but not paying attention to it.15:06
gary_posterack15:06
gary_posterbac, halloo15:20
rick_h__benji: got a sec?15:38
benjirick_h__: sure15:39
rick_h__benji: I'm trying to see where the url the sauce labs tests hit gets set15:39
rick_h__benji: it looks like in browser.py it looks for $APP_URL15:39
rick_h__but I don't see it set anywhere15:39
benjirick_h__: IIRC, the Jenkins config sets it when running "make ci-check"15:41
rick_h__bah, that's right. gotcha15:42
Makyojujugui call in 10, kanban now.15:50
gary_posterjujugui call in 115:58
gary_posterfrankban, ping16:01
bacMakyo: i'm interested to hear about your truck stop food.16:08
Makyobac, I convinced them to switch to Greek food, thankfully :D16:08
baca greek truck stop would be interesting16:08
gary_posterrick_h__, chrome and ff tests working, yay :-)16:14
hatchrick_h__ apparently Netfilix is going to start streaming 4k sometime soon....good for your new monitor ;)16:21
hatchassuming of course you don't have one of those life sucking isps which limit your bandwidth16:21
rick_h__hatch: :P16:39
rick_h__hatch: heh, are there any other kinds16:39
rick_h__and I don't watch tv on my monitors. I've actually got kind of low ens 720p tvs in the house16:40
rick_h__maybe one day I'll upgrade to a 'real' tv16:40
hatchhah, well it could be worse, we could life in the Orwellian future which is the UK's current internet16:40
rick_h__speaking of...curse you dell! still in 'production'16:42
hatchit'll probably be a while, it's very likely made in China, so it'll take a while to boat over here16:46
hatchohhh d316:51
hatchMakyo we should probably update d3 we are a few versions back16:52
Makyohatch, agreed.16:52
MakyoWill look into it; should be just a drop-in-place.16:52
hatchyeah we will need to make a new shrinkwrap so at the same time it probably wouldn't hurt to revisit the other deps16:53
hatchyui and the like16:53
hatchwe HAVE to update YUI to 3.14.1 to support IE11 anyways16:53
hatchheh16:53
rick_h__hatch: heh, that answers a question about adding IE11 tests I guess then :)17:01
hatchrick_h__ hah yup17:01
hatchI mean to have us support it is pretty trivial upgrade17:02
* hatch crosses fingers17:02
hatchheh17:02
hatchanyone here use znc?18:10
rick_h__hatch: I think jcsackett used to18:10
hatchI can't figure out how to connect to it heh18:10
hatchit 'should' work from what I can tell but I keep getting rejected18:10
rick_h__jujugui anyone care to chat and help me think through a decent way of bending the make/build system to my will of running make prod but with the debug config.js?18:12
gary_posterrick_h__, I can and would be happy to in a few--maybe 17 min.  18:13
rick_h__gary_poster: rgr, appreciate it18:13
gary_posternp18:13
gary_posterif anyone else wants to do it that's cool too :-)18:13
rick_h__definitely, someone must have a tricky non fugly way to to this hidden in their head. All mine suck18:14
hatchrick_h__ make-prod --config debug then in the linked files have a switch :)18:15
hatchof course that would be a lot easier if we didn't use make18:15
hatchheh18:15
* rick_h__ is going to come over there and cut your new powercord18:16
hatchhey it's a good idea!18:16
gary_posterhey rick_h__ do you have a hangout or hall I make one?18:31
gary_postershall18:31
rick_h__gary_poster: can make one up, sec18:31
gary_postercool18:31
rick_h__https://plus.google.com/hangouts/_/7acpjrujr1s6qjbhlf3kvuegro?hl=en18:31
hatchanyone know iptables well? I think my znc issue is that it's not allowing the data through the port https://gist.github.com/hatched/4c2effe2e92e9487bf13 can you see anything wrong with this output?18:39
frankban_guihelp: I need two reviews + QA for https://codereview.appspot.com/44310043 (quickstart remove env). Anyone? no rush, thank you and have a nice evening!18:40
bacfrankban_: i'll do one later18:41
gary_posterfrankban I will take one later18:41
frankban_bac, gary_poster thanks18:41
hatchwelp it's definitely a ip tables issue because I can't even get nc to connect18:59
hatchbut lunch over, back to work18:59
rick_h__jujugui CI branch update review please. https://github.com/juju/juju-gui/pull/3819:32
rick_h__two successful test runs in a row woot!19:32
gary_posterwoot :-)19:32
bacyay19:32
hatchon it19:32
hatchwow two in a row? That's gota be a first in MONTHS!!!19:33
hatchlol19:33
rick_h__hah! 10min run time atm with all three browsers only on build prod19:33
rick_h__added a card for adding back in build-debug, but was having timeout issues on that and prod is working nicely. Want to reevaluate once this proves stable-ish19:33
hatchrick_h__ looks like IE is last?19:34
rick_h__hatch: yes19:34
hatchWe used to run it first because it was the most likely to fail19:34
hatchI'll add a comment but I wanted to hear if you had any input19:34
rick_h__well, I figure if it's last then you know the test runs itself was good, just IE hates you19:34
rick_h__if the first one blows up, you're not sure if it's CI in general or just IE failing a test19:34
rick_h__and the time diff of a coupe of minutes isn't going to make a big diff imo19:34
gary_posterrick_h__, +1 on prod only.  we can move debug to aggregated post-commit perhaps, at some point (and maybe prod too if it becaomes too annoying)19:35
rick_h__I'll work on some instructions for running locally. I was running IE sauce tests from my local environment IE only so I think that's a "better" way to debug IE failures19:35
rick_h__hatch: so I'm -1 on moving it up the list imo19:35
hatchlgtmd19:44
rick_h__hah, poking at the github graphs. Go hatch go "On develop, 50 files have changed and there have been 343 additions and 1,302 deletions"19:45
hatchrick_h__ hah this is a little disturbing https://github.com/juju/juju-gui/graphs/contributors we remove more than 50% of the code we write!19:46
hatchbac has almost removed 100% of the loc that he has written lol19:47
gary_posterit's a good thing19:47
rick_h__hah, well that's some damn fine refactoring19:47
hatchlol is it? Aren't we supposed to do it right the first time....measure twice, cut once sort of thing ;)19:47
rick_h__though you're getting credit for removing the code I wrote. So wonder how that balances out over time. 19:47
rick_h__hatch: nope, we're agile. We build, test, refactor, build, test, refactor19:47
* bac rock!19:48
hatchhaha 19:48
gary_posterhatch, our last project would not allow you to add code unless you had removed an equivalent amount19:48
hatchhaha oh really? Interesting 19:48
bacgary_poster: did you ever track that?19:48
bacgary_poster: it happened as we were fading away19:48
gary_posterbac, true19:48
rick_h__orange squad had a bzr command we ran so we could justify crap19:48
rick_h__sucked because we kept claiming exceptions to get private projects finished19:48
rick_h__"I know this adds code, but private projects must go on....move aside"19:49
bacanyone using clef, phone-based oauth tool?19:51
rick_h__nope, just lastpass mobile for that stuff19:52
gary_posteryeah lp me 219:52
rick_h__well, I guess that's a 2fa ish lastpass merged thingy19:52
bacyeah, but clef automates the communication between site and phone by talking via squiggly lines19:52
rick_h__I don't get how it's 2fa though if it only requires your phone?19:53
rick_h__what's the second factor?19:53
hatchyour FIST!19:53
bacit's not 2fa afaict19:53
rick_h__Secure, easy, passwordless 2-factor authentication in less than 10 minutes.19:53
rick_h__from the website :/19:53
bacoh19:53
bacseems like they are just an oauth service and they use your phone as identity rather than a password19:54
bacrick_h__: i guess they consider the 4 digit passcode to get into the app as 1 factor19:55
rick_h__bac: ah, gotcha19:55
hatchit's interesting19:57
hatchI could see lastpass and that type of system working really well19:57
hatchalthough pattern is far more secure than 4 digit pin heh19:57
bacrick_h__: i'm proposing the charmworld qa branch.  would you have time to review it, being the godfather of all that stuff + migrations?19:57
rick_h__bac: sure thing, ok for it to be first thing in the morning?19:58
bacrick_h__: yeah, i guess.  charmworld isn't landing before monday19:58
bacif then19:58
rick_h__I just got CI landed with IE support and want to drop the mic and EOD feeling all badass atm. :) and I have to run an errand to get presents in the mail atm19:58
bacnp19:58
rick_h__bac: thanks, I'll hit it up either later tonight or first thing in the morning. 19:58
rick_h__jujugui all three browser saucelabs has landed. and if we want to add safari it's one step away as well. landing/test times are around 10min now 19:59
hatchlove it20:00
* rick_h__ runs away before something breaks20:00
gary_posterthank you rick_h__ !  Very cool20:00
benjivery nice20:00
baccool20:02
hatchI'm actually surprised we didn't have CI for so long and everything we have still passes20:07
hatchhow awesome are we???20:07
benjilevel of awesome: lucky20:07
hatchPFFT20:09
hazmatvery cool20:14
bacbenji i sometimes wish your irc comments came with a 'like' button.20:20
benjiThat's how I'll make my millions: IRC + Like Button20:21
rick_h__hatch: remember, we're running what, 6 tests?20:21
rick_h__:P20:21
baci'd buy one.[*]20:21
bac[*] requisite daily Raising Arizona reference20:21
bacrick_h__: at your leisure https://codereview.appspot.com/4407004520:22
hatchrick_h__ ohh you aren't running the unit tests in each browser?20:24
hatchI can't seem to write d3 code that looks good21:03
hatchno matter what chaining just looks horrible :/21:03
hatchMakyo are you around?21:08
hatchMakyo when you get back from lunch I have a question about d3 not noticing a data change21:08
MakyoWhat's up?21:09
hatchMakyo doh nm I screwed up, I forgot I was still in the d3 'enter' phase21:14
hatchsorry to botha21:14
MakyoGlad I could help :D21:14
hatchhaha rubber duck debugging :D21:15
hatchI'm switching the relations tab to use d3....wow there is a LOT more loc than just using a template haha21:15

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