/srv/irclogs.ubuntu.com/2019/10/30/#juju.txt

wallyworldanastasiamac: got tme for a HO?02:15
wallyworldin standup02:16
babbageclunksuper easy review anyone? https://github.com/juju/juju/pull/1082703:10
wallyworldbabbageclunk: lgtm, i thought we had found all those!03:19
timClickswhat is the significance of the "development" model default?03:19
babbageclunkI think they might have been new03:19
wallyworldtimClicks: it's a big legacy, one thig it does is force the use of non release simplestreams03:20
wallyworld*bit03:21
timClicksok03:21
wallyworldwe should use agent-stream for that now03:21
wallyworldor image-stream03:21
wallyworldi wish we could kill it03:22
wallyworldjuju 303:22
timClicksquick! mark it deprecated03:23
timClicksare there any inheritance rules for model defaults? e.g. can juju-ftp-proxy and/or apt-ftp-proxy inherit their values automatically from ftp-proxy?03:25
_thumper_timClicks: not for proxies03:36
_thumper_proxies are special03:36
_thumper_we should probably talk about them03:36
_thumper_as they should have good docs03:36
=== _thumper_ is now known as thumper
timClicksok, that would be good to know03:37
timClicksnew post should be up shortly03:37
* thumper heading to pickup family03:38
timClicksFantastic Settings and Where to Find Them https://discourse.jujucharms.com/t/fantastic-settings-and-where-to-find-them/228404:05
timClicksif anyone has a few minutes, I would appreciate a review (anything from typos to egregious errors)04:06
thumpersimple pr to update worker dependency for better engine report: https://github.com/juju/juju/pull/1082804:26
wallyworldtimClicks: how did you want feedback? in a google doc you can make comments and add suggestions etc. not quite so easy in a discourse pos04:26
wallyworldt04:26
babbageclunkthumper: the resource log is sometimes very useful04:27
thumperwallyworld: i'd suggest not a google doc04:27
thumperbabbageclunk: like when?04:27
wallyworldthumper: why? they are built for collaborative editing04:27
wallyworlddiscourse isn't04:28
thumperwallyworld: because it fragments where things are04:28
babbageclunkWhen trying to understand what resources a worker has got? I feel like this is a trick question04:28
wallyworldthumper: the idea was to get the copy correct in a collaborative way and ten post to discourse04:28
thumperbabbageclunk: I've not really found that useful from the report point of view04:28
wallyworldit's only an interimt step04:28
babbageclunkthumper: I've definitely used it in the past. For example there are some workers that behave differently depending on which dependencies are present04:29
wallyworldwhich supports te collaboration workflow we need until the copy is polished04:29
babbageclunkyou're right that it's mostly not useful04:30
thumperbabbageclunk: I've found that it is almost always noise when I'm looking at the engine report04:30
babbageclunkbut occasionally it is - it seems a pity to ditch it04:30
thumperI guess I've never even hit that occasionally bit04:30
babbageclunkoh sure, it's mostly not what one is looking for04:30
wallyworldposting content that needs feedback stright to discourse is like landing code without a code review04:30
wallyworldIMO04:31
wallyworldespecially if multiple people need to have input04:31
wallyworldand collaboaraively tweak wording etc04:31
thumperwallyworld: yeah, that is why timClicks and I tried out the discourse branch on the docs repo04:31
thumperand used github PR for iteration04:31
wallyworldthat's better, but google doc is easier for this tak04:32
wallyworldas people can ask qustions, make sidebars etc04:32
wallyworldedit content directly etc etc04:32
wallyworldsee the changes insitu plus other comments/clarifications separately04:33
anastasiamacwallyworld: just saw ur msg :( still want to meet?04:39
wallyworldanastasiamac: sure, let's jump in standup04:40
anastasiamack04:40
timClickswallyworld: just add a comment in discourse; otherwise edit directly for anything major05:09
wallyworldtimClicks: i can do that, but 1) there might be significant things we prefer to collaborat eon, 2) making comments is divorced from the content they pertain to so hard to reconcile05:10
wallyworldyou need to keep scrolling up and down05:10
wallyworldinstead of highlighting and comment05:11
wallyworldand i might want to say "needs fleshing out, look here ..." and not do the writing myself05:11
wallyworldetc05:11
wallyworldhpidcock: you going ok? not blocked?05:22
hpidcockwallyworld: not blocked, I just keep finding issues05:22
hpidcockI feel like Alice going down the rabbit hole05:22
wallyworlddid you need som ehelp?05:24
hpidcocknah, just time05:25
wallyworldhpidcock: feel free to put up a wip if you want a sanity check05:29
hpidcockwallyworld: I think I'm at the point where I've handled all the weird cases for now. We need to come back to this at some point, but for now I think we should land it.08:16
wallyworldok, i'll look08:27
nammn_demorning manadart: how would you add a test that accesses a local concept like "activeBranch" in the status output here: https://github.com/juju/juju/blob/3ef20221f2bd332ac5cfd53d3ff6bc6759b7f2bc/cmd/juju/status/status_internal_test.go which currently only mocks the state?09:23
achilleasamanadart: Is this what you had in mind? https://github.com/juju/juju/pull/10805/commits/69de6b3e6ad72a130001bd87bb762c1ef378569109:30
stickupkidnammn_de, integration test #cough#09:33
manadartachilleasa: Yeah, but I would make the subnetURLs a set, an break the collection out into its own method.09:33
nammn_destickupkid: Ha, good point. Let me add both if possible09:34
achilleasamanadart: yeah... didn't think of dups in URLs... caffeine has not kicked in yet :D09:34
achilleasamanadart: looks better now: https://github.com/juju/juju/pull/10805/commits/fb515c68a35f8e177a635e609eeb879a6fbde91c09:42
manadartachilleasa: Yep.09:45
manadartachilleasa: We will need to talk about how to move forward with O7k.09:45
achilleasaO7k? Got time to chat now?09:46
manadartachilleasa: Sorry missed that. Openstack. HO?10:12
achilleasamanadart: omw10:12
=== bugg is now known as magicaltrout
manadartnammn_de: JujuConnSuite emulates the local file-store with an in-memory store, so you might be able to do something like this: https://paste.ubuntu.com/p/jxYDPvHQcS/10:58
nammn_demanadart: great, thanks!10:59
manadartnammn_de: BTW, can you look at https://github.com/juju/juju/pull/10830 ?10:59
nammn_demanadart: can do11:00
nammn_dehml rick_h: added acceptancetests (stickupkid) and unit tests https://github.com/juju/juju/pull/1079611:40
nammn_deacceptancetest ^ https://github.com/juju/juju/blob/90905e71dd4fecd3eaeeaae64e602fc80ef2fccd/tests/suites/cli/active_branch.sh11:41
nammn_demanadart: looking at your pr now. Why  did we warrant this change again?11:45
stickupkidthis kills me https://paste.ubuntu.com/p/MfRxxsqK8W/11:45
manadartnammn_de: Requirement changed. There is no longer a configuration default for the model's default space.11:46
stickupkidwe actively break piping - 2>/dev/null is the fix :(11:47
nammn_demanadart: got it11:47
stickupkidnammn_de, do we not highlight the active branche in status?11:47
nammn_dewe should, with a *11:48
stickupkidhttps://paste.ubuntu.com/p/Gkn6Bx6qFG/11:48
nammn_deexcept it being master11:48
stickupkidnammn_de, json or yaml?11:48
nammn_destickupkid: should both. But we are talking about my pr, right?>11:48
stickupkidnammn_de, what ever is develop11:48
nammn_destickupkid: not in develop yet11:49
stickupkidnammn_de, ah11:49
nammn_destickupkid: https://github.com/juju/juju/pull/1079611:49
nammn_dethere is it :D11:49
nammn_de*it is11:49
stickupkidnammn_de, NICE11:50
stickupkidthat's what i want11:50
stickupkidnammn_de, going to add some comments11:51
nammn_destickupkid: sure feel free, you can take a look at the acceptancetest(!)/unit test11:51
hmlnammn_de: looking at the unit tests11:53
hmlnammn_de: i don’t think we’ve gotten to mocks in the status output code yet.  :-(   looks like you found away without.11:55
nammn_demanadart: approved, one small nit12:00
nammn_dehml: Actually I was struggling to updatethemodel, luckily manadart gave me some pointers.12:01
nammn_dehml: feel free to comment if you think the assert of the unit test is too small12:01
hmlnammn_de: added to the pr.  typically we’d test 1 thing in a unit test, so the status output test would be broken into 2.  if the first 1 fails, we don’t run the 2nd if they are combined, which may pass on its own.12:06
nammn_dehml: sure will update12:19
nammn_destickupkid: where did the idle_condition come from?12:19
stickupkidnammn_de, https://github.com/juju/juju/commit/e14e76eefc3d8fee8e785099f2717e63732a4b8312:20
nammn_destickupkid: we should document the place where we can use/find the common utilities function. Some kind of doc which gets updates or just redirects to juju.sh. I find myself suprised that things are either there or keep getting updates. Which is great though12:24
stickupkidwe have an issue trying to upgrade controller 2.6.9 to 2.6.10, I'm just investigating it - jenkins release brought it up12:27
rick_hstickupkid:  ruh roh, ok12:28
nammn_destickupkid hml: thanks for your review, I updated both tests12:36
nammn_decoming back hml stickupkid want to take a look at the tests again? https://github.com/juju/juju/pull/10796 rick_h is fine with the qa output itself13:38
hmlnammn_de: will do shortly13:41
stickupkidnammn_de, i've approved the integration tests :D13:41
hmlnammn_de: approved the other pieces.  ty for the change13:52
nammn_dethanks!14:22
nammn_demanadart im starting to look deeper now into  metrics. With metrics we mean offering an scraping endpoint for prometheus, right?14:24
nammn_deWhere we give prometheus data for each scrape action?14:24
manadartnammn_de: Yes, but this is all set up for the cache. We just need the guages. See core/cache/metrics.go and how those are used.14:34
hmlmanadart:  just a nit on 10831, and approved.14:42
manadarthml: Thanks.14:43
hmlmanadart:  do you have some time to chat on 10825?14:44
manadarthml: I am in daily.14:46
nammn_demanadart: which namespaces should those gauges go?15:20
nammn_deand this was for charm config cache hits/misses, right?15:22
nammn_degeneral: each watcher is a goroutine /agent(?) which watches something for changes and does something on changes? E.g. a watcher can be responsible for updating a cache on db changes (?(15:26
nammn_de*)15:26
stickupkidnammn_de, the worker/modelcache updates the core/cache15:36
stickupkidnammn_de, i believe it's the all watcher that outputs deltas which the modelcache consumes and puts into the core/cache15:37
nammn_destickupkid: thanks! How does that play with the watchers?15:37
stickupkidnammn_de, in what regards?15:37
nammn_deor more a general thing. A watcher is some kind of goroutine which watches something changes in the mongodb (e.g. charmconfigwatcher watches changes on specific collections of mongo db?) and e.g. updates a local cache15:40
nammn_de?15:40
stickupkidyeah, not far off. So a watcher at it's core has a tomb. A tomb is a managed gorountine, that wraps a gorountine up so that you can kill it or track it via wait15:43
stickupkidthe watcher then just instantiates a tomb (well normally someone inits a watcher and the tomb) and it just loops collecting changes and dispatches them out when it's ready15:44
stickupkidthink of a watcher as a self contained event dispatcher15:44
stickupkideach watcher can then look at db collections and filter on changes.15:45
stickupkidthe point of the model cache hit/miss is to see if some piece of code is requesting a config, but it's not in the cache15:46
nammn_destickupkid: makes sense! A watcher is usually there to watch db collection changes, right?15:46
stickupkidcorrect15:46
nammn_destickupkid: now things makes more sense slowely. Need to let it sink15:49
nammn_deall of that different naming and each having its purpose. Need to map things internally for me15:49
stickupkidit's worth reading tomb implementation, then you can build on what a worker and a watcher adds to the party15:50
stickupkidthen a fortress, etc15:51
nammn_destickupkid: great will do15:55
nammn_destickupkid: its always so hard to find where to start with the reading15:56
nammn_destickupkid manadart something along this line? https://github.com/juju/juju/pull/10833/files18:10

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