/srv/irclogs.ubuntu.com/2017/09/01/#cloud-init.txt

blackboxswthanks powersj01:58
smoserblackboxsw, i followed up on ds-identify bug.13:41
smoseradn the one other new one there.13:41
rharperpowersj: maybe we should enable a jenkins run with that nose-timer ?  that's super nice to track every so often14:24
smoserrharper, you have to add nose-timer to tox environment.14:31
smosernot opposed to that happenting14:31
rharpersmoser: yeah; just figured that we don;'t all need to do that if we had a daily/weekly checkup via a special jenkins run14:32
rharpereither is fine14:32
smoserits not really a huge deal to add it though14:32
smosercompared to a pita for some jenkins job to kind of insert it.14:33
blackboxswmorning folks14:35
smosero/14:36
powersjI'd like to get a job to track over all time and if it gets too high fail.14:36
powersjJust for tox14:36
smoserpowersj, well, by design it needs to go up over time14:37
smoserat least blackboxsw is bent on that happening.14:37
smoserie, total time is somewhat related to number of tests, and a goal is to increase number of tests.14:37
blackboxswyeah, I feel it's a failure if our tox runs don't take longer14:37
blackboxsw:)14:37
rharperI thought jenkins jobs were easy? some template and a bash script ?  but smoser I think you're right in case someone wants to run it on their own; make it easy in our tox runs14:38
powersjYes but to go from 5 or 6 seconds to 20 is a little unexpected14:38
blackboxswas in, we didn't add more unit tests14:38
blackboxswagreed14:38
smoserrharper, well,. figure out how to programatically14:38
smoser a.) create the python3 tox environment14:38
blackboxsw5 to 20 seconds means a poorly written test14:38
smoser b.) insert the nose package (pip install)14:38
* powersj relocates 14:38
smoser c.) run tox -e py3 and and in the '--nose-timer' args without changing the default command or arguments thaat would noramlly run with14:39
smoseracross possible changes to the command in trunk14:39
smoserit seemed easier to me to just have trunk add the --nose-timer and even run with it.14:39
smoserand kind of... why *shouldnt* you be shown that the test you're adding is the slowest one14:40
powersjwe could also have it show only the top 10 slowest jobs14:59
rharpersmoser: +1 on showing you you're the slowest15:49
blackboxswbikeshed  question--  datasource method names:16:01
blackboxswDS.get_instance_data -- crawls all instance metadata, userdata vendor data but makes no changes to the cached content16:02
blackboxswDS.refresh_instance_cache -- calls get_instance_data and applies it to the cache16:02
blackboxswany other/preferred naming suggestions? I know larsks had a suggestion about that16:02
blackboxswpowersj: rharper smoser ^ any paint preference you want to throw on this shed when I rename them and standardize datasources?16:03
powersjnope16:05
rharperblackboxsw: generally I would expect get_instance_data to return cached data (unless you pass a nocache or something like that)  we do that with the blkid bit (and blkid itself will auto cache unless you say otherwise)16:05
rharperthat is most callers are going to want what's in the cache; some callers are going to know they want to ignore the cache and pull fresh16:06
blackboxswgood thought, I like the idea of a no_cache param too16:17
smoseri think there are maybe 3 functions oon a datasource object related to metadata17:17
smosera.) crawl the metadata service, getting everything. return that data in a object that is datasource specific.17:18
smoser  (ie, the one on amazon doens't look like the one on openstack)17:18
smoserb.) translate that data from 'a' into the "standard" format17:19
smoserc.) update the datasource's cached values from 'b'17:20
smoserblackboxsw, ^18:51
blackboxswsmoser: thanks for this. +1 on that thought. right so we might need an intemediary translate implemented that could handle raw -> standard/flattened from each datasource19:31
blackboxswmerged powersj https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/33011122:40
powersjblackboxsw: thx!!22:42
blackboxswpowersj: did you link that branch to a trello card?23:08
blackboxswif not I might attach it to https://trello.com/c/RYkSTMi8/319-ci-build-times-increasing23:09
powersjblackboxsw: go for it23:09

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