/srv/irclogs.ubuntu.com/2020/02/05/#juju.txt

tlmhpidcock: if you checkout bootstrap_test.go #668, open to ideas for fixing this hacky function03:23
wallyworldthumper: will you have a chance to look at the modelcache race PR?03:26
wallyworldtlm: to avoid a bit of churn, can you move the NewK8sWatcherFunc (and strings version also) type definition back to the original location in the code?03:31
hpidcocktlm: it's a test, not too concerned. But essentially you *can* use go mock to mock that.... but it's probably not worth the effort tbh.03:32
tlmI might throw a panic in their if we step outside of bounds. Might make it a bit more clear if it gets added to hpidcock03:32
tlmtaking a look wallyworld03:33
wallyworldtlm: can't we look at the params passed to the func to see what watcher to return?03:33
thumperwallyworld: looking now03:34
tlmnot in this case. When we spoke I thought that was the case03:34
tlmI thought about just putting all the watchers in a slic inc and index, If index > panic03:35
hpidcocktlm: see Call and RecordCallWithMethodType in go mock... you can mock calls like this.. but I'm totally happy with the way you have it03:35
tlmi'll have a read03:35
wallyworldalso, don't panic - return an error03:36
wallyworldand let the test fail03:36
tlmwallyworld: happy to move those functions back but they make no sense where they where (defined miles away from where they are used).03:44
wallyworldtlm: i don't mind a lot - they were used near where they ariginally were also, approx line 12503:45
wallyworldand all the func types were together03:45
hpidcockwallyworld: do we have schema's for mongo documents anywhere, or is it just the state code that deals with the structure of docs?03:46
wallyworldhpidcock: all the monfo docs should be confined to state. depends on the age of the code, but we typically expose a struct which wraps the mongo doc03:48
wallyworldtlm: there's still a bunch of import issues03:52
wallyworldplus stuff what was previously private and now unnecessarily exported03:52
wallyworldvery close though03:53
hpidcockI guess we now use monfodb03:53
hpidcock:)03:53
wallyworldha de ha ha03:53
tlmfixing them now :)03:53
tlmmade them public as I couldn't see much reason to keep them private for a non const var, will update03:54
kelvinliuwallyworld: https://github.com/juju/juju/pull/11145 changed the config format, could u take a look again? ty03:54
wallyworldtlm: public functions etc by rights need comments so easier to keep struff private etc03:54
tlmokey doke03:55
wallyworldkelvinliu: will do, just let me get yet another doubles espresso first03:55
tlmgo tripple03:55
kelvinliugoing to grab some food n double shot espresso, come back later03:57
hpidcockI'm going to do the same... food, octo-shot of coffee04:01
wallyworldkelvinliu: let me know if my comments are unclear04:47
kelvinliuwallyworld: HO?04:57
wallyworldok04:57
nammn_demanadart: as we discussed before.  A smaller patch in the series of patches for remove-spaces https://github.com/juju/juju/pull/1118310:32
nammn_demanadart: while at it, did you have time to look at the email I sent you yesterday evening?10:34
ec0curious behaviour in 2.7.1, running kubernetes-e2e 'test' action: juju run-action kubernetes-e2e/0 test -> ERROR "action-6" is not a valid action tag10:50
ec0has anyone seen this before?10:50
manadartec0: Are the client, model and controller all 2.7.1?11:19
nammn_demanadart achilleasa stickupkid: this seem to cause some racy condition: https://github.com/juju/juju/blob/ff32067866004a0a04d5dba8e281dea7857f33ea/cmd/juju/status/status_internal_test.go#L6096 . It may update the model later the the call right after that to run the status output. How would you guys solve that?11:19
ec0manadart: yep all 2.7.111:50
ec0interesting, let me double check client11:51
ec0ahah, that'll be in manadart11:51
ec02.6.10 client11:51
manadartec0: Yes, I think it will be unable to parse the new tag form.11:52
achilleasaso, regarding my yest question about that odd test, I found what made it work: https://github.com/juju/juju/blob/develop/state/ports.go#L455. Looks like this was only enforced when appending a port range and not when creating the doc or when a port range gets closed11:52
achilleasaguess I will move it into the Build for the txn11:53
ec0that was it manadart, snap refresh juju --channel=stable got me 2.7.1, and the same action worked properly11:53
ec0thanks!11:53
manadartec0: Good to hear; no problem.11:53
nammn_demanadart:  I will remove the state removespaceOps for now as this will be eventually patched again. I started with the cmd, as this was mostly done and wanted to start with the easier and smaller part12:02
nammn_demanadart: pushed the changes12:03
nammn_deDo we have somewhere some functions to indiciate that the ID corresponds to a unit/application ect. This seems to be scattered everywhere but not on one common place to me12:47
nammn_demanadart: ah just realized, do you have 2 min to talk about the email?13:52
manadartnammn_de: I am back in the HO.13:53
achilleasajam: so I finally tracked down the issue with the broken test. The txn was indeed failing as expected. The new Build impl iterates the list of ports from the original port model (I removed the redundant copy bits). Turns out that attempt #1 caused my build code to return ErrNoOperations... why? because of *this* https://github.com/juju/juju/blob/develop/state/ports.go#L41714:15
achilleasaso the code behaved as if you tried to open an already opened range twice and obviously that's a noop14:16
achilleasaremoving that line makes all tests happy again14:17
hmlachilleasa:  i’m going to work on moving the spike-v2 from process-hook to dispatch.  tease out anything from the spec comments.14:31
achilleasahml: IIRC there was a mismatch with an envvar name but I think it got dropped from the new spec14:32
hmlachilleasa:  ack14:33
stickupkidmanadart, I can't replicate bug 186086515:12
mupBug #1860865: [2.7.1] Incorrect container architecture (i386, not amd64) used after a host upgrade to Focal - jujud fails to start <juju:Triaged> <juju 2.7:Triaged> <https://launchpad.net/bugs/1860865>15:12
stickupkidinstalled:       2.7.1                                (10357) 71MB classic15:14
stickupkidinstalled:        3.19                   (13162) 67MB -15:14
stickupkidjuju and lxd versions15:14
stickupkidthis is in a multipass vm15:14
manadartstickupkid: And you had a controller up before the upgrade?15:28
stickupkidyeah15:29
manadartstickupkid: Let me know when you are done with rick_h and free to HO.15:30
stickupkidmanadart, ping15:44
manadartstickupkid: Does the schema generation not handle embedding properly?16:08
manadartstickupkid: Any chance to jump back on HO quickly?16:09
achilleasarick_h: I have converted 5/8 uniter calls into model operations which I can now compose together. I think it would be best to get these into an initial PR and then do a second PR for the rest which is more complex (AddUnitStorage for example). wdyt?17:27
hmlachilleasa:  dispatch spike: https://pastebin.ubuntu.com/p/rTxVJt9sTP/17:28
achilleasahml: awesome!17:32
rick_hachilleasa:  sounds like a plan17:40

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