/srv/irclogs.ubuntu.com/2020/07/14/#smooth-operator.txt

* Chipaca goes for coffee08:32
Chipacaactually, let's make that a whole breakfast08:32
jammorning Chipaca, enjoy your breakfast08:58
facubatista¡Muy buenos días a todos!11:04
jammorning facubatista11:16
facubatistahola jam11:17
* Chipaca harrumphs some more11:49
facubatistajam, please remember my https://github.com/canonical/charmcraft/pull/7613:16
mupPR charmcraft#76: Store upload <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/76>13:16
facubatistacrodriguez, hola! please let's work on your charm when you have some minutes, thanks!13:16
jamfacubatista, indeed, I have it open, just ran into some issues so didn't get a review completed13:16
facubatistajam, no rush, thanks!13:17
crodriguezmorning facubatista ! I sent you an invite for a meeting later today. I'm in the field/sales sprint all day before that13:17
facubatistacrodriguez, ah, oh, wonderful, thanks!13:18
crodriguez:)13:18
crodriguezfacubatista: did you lose connection?18:45
* facubatista totally lost internet for ~30s18:50
crodriguezhaha19:11
crodriguezis charmcraft build taking templates into consideration? I added a template folder under my charm root, but it is not copied over when I deploy the charm19:12
crodriguezalso, it creates only the 3 mandatory hook names. It is not creating config-changed, etc.19:17
facubatistacrodriguez, we're not including "templates", we need to fix that19:24
crodriguezyeah, I opened https://github.com/canonical/charmcraft/issues/8019:24
facubatistaI wonder if we should provide a "--include" option to let devs include whatever they want19:24
crodriguezI wonder why it wouldn't just include every folder you include in your charm, maybe only excluding what is excluded by .gitignore19:25
facubatista(which could be annotated in the charmcraft.yaml file, so no need to specify it always)19:25
facubatistacrodriguez, but there's stuff one would want to avoid: the tests, for example, which may have fixture files that may make the zip large19:26
crodriguezah we can configure the build with a charmcraft.yaml file ? interesting19:26
facubatistacrodriguez, we WILL be able to :)19:26
facubatistasorry, we're yeat too young :p19:26
crodriguezhaha until today I just deployed directly the charm without building and it was working fine. I guess charm build is necessary for dependency packages though19:27
facubatistacrodriguez, regarding the hook names, it's included what's needed for the pre-dispatch jujus (and the operator framework will take care of the rest)19:27
crodriguezwell if config-changed fails, I run debug-hooks, go into my unit, and want to re-run the hook. But the hook doesn't exist so it is really confusing19:28
facubatistammm... maybe the operator framework is not creating them because all works through the dispatch mechanism? (not really using hooks)19:29
facubatistacrodriguez, which juju do you have?19:29
* facubatista brb19:29
crodriguez2.8.1-bionic-amd6419:30
facubatistaright, it's using dispatch19:37
facubatistajam, Chipaca, how do you trigger a "hook" using dispatch?19:37
facubatistacrodriguez, I *think* it's by doing: JUJU_DISPATCH_PATH=hooks/config-changed ./dispatch19:38
crodriguezwhy is it not just existing in the /hooks folder like for all the reactive charms? this changes completely the troubleshooting experience20:20
crodriguezre:templates , could we just add templates in CHARM_OPTIONAL ? https://github.com/canonical/charmcraft/blob/master/charmcraft/commands/build.py#L38 Does this handle folders or only files?20:22
facubatistacrodriguez, yes, if you add templates in CHARM_OPTIONAL it will work20:31
facubatistathe question is what we *really* need... "templates" for sure, but what else?20:32
crodriguezhum that could be decided by reviewing existing charms20:33
crodriguezlike reactive charms20:34
facubatistacrodriguez, FWIW, we have https://github.com/canonical/charmcraft/issues/3920:34
crodriguezok yeah, my bug might be a duplicate then. It would be nice if a decision was taken soon though, because this pretty much prevents me from using charmcraft build rn. I might just do a PR for templates only until that broader question is resolved20:38
facubatistaChipaca, let's talk about this ↑ in tomorrow's standup, please :)20:47
* facubatista eods21:06

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