Friday, 2018-12-14

kmallocShrews: out of curiosity, why do we have our own ... on-demand cache-on-arguments that does it independantly of import time? this seems odd... is it just to override the self-being-needed in the .invalidate?00:06
*** slaweq has joined #openstack-sdks00:11
*** slaweq has quit IRC00:16
ianwhttps://review.openstack.org/#/c/171456/ is where it seems to have come in00:31
*** dtroyer has quit IRC00:34
*** dtroyer has joined #openstack-sdks00:35
*** dtroyer has quit IRC00:36
*** dtroyer has joined #openstack-sdks00:37
*** cdent has quit IRC00:39
*** slaweq has joined #openstack-sdks01:09
*** slaweq has quit IRC01:15
*** d0ugal has quit IRC01:56
*** d0ugal has joined #openstack-sdks02:11
*** dave-mccowan has joined #openstack-sdks02:38
*** slaweq has joined #openstack-sdks03:11
ianwI have updated https://storyboard.openstack.org/#!/story/2004605 and have a small test-case in an upstream issue https://github.com/sqlalchemy/dogpile.cache/issues/14003:15
*** slaweq has quit IRC03:15
kmallocweird...03:22
kmallocthis is just odd03:22
kmallocianw: i can't log into github atm, or i'd comment on your issue03:25
kmallocianw: i think dogpile is doing the sane thing and openstacksdk is doing something very weird.03:25
kmallocianw: i know it's a behavior change but i wonder why we didn't just raise up the invalidate instead of adding another layer of wrapping03:26
ianwkmalloc: at this point i dunno, i'm going a bit cross-eyed from staring at it :)  gonna switch gears to look at the pin, because we kind of need that to unblock other stuff03:29
ianwwe have a circular dependency in fixing nodepool jobs03:29
openstackgerritIan Wienand proposed openstack/openstacksdk master: Avoid dogpile.cache 0.7.0  https://review.openstack.org/62448503:34
openstackgerritIan Wienand proposed openstack/openstacksdk master: Avoid dogpile.cache 0.7.0  https://review.openstack.org/62448503:37
*** Hazelesque has quit IRC03:43
*** lbragstad has joined #openstack-sdks03:50
*** lbragstad has quit IRC03:51
*** Hazelesque has joined #openstack-sdks03:51
kmallocianw: ++03:57
kmallocianw: i'll poke at mordred and Shrews i'm sure they know03:57
*** dave-mccowan has quit IRC04:03
*** slaweq has joined #openstack-sdks04:11
*** lbragstad has joined #openstack-sdks04:13
*** slaweq has quit IRC04:16
*** markvoelker has joined #openstack-sdks05:04
*** slaweq has joined #openstack-sdks05:11
*** slaweq has quit IRC05:16
*** slaweq has joined #openstack-sdks07:11
*** Luzi has joined #openstack-sdks07:13
*** slaweq has quit IRC07:16
*** slaweq has joined #openstack-sdks07:41
*** markvoelker has quit IRC07:45
*** slaweq has quit IRC07:47
*** slaweq has joined #openstack-sdks07:50
*** markvoelker has joined #openstack-sdks08:16
*** jpena|off is now known as jpena08:48
*** cdent has joined #openstack-sdks08:50
*** tosky has joined #openstack-sdks08:53
*** ttsiouts has joined #openstack-sdks09:45
*** markvoelker has quit IRC10:36
*** markvoelker has joined #openstack-sdks10:37
*** e0ne has joined #openstack-sdks10:40
*** markvoelker has quit IRC10:41
*** cdent has quit IRC11:09
*** markvoelker has joined #openstack-sdks11:16
*** Luzi has quit IRC11:44
*** ttsiouts has quit IRC12:05
*** ttsiouts has joined #openstack-sdks12:05
*** ttsiouts has quit IRC12:10
*** ttsiouts has joined #openstack-sdks12:16
*** bobh has quit IRC12:24
*** bobh has joined #openstack-sdks12:30
*** jpena is now known as jpena|lunch12:31
*** bobh has quit IRC12:41
*** bobh has joined #openstack-sdks12:44
openstackgerritmelissaml proposed openstack/openstacksdk master: Change openstack-dev to openstack-discuss  https://review.openstack.org/62524712:53
*** dave-mccowan has joined #openstack-sdks13:09
*** bobh has quit IRC13:14
*** dave-mccowan has quit IRC13:15
*** bobh has joined #openstack-sdks13:20
*** bobh has quit IRC13:25
*** jpena|lunch is now known as jpena13:35
Shrewskmalloc: i think the intent was to have an invalidate function (i don't know the history of dogpile.cache here, but latest code seems to always have an invalidate func) and to eventually support per-resource caches13:52
Shrewskmalloc: i'm not familiar enough with dogpile to know how to properly get rid of our custom decorator and have things still work13:53
*** mriedem has joined #openstack-sdks13:56
Shrewskmalloc: i tried https://review.openstack.org/624767 but I can't remember what on earth i saw wrong with that to cause me to abandon it. i think it was not being able to support per-resource caches13:57
Shrewswhich we don't appear to be doing anyway13:57
Shrewsmy head was so confused trying to unravel this  :/13:57
*** bobh has joined #openstack-sdks14:26
*** dave-mccowan has joined #openstack-sdks14:32
*** bobh has quit IRC14:32
*** bobh has joined #openstack-sdks14:37
kmallocShrews: it's always had an invalidate function14:39
kmallocShrews: as long as we've been using it14:39
kmallocShrews: it does require passing the "Self" to the invalidate explicitly14:39
kmallocShrews: *shrug*. i think the quick fix is unwrap the extra layer of wrapping14:40
kmallocShrews: brie has surgery this morning, but this afternoon i should be able to spin up and chase down a fix that undoes the wrapping14:40
Shrewskmalloc: then i'm not sure what the purpose of https://review.openstack.org/171456 was then. i can't remember that far back14:41
kmallocyeah, maybe mordred knows14:41
Shrewskmalloc: k, thx for helping14:41
kmallocShrews: also i could see a order of operation issue with configuring the dogpile cache region14:41
Shrewsunpossible that there are more bugs14:42
kmallocwell i mean with unwrapping it :P14:42
kmallocsorry it's super early here and i've been up 3 times to walk the dog already14:42
* kmalloc needs a yard.14:42
Shrewsoh! that's what was wrong with my attempt to unwrap it14:42
kmalloc:)14:42
Shrewsi didn't have the region to make the wrapper call14:42
kmallocAHAH14:42
kmallocoslo_cache has a lot of mechanisms to make sure we have a region.14:43
*** dave-mccowan has quit IRC14:43
kmallocanyway, i can help chase this down after brie is back from the dr. and she's settled sleeping off the anesthesia14:44
Shrews++14:44
kmallocShrews: also.. "YAY YEARLY COMPLIANCE TRAINING"14:44
kmalloc:P14:45
*** markvoelker has quit IRC15:06
kmallocmordred: ^ cc (so you know i haven't forgotten it) :P15:37
kmallocShrews: i'll be back sometime post noon pacific15:38
kmallocShrews: so i'll get to work on SDK things unless someone else has hit it first.15:38
*** bobh has quit IRC16:18
*** e0ne has quit IRC16:24
*** bobh has joined #openstack-sdks16:26
*** tosky has quit IRC16:56
*** ttsiouts has quit IRC17:02
*** mriedem is now known as mriedem_lunch17:10
*** e0ne has joined #openstack-sdks17:13
*** tobiash has quit IRC17:29
*** markvoelker has joined #openstack-sdks17:31
*** markvoelker has quit IRC17:35
*** tobiash has joined #openstack-sdks17:40
*** e0ne has quit IRC17:41
*** e0ne has joined #openstack-sdks17:43
*** tobiash has quit IRC17:45
*** tobiash has joined #openstack-sdks17:55
*** tobiash has quit IRC18:05
*** jpena is now known as jpena|off18:06
*** tobiash has joined #openstack-sdks18:07
*** mriedem_lunch is now known as mriedem18:49
*** mriedem has quit IRC18:52
*** mriedem has joined #openstack-sdks18:56
kmallocmordred: ^ do you know the reasoning for the original extra layer wrap for cache_on_arguments ?18:57
kmallocmordred: it seems superfluous as it just re-implements invalidate, which was already added?18:58
kmallocBy dogpile*18:58
kmallocIt's the source of the issue and exception because dogpile now expects to own the wrapping, won't work with bound methods (as method.xxx = thing doesn't work on bound methods)18:59
kmallocNor would setattr18:59
*** e0ne has quit IRC19:13
*** ttsiouts has joined #openstack-sdks19:28
*** ttsiouts has quit IRC20:04
*** ttsiouts has joined #openstack-sdks20:04
*** bobh has quit IRC20:09
*** e0ne has joined #openstack-sdks20:11
*** e0ne has quit IRC20:11
*** ttsiouts has quit IRC20:33
*** ttsiouts has joined #openstack-sdks21:03
kmallocShrews: ok... so part of the issue with dogpile is the chicken-egg issue. we're dynamically building on instantiation of the mixin the dogpile region21:45
kmallocthat is... something we can do on import. we'll just need to run the configuration at __init__ time for the region(s)21:46
kmallocShrews: oh gah. the per-resource cache is ... the problem.21:48
kmallocmaybe we can do it with a metaclass?21:48
slaweqmordred: hi21:52
slaweqmordred: I just opened story https://storyboard.openstack.org/#!/story/2004618 for sdk and osprofiler21:53
slaweqmordred: please take a look, maybe You will have some quick idea how we can solve this issue - I don't know this parts too much TBH :)21:53
*** ttsiouts has quit IRC22:00
*** mriedem has quit IRC22:01
*** ttsiouts has joined #openstack-sdks22:07
kmallocShrews: unfortunately the whole "undecorate" for ease of debugging is also part of the issue.22:19
*** ttsiouts has quit IRC22:19
kmalloci'm trying to make this work with a metaclass, but since connection already has a meta, this is going to be weird... i need to look into the MRO and class traversal with super() in the cases of metaclasses.22:19
kmallocreally we should stop trying to be extra dynamic and just build cache regions that make sense22:20
kmallocwe can dynamically configure them at __init__ time with values, but the whole "only make some cache regions and decorate/undecorate" is way overly complex.22:21
kmallocmordred: ^ cc22:21
*** e0ne has joined #openstack-sdks22:23
kmallocaha, i think i found the simplest solution...22:25
*** slaweq has quit IRC22:33
*** e0ne has quit IRC22:40
openstackgerritMorgan Fainberg proposed openstack/openstacksdk master: Fix dogpile.cache 0.7.0 interaction  https://review.openstack.org/62537022:52
openstackgerritMorgan Fainberg proposed openstack/openstacksdk master: Fix dogpile.cache 0.7.0 interaction  https://review.openstack.org/62537022:55
*** lbragstad has quit IRC23:08
*** lbragstad has joined #openstack-sdks23:16
*** lbragstad has quit IRC23:22

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