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

Chipacagoooooooooooooooooooooooooooooooooooooooooooooood  morning!08:16
jammorning Chipaca08:35
Chipacataking a page from pytest, would 'pip install ops-k8s' feel like a reasonable way to install the k8s ops component?09:45
jamChipaca, ops-k8s or component-k8s both feel good to me09:51
jamops-lib-k8s09:51
jamjust to brainstorm some things09:51
Chipacaops-lib-k8s sgtm :)09:56
jamChipaca, yeah, I think I like it the most so far09:59
jamand it fits the 'opslib' ops.lib stuff09:59
Chipacait's not ready yet but https://github.com/chipaca/ops-lib-k8s exists :)10:08
jamoooh, shiny10:21
jamChipaca, do we want people to typically put everything into __init__ or just import it into there?10:35
jamIt feels odd to have a package that only has an __init__.py10:35
Chipacajam: tbh in this case it could just be a k8s.py :)10:35
jamChipaca, indeed, but does our ops lib support that?10:35
Chipacai'm torn on which one is better10:35
jamAlso where is LIBNAME, etc10:35
Chipacathis doesn't have opslib support yet10:35
jamChipaca, I like that you can grow into having multiple files10:36
Chipacai'll get to that :)10:36
Chipacame too10:36
Chipacabut python doesn't care really, k8s.py and k8s/__init__.py are used in the same way10:36
Chipacaanyway, right now i'm getting it to work on 3.510:37
Chipacapython 3.5 doesn't support TLS newer than 1.210:38
jamChipaca, *sigh*. given Firefox now needs you to explicitly enable support for older TLS10:57
jamChipaca, out of curiousity, why "k8s_test.py" and not "test_k8s.py" I know we use the latter in ops, but was trying to figure out if there is a standard10:58
facubatista¡Muy buenos días a todos!10:58
jammorning facubatista10:59
facubatistahola jam11:00
Chipacajam: just because i renamed it11:00
Chipacai mean11:00
Chipacai did not rename it11:00
Chipaca:)11:00
Chipacajam: i suspect unittest wouldn't find the former, fwiw11:00
facubatistaChipaca, jam, When building replace current hooks that are links to the charm https://github.com/canonical/charmcraft/pull/8511:30
mupPR charmcraft#85: When building replace current hooks that are links to the charm <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/85>11:30
facubatistaChipaca, jam: The "list revisions from the Store" command - https://github.com/canonical/charmcraft/pull/8611:38
mupPR charmcraft#86: The "list revisions from the Store" command <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/86>11:38
facubatistaAttributeError: type object 'datetime.datetime' has no attribute 'fromisoformat'12:28
facubatistapy3.5 hates me12:28
Chipacafacubatista: with all its being12:52
facubatistaI need to stop this crazy dance of pathlib2 being used in py35, which is 99% the same than pathlib12:56
* facubatista will propose a branch12:56
Chipacafacubatista: standup?13:31
facubatistaChipaca, jam, in my charmcraft#86 branch, we keep "finding the information" from the context, which so far looks nice... if you're in the project, it finds the "charm name" from there... if not, you can use '--charm-name' and its fine16:47
mupPR charmcraft#86: The "list revisions from the Store" command <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/86>16:47
Chipacamhmm16:48
facubatistaas it's an "option", it would be "charmcraft revisions --name=myblog", not "charmcraft revisions myblog"16:48
facubatistaso far, maybe so good16:48
facubatistahowever, in the "release" command it gets ugly16:48
facubatistawe can still guess the charm name, however the channel and revision are mandatories16:49
facubatista"charmcraft release 5 stable" looks weird16:50
facubatista"charmcraft release 5 stable --name=myblog" looks ugly16:50
Chipacafacubatista: 1 sec16:50
Chipacacharmcraft release --channel=stable --release=5 --name=myblog16:50
facubatista"charmcraft release --name=myblog --revision=5 --channel=stable" looks like those are options, but not16:50
Chipacawith --channel defaulting to edge and --release defaulting to 'last'16:51
Chipacawouldn't that work?16:51
facubatistaChipaca, I don't know "last"16:51
Chipacayou can16:51
Chipacaby asking16:51
facubatistaChipaca, unless I go and do an extra hit to the store16:51
Chipacawhy wouldn't you?16:51
facubatistaChipaca, however, isn't this a little dangerous, like releasing stuff to somewhere without the user specifying where?16:51
Chipacathat's why i suggested 'edge' be the default for channel16:52
Chipacaand not 'stable' :)16:52
facubatistayeah, sure16:52
Chipacafacubatista: OTOH you could leave channel as an argument16:52
Chipacaand make just revision an option16:53
Chipacabut then16:53
facubatista"charmcraft release edge" makes much more sense16:53
Chipacaok :)16:53
facubatistaas "last" is the revision that you want to release in the 99% of the cases16:53
Chipacai was about to argue how it was a bit weird, but i'd be just arguing against myself :-P16:53
Chipacafacubatista: also as an aside, tab completion for --revision= would be very nice :-)16:54
Chipacaand for --name16:54
Chipacabut we can talk about that tomorrow (or next week (or...))16:55
facubatistaoh, I forgot about that16:55
facubatistaChipaca, also, channel can be multiple without getting the extra weirdness when it's not alone16:56
facubatistaI mean, "snapcraft myblog 4 edge" is ok, but "snapcraft myblog 4 edge beta 3.0/edge" is weird16:57
facubatista"charmcraft edge" is ok, "charmcraft edge beta 3.0/edge" is still ok16:57
facubatistasorry16:57
facubatistaI mean, "snapcraft release myblog 4 edge" is ok, but "snapcraft release myblog 4 edge beta 3.0/edge" is weird16:58
facubatista"charmcraft relase edge" is ok, "charmcraft release edge beta 3.0/edge" is still ok16:58
Chipacaok17:21
Chipacafacubatista: and --revision=4,5,6 also works17:21
Chipacaor --revision=4 --revision=517:21
Chipacai prefer the comma-separated one but thats just me :-)17:21
facubatistaChipaca, does it make sense to release multiple revisions at the same time?17:22
facubatistaI think it may be easy to confuse17:22
Chipacafacubatista: when doing multi-arch, yes17:22
facubatistacharmcraft release --revision=3 edge --revision=7 beta17:22
facubatistaChipaca, I think its way more normal to release one revision to multiple channels, than releasing several revisions at the same time17:23
Chipacafacubatista: again, when doing multi-arch, you release all the revisions that correspond to one point-in-time build at the same time, usually17:25
Chipacafacubatista: but it's not important tbh17:26
Chipacawe can nail it down later :)17:26
facubatistaok17:28
* facubatista eods and eows, will be back on Monday!20:38
Chipacafacubatista: have a good one!20:53
Chipacai'm off for today too20:53

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