Tuesday, 2015-02-17

*** jcoufal has quit IRC00:02
*** alexismonville has quit IRC00:06
*** jcoufal_ has quit IRC00:31
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible urllib  https://review.openstack.org/15515000:43
*** Piet has joined #storyboard01:38
*** gulic has quit IRC01:42
*** gulic has joined #storyboard02:00
*** gulic has quit IRC02:07
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use Python 3 compatible configparser  https://review.openstack.org/15592202:07
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use TempDir fixture for working dir  https://review.openstack.org/15595602:20
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use TempDir fixture for working dir  https://review.openstack.org/15595602:35
*** reed has quit IRC03:56
openstackgerritgreghaynes proposed openstack-infra/storyboard: Fix bytes vs string python 3 issues  https://review.openstack.org/15596904:22
*** coolsvap_ is now known as coolsvap04:31
openstackgerritgreghaynes proposed openstack-infra/storyboard: Fix bytes vs string python 3 issues  https://review.openstack.org/15596904:36
greghaynesok, fairly confident ^ should *actually* do it04:36
*** coolsvap is now known as coolsvap_05:02
*** coolsvap_ is now known as coolsvap05:09
*** coolsvap is now known as coolsvap_05:53
*** coolsvap_ is now known as coolsvap06:00
*** jcoufal has joined #storyboard06:05
*** alexismonville has joined #storyboard07:14
*** alexismonville has quit IRC07:17
*** alexismonville has joined #storyboard07:28
*** mrmartin has joined #storyboard07:45
*** mrmartin has quit IRC07:49
*** mrmartin has joined #storyboard07:50
*** jtomasek has joined #storyboard08:14
*** cody-somerville has quit IRC08:19
*** alexismonville has quit IRC08:23
*** alexismonville has joined #storyboard08:29
*** MaxV has joined #storyboard08:43
*** cody-somerville has joined #storyboard08:56
*** jedimike has joined #storyboard09:05
openstackgerritMerged openstack-infra/storyboard-webclient: Fix error notifications  https://review.openstack.org/15524209:41
*** gulic has joined #storyboard10:08
yolandahi ttx, can you ping me when you are available? i wanted to present you to Jovanka so we can talk about file attachments project10:32
*** ilyashakhat_ has quit IRC10:32
*** ilyashakhat has joined #storyboard10:32
openstackgerrityolanda.robla proposed openstack-infra/storyboard: Add an index on accesstokens table tor access_token column  https://review.openstack.org/15654310:58
*** jcoufal_ has joined #storyboard11:00
*** jcoufal has quit IRC11:03
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Split auth in api and change user_tokens  https://review.openstack.org/15359111:34
*** mrmartin has quit IRC11:49
*** mrmartin has joined #storyboard11:56
*** yolanda has quit IRC12:06
*** yolanda has joined #storyboard12:07
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Datetime instances from SQLAlchemy now all contain timezone.  https://review.openstack.org/15508312:32
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Authorization codes validate on TTL.  https://review.openstack.org/15508412:37
*** mrmartin has quit IRC12:49
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Split auth in api and change user_tokens  https://review.openstack.org/15359113:06
*** jtomasek has quit IRC13:29
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added branches to storyboard  https://review.openstack.org/15044713:42
*** jtomasek has joined #storyboard13:48
*** mrmartin has joined #storyboard13:52
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added milestones  https://review.openstack.org/15250013:57
*** Piet has quit IRC14:28
*** jtomasek has quit IRC15:51
*** jtomasek has joined #storyboard15:55
*** jtomasek has quit IRC16:02
*** reed has joined #storyboard16:11
*** jtomasek has joined #storyboard16:16
*** Piet has joined #storyboard16:18
*** gulic has quit IRC16:20
*** jtomasek has quit IRC16:26
*** jtomasek has joined #storyboard16:28
*** coolsvap is now known as coolsvap_16:51
*** jcoufal_ has quit IRC17:06
*** Piet has quit IRC17:07
*** miqui has quit IRC17:37
*** MaxV has quit IRC17:50
*** gulic has joined #storyboard17:58
yolandakrotscheck, around? i'm interested in your feedback for SB integration tests, the ones in the storyboard-webclient side18:50
krotscheckNope18:51
krotscheckNot around.18:51
krotscheckI am a turing machine.18:51
yolandaas spec got +2, and i will have the jobs ready tomorrow18:51
yolandakrotscheck, i need one of these machines too18:51
yolandathey seem so effective18:51
krotscheckInitial feedback: Your test config is likely conflict with greghaynes’s pymysql work, I would like to see them chained in some way.18:53
krotscheckProbably his work on top of yours, because I think his will require some fiddling with our puppet config as well.18:53
krotscheckSB is down18:55
krotscheckn/m18:56
yolandamm, no, i don't mean that18:57
yolandathat's for the setup of the backend18:57
krotscheckThe other one’s still WIP?18:57
yolandathis one18:57
yolandahttps://review.openstack.org/15621718:57
yolandayes, but i need your ideas18:57
krotscheckOh, that doesn’t show up on my list :)18:57
yolandaas there are few options on how to build them18:58
yolandai did an approach with protractor and requests, but you have been working with karma on it, so i wanted to have your comments18:58
yolandasb down?18:59
krotscheckError on first load issue.18:59
yolandaah, that happens still quite often, yes...18:59
*** rcarrillocruz has quit IRC18:59
krotscheckThat root state patch of mine MIGHT fix it.19:00
krotscheckNo problem switching to protractor.19:00
yolandaso i considered 2 options there. Checking actions by clicking buttons, checking ui to see results, etc...19:01
yolandaor directly testing urls and spying the json returned19:01
yolandawhat do you think?19:01
krotscheckSo, that’s two kinds of tests, no? Clicking buttons is functional testing, testing API layer against the URL’s is integration.19:01
yolandawell. yes... but functional can be done with mocking, or directly attacking the api19:02
yolandai went by testing the api layer, but i was wondering if that would cover everything19:02
yolandaif i do it complete enough it shold19:03
yolandashould19:03
krotscheckTechnically, yes, however bugs like the no-load-on-link issue wouldn’t come through on a mock. Functional tests lets us test UI with real latency.19:03
*** rcarrillocruz has joined #storyboard19:03
yolandaso i'd go with an initial set of tests that just test against the api, then we could add more integration tests if we need19:05
krotscheckCoolio19:06
yolandawe have a plan :)19:07
yolandaso i finally know how zuul-cloner works, clarkb and jeblair helped me19:07
yolandai need to refactor the jobs a bit and it should do the work19:07
krotscheckComments left. Mostly curious about the reports.19:11
yolandaabout chrome, we switched to it with the firefox issue19:12
krotscheckOh that’s right19:12
krotscheckI wonder if firefox has updated since.19:12
yolandai can test it19:13
yolandaso if you agree with the approach i'll go with some initial tests, not as dummy as this one :)19:13
krotscheckNo problems :)19:14
krotscheckGo for it19:14
yolandai need to figure out how to force login, it's needed for some tests, i guess that doing the login on the beforeeach will be enough19:15
krotscheckPreloading the database with a known state would probably be best there.19:16
krotscheckThere should bea way to preload the mock data.19:16
yolandamm, but should be done from the webclient, right?19:16
yolandaor do you meann doing that on the tools for installing the backend?19:16
krotscheckyeaaahahhhhhrmmmm....19:17
krotscheckThere’s got to be a way to do test hooks.19:17
yolandayeah for the first option or the second?19:17
krotscheckNeither.19:18
krotscheckI kindof want to be able to invoke storyboard-db-manage with every call.19:18
krotscheckSorry -every test.19:18
krotscheckI know that’ll add test overhead, but it’ll be way better to start with a clean database every time.19:18
krotscheckLooks like protractor has some hooks for that… https://github.com/angular/protractor/issues/99719:19
*** openstackgerrit has quit IRC19:20
*** openstackgerrit has joined #storyboard19:20
yolandaso you'd go in the same way that storyboard backend tests do, that create a db on each run?19:20
krotscheckI’m torn.19:24
krotscheckSetting up the DB every single time is crazy overhead, especially if we have to do it via the API19:24
yolandayes19:24
krotscheckA pity we don’t have batch request middleware :)19:24
yolandawhat i wanted to do is fill database with data, using the api directly19:25
yolandaso you test the create, create some entries, then test the get, etc...19:25
yolandanot sure if that will work19:25
krotscheckIt should, as long as each test makes sure to return the database to its previous state.19:26
yolandaand tests are done in the right order19:26
krotscheckYep19:26
yolandadoesn't look perfect to me but it can wor19:27
yolandawork19:27
* krotscheck wants a batch api.19:29
* krotscheck really wants a batch api19:29
yolandawell, shoudln't be so hard, have some inserts or deletes in bulk19:31
krotscheckgreghaynes: Question on https://review.openstack.org/#/c/155969/19:38
krotscheckAlthough I LOVE the fact that the Py3 jobs pass in that one :)19:39
greghaynesohai19:39
krotscheckyou can haz +2?19:39
greghaynesheh19:39
*** Piet has joined #storyboard19:39
greghaynesquestion is the str thing?19:40
krotscheckgreghaynes: On that one, yes.19:40
krotscheckgreghaynes: I also have a question on the first patch in the tree.19:40
greghaynesuh oh19:41
krotscheckgreghaynes: RElated to not accidentally taking down storyboard.o.o19:41
greghaynesso the str thing doesnt matter really, if the traceback included non-ascii chars, and we cared about the output encoding it would matter19:41
greghaynesbut really, the traceback shouldnt include non-ascii19:41
greghaynesand even so, it actually doesnt fix that - wed have to do six.text_type(e).encode('utf-8') or somesuch19:42
krotscheckAnd we can’t just hand ve.message to the db value error...?19:44
greghaynesNope, because its bytes19:45
krotscheckRight19:45
krotscheckblargh19:45
krotscheckWhat about the config19:45
* greghaynes tries to find that19:45
krotscheckBasically: The storyboard.conf file on storyboard.o.o does not include the +pymysql thing.19:46
greghaynesah, yes19:46
greghaynesso it still works with the old driver19:46
greghaynesso, in theory, it should be fine19:46
greghayneswe should probably test that theory19:46
krotscheckSec, I still have an old config file, I can just pull it down and see what happens.19:47
*** gulic has quit IRC19:47
greghaynesWe should also probably switch the config to use the pymysql driver but I dont think we need to be careful about when19:47
krotscheck_seems_ to work.19:54
krotscheckI lied19:55
krotscheckImportError: No module named MySQLdb19:55
krotscheckAlthough I did scrub my tox venv19:55
greghaynesooo19:57
krotscheckAlso, it appears that the pyMysql dependency is only in the test-requirements file, not the requirements file.19:57
krotscheckOur current documentation says you have to install that manually, but with this change I don’t think that’s necessary anymore, no?19:57
krotscheckOk- so if I include both drivers in the tox requirements it works.19:58
greghayneswell, you had to install them manually unless you ran tests (since they are only in the test-req's file)19:59
greghaynesI guess the advantage to that is the user can decide whether or not to use pymysql19:59
greghaynesso, depending on how storyboard.o.o is deployed, it might not be an issue19:59
greghaynesbut thats something worth checking - does it manually install python-mysql20:00
krotscheckIt does not.20:00
greghayneshuh, so how does it get there?20:00
greghaynesdoes it install test-requirements?20:00
krotscheckgreghaynes: “  include mysql::python”20:01
krotscheckWho knows what that is.20:01
greghaynesoh wow20:01
greghaynesso maybe it does install it manually20:02
greghayneswhich is actually the right way20:02
* greghaynes knows basically 0 puppet20:02
greghaynestotally separate from this, putting pymysql in the requirements isnt a bad thing IMO20:03
krotscheckIt looks like it installs the python-mysqldb package from whatever the provider is.20:03
greghaynesok, so yea, it should *just work* then20:03
krotscheckProbably pip20:03
krotscheckHuhn.20:03
krotscheckIs that some kind of a virtual package that install sboth?20:04
* greghaynes is boarding train, back in a few20:04
greghayneswe should ask someone who knows puppet though20:05
krotscheckI know a reasonable amount of puppet.20:05
krotscheckI’m tracing it.20:05
greghaynesah, well then20:05
greghayneswow, I got shafted20:09
greghaynesthey are using a bus today20:09
krotscheckThe apt package does not include pymysql. Looks lik eon trusty it’s mysql-python 1.2.320:12
krotscheckSo, it’s there.20:12
krotscheckBut we’ll need to add pymysql to the requirements so that it’s installed.20:12
greghaynesoh, so its using a system packaged mysql-python?20:13
greghaynesthats...wierd20:13
krotscheckgreghaynes: Ehn, I was in a hurry.20:15
greghaynesheh20:15
greghayneskrotscheck: so the venv storyboard is installed in must use --system-site-packages?20:15
krotscheckgreghaynes: it’s not installed in a venv.20:16
greghaynesorly20:16
greghayneswell that would explain that20:16
krotscheckNobody seemed to care at the time.20:16
greghaynesyea, its not a big deal, just suddenly making sense what is going on here ;)20:17
krotscheckWould you mind updating your patch so that the +pymysql is also in the storyboard.conf.sample file>?20:18
greghaynesyerp20:19
krotscheckThanks20:19
krotscheckgreghaynes: Oh, and the docs.20:19
greghaynesI will do that while I try and contain my anger at being stuck on a bus20:19
krotscheckRagecode. It’s what I’d do in your place.20:20
greghaynesYoure still in downtown SEA office right?20:21
krotscheckYep20:21
*** mrmartin has quit IRC20:21
greghaynesIll be there tomorrow-fri20:21
krotscheckYeah, TripleO things, right?20:21
krotscheckNew PTL elections? :)20:21
greghaynesThe event formerly known as tripleo mid cycle20:21
gothicmindfoodgreghaynes: you are making my decision to fly because train would've taken too long seem like the right one.20:28
greghaynesYeaaa, I failed hard at this one20:29
greghaynesive done this train tens of times and this is the first time its happened20:29
greghaynesgothicmindfood: when are you heading up?20:33
ttxyolanda: better wait that I'm back from travel. Like Thursday morning20:37
yolandattx, ok20:37
yolandano problem20:37
gothicmindfoodgreghaynes: tomorrow morning :)20:40
openstackgerritgreghaynes proposed openstack-infra/storyboard: Add PyMySQL to requirements  https://review.openstack.org/15676420:48
greghayneskrotscheck: Ill just merge ^ into the first patch, then20:51
krotscheckkk20:51
*** Piet has quit IRC20:54
*** jtomasek has quit IRC21:00
*** MaxV has joined #storyboard21:32
openstackgerritMerged openstack-infra/storyboard: Fix comments put method  https://review.openstack.org/15579021:58
krotscheckrainya: Hey, is your session being voted on right now?22:01
krotscheckNikitaKonovalov: I’m going to hold off commenting on aripinen’s branch and mileston patches until we can figure out whether we need DB foreign keys back.22:02
openstackgerritgreghaynes proposed openstack-infra/storyboard: Switch from mysql-python to PyMySQL  https://review.openstack.org/15233922:08
openstackgerritgreghaynes proposed openstack-infra/storyboard: Reorder py27 test to happen after py3 tests  https://review.openstack.org/15516122:09
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible httpclient  https://review.openstack.org/15513922:09
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible unicode types  https://review.openstack.org/15514022:09
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible urllib  https://review.openstack.org/15515022:10
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use Python 3 compatible configparser  https://review.openstack.org/15592222:10
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use TempDir fixture for working dir  https://review.openstack.org/15595622:10
openstackgerritgreghaynes proposed openstack-infra/storyboard: Fix bytes vs string python 3 issues  https://review.openstack.org/15596922:10
*** jedimike has quit IRC22:16
*** MaxV has quit IRC22:31
*** alexismonville has quit IRC23:02
*** Piet has joined #storyboard23:10
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Removed rfc3987 library  https://review.openstack.org/15683323:16
krotscheckgreghaynes: I based ^^ off of your urllib patch, because I didn’t want to have to make you redo all the things.23:17
greghaynesty23:17
*** MaxV has joined #storyboard23:41
*** MaxV has quit IRC23:46

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