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

jammorning all04:48
Chipacamoin moin moin08:11
jamChipaca,  o/09:09
Chipacajam: how's things?09:15
jamChipaca, going pretty well. Have a PR on Juju up, and a couple other code reviews to get through.09:16
Chipacajam: what's the juju pr about?09:17
jamChipaca, fixing an issue with 'juju debug-code' that facu ran into last week09:17
jamnamely, if Juju fires an event that the charm doesn't implement a hook for, Juju would go into error09:18
Chipacaah, that one :)09:21
Chipacajam: I didn't realise there was a juju-side fix for that, i thought it was on us09:22
jamChipaca, no, the issue was that the handler for 'debug-code' was looking for the script to run, and 'executing it anyway' even though it didn't exist09:22
jamso the open question was whether we should fall back to a bash debugger.09:23
jamI think you and achilleas and facu all felt like you'd rather not be interrupted09:23
jamso I went with that route09:23
Chipaca:+1:09:26
Chipacaheh, this hexchat is missing my subs tweaks09:26
jamChipaca++09:27
jamhm, maybe that's only in canonical IRC09:28
jamChipaca, you both hung for me, I'll rejoind10:37
facubatistaMuy buenos días a todos!11:14
jammorning facubatista11:14
facubatistahola jam :)11:15
facubatistaChipaca, #221 ... can we settle for changing the 'will' for a 'should12:36
mup_PR #221: ops/main.py: support dispatch <Created by chipaca> <https://github.com/canonical/operator/pull/221>12:36
facubatista' in line 181?12:37
Chipacafacubatista: sure12:39
Chipacai'll do that as soon as i have a working dev environment again :-(12:40
Chipacaright now not even vi works12:40
Chipacahow hexchat is still up is a mystery :-)12:40
facubatistaChipaca, what happened?? wild weekend?12:40
Chipacafacubatista: my new dev machine had to go back to service (remember the 'sticking at 800MHz' thing?), so i'm on my old one, and it was on 16.0 so i'm slowly moving to 20.04 but it has less memory than it should to do that and be productive12:41
Chipaca(i moved off the old machine when the motherboard stopped liking having more than 4GB RAM)12:42
facubatistaprobably too late now, but shouldn't the move from 16 to 20 be *not* slowly? like, installing from scratch?12:42
Chipacaand lose all my everything? heck no12:42
Chipacaalso i'd miss out on messages like12:42
Chipaca  assert result == expected, "got: %r expected: %r" (result, expected)12:42
Chipacawhoops12:43
Chipaca/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:232: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?12:43
Chipaca  assert result == expected, "got: %r expected: %r" (result, expected)12:43
Chipaca^ that12:43
Chipacafacubatista: but more seriously, I _could_ do a fresh install and then a full backup, but that would take more of my time than just upgrading12:45
Chipacas/full backup/full backup restore/12:45
Chipacai'll probably do that at some point to drop unity and switch to lubuntu or lumina12:46
=== mup__ is now known as mup_
Chipacahuh, that's strange12:47
Chipacajust got a call from the local hospital thing, they're moving back to pre-covid stuff12:48
facubatistaI got an appointment of May 17 moved to next month, "undetermined when"12:48
Chipacafacubatista: the week (or 2?) before lockdown started the hospital called me to say they were postponing any non-essential surgery 'indefinitely', and now they're scheduling them back12:51
Chipacaso it's like they are no longer in a panic12:51
Chipacamakes sense to me; they're also closing down the big emergency hospital12:51
Chipacaof course now the knee that's acting up is the other one, so i shouldn't just go in for surgery before a consultant looks at things again...12:52
MarkMaglanao/12:52
facubatistahello MarkMaglana12:53
MarkMaglanahello facubatista!12:53
MarkMaglanajoining the fun in this channel with my fellow FE-in-rotation vgrevtsev :-)12:55
vgrevtsev\o12:55
ChipacaMarkMaglana, vgrevtsev: welcome!12:56
facubatistaChipaca, looks the curve is controlled, kind of https://aatishb.com/covidtrends/?location=United+Kingdom12:57
facubatistahello vgrevtsev12:57
MarkMaglanathanks, Chipaca! excited to help with the charming effort on top of the operator framework. :-)12:58
Chipacathings you don't want to read during an upgrade:  cryptsetup: ERROR: Couldn't resolve device12:59
facubatistaChipaca, are we doing the "docstrings styles" meeting or you prefer to postpone it for when you stop dancing around missing /dev nodes?13:02
Chipacafacubatista: trying to get there13:03
Chipacafirefox just crashed so there's that13:03
Chipacagive me 513:04
Chipacajam, facubatista, https://r.chipaca.com/docs/_build/html/123/ops.html#ops.testing.Harness.add_relation13:12
Chipacahttps://sphinxcontrib-napoleon.readthedocs.io/en/latest/13:20
jamChipaca, I think it is infectious13:20
Chipacafacubatista, jam, "more papist than the pope"13:55
Chipacafacubatista: WRT the import PR14:01
Chipacafacubatista: 1 sec phone14:01
Chipacaback14:01
Chipacafacubatista: WRT the import PR14:01
jamChipaca, facubatista : https://github.com/canonical/operator/pull/252/files14:01
mup_PR #252: ops/testing.py: document Harness in Google style <Created by jameinel> <https://github.com/canonical/operator/pull/252>14:01
Chipacafacubatista: we were talking with jam earlier about it14:01
jamtype annotations and google doc style for Harness14:01
mup_PR operator#252 opened: ops/testing.py: document Harness in Google style <Created by jameinel> <https://github.com/canonical/operator/pull/252>14:02
Chipacafacubatista: and were thinking it'd be nice to change things so that users of the fmk just needed to do14:02
Chipacafacubatista: from ops import CharmBase14:02
Chipacafacubatista: etc14:02
Chipacafacubatista: but only for the things that we thought were 'mainstream' public14:02
facubatistaChipaca, yes, we discussed it too14:03
facubatistaChipaca, we can do that! it's not a 5' branch, we need to discuss what we will be exposing, right? so my PR will be able to unblock people with current import errors14:03
Chipacafacubatista: right14:05
Chipacafacubatista: what I didn't want to do was have your branch close off that possibility :) but i don't think it does14:06
facubatistaright14:06
Chipacak14:06
Chipacafacubatista: wrt testing, why pull it in every time? is that needed to fix the issue at hand?14:07
Chipacafacubatista: i ask because this would be pulling it in even for in-production charms, which seems strangfe14:07
Chipacastrange also14:07
facubatistaChipaca, I included it because we may be importing testing to use the Harness even not in pure unittests.14:10
facubatistaBut I can totally remove it14:10
facubatistafrom the outside it will not change anything14:11
facubatistabah, less import time14:11
mup_PR operator#253 opened: Test harness no backend <Created by jameinel> <https://github.com/canonical/operator/pull/253>14:11
jamfacubatista, Chipaca : https://github.com/canonical/operator/pull/253/files fixes for #241 without the backend call tracing14:11
mup_PR #253: Test harness no backend <Created by jameinel> <https://github.com/canonical/operator/pull/253>14:11
mup_Issue #241: _TestingModelBackend incorrectly raises KeyError on missing relation <Created by gnuoy> <https://github.com/canonical/operator/issues/241>14:11
* jam eod 14:12
* facubatista -> errands14:12
Chipacafacubatista: I don't understand: yes people may be importing testing other than in unittests but why does that mean we need to import it from __init__?14:24
Chipacaafaict the only thing we _need_ to import are the two that confuse python wrt ordering14:25
Chipacaor even just the one, the one tha tneeds to come first14:25
facubatistaChipaca, mmm... yes, probably with just importing one, the import cycle will be solved, but wouldn't it "look" weird?14:41
Chipacafacubatista: it would, but that's solved by a comment explaining it :)14:41
Chipacafacubatista: and then when we do the work to pull in exactly what we want in 'ops', it goes away14:42
facubatistaChipaca, ack14:42
facubatistaChipaca, pushed change14:59
* Chipaca brb15:16
mup_Issue operator#254 opened: Improve docstrings to conform the Google Style <Created by facundobatista> <https://github.com/canonical/operator/issues/254>15:19
mup_Issue operator#255 opened: Incorporate type hinting in all public methods, and check them <Created by facundobatista> <https://github.com/canonical/operator/issues/255>15:21
facubatistaniemeyer, Chipaca, may I get a review on #246? thanks!15:29
mup_PR #246: Made breakpoint handling code to use already parsed JUJU_DEBUG_AT, and isolated the message showing logic <Created by facundobatista> <https://github.com/canonical/operator/pull/246>15:29
Chipacafacubatista: will do15:37
* facubatista -> lunch15:37
=== mup__ is now known as mup_
Chipacawaaaait15:58
Chipaca3.5 didn't have type hints??15:58
* Chipaca checks15:58
Chipacayes it did15:58
jamChipaca, so the question, is it that it doesn't like ): on a line by itself, or it doesn't like that __init__ doesn't have a -> return hint16:13
jamIt didn't make sense to me to add a return hint to __init__16:13
Chipacajam: __init__'s return is ignored AFAICT ¯\_(ツ)_/¯16:23
jamChipaca, so, not wrapping to the next line seems to pass on 3.516:23
* Chipaca would dance if he were a dancer16:24
jameg, don't do ',\n):' but just '):'16:24
jam<Chipaca> waaaait16:29
jamhttps://github.com/canonical/operator/pull/252/commits/7e988b3bdc74b7061d5da213ec6ce54a387f5bfa16:29
mup_PR #252: ops/testing.py: document Harness in Google style <Created by jameinel> <https://github.com/canonical/operator/pull/252>16:29
jamof course, cut and paste correctly :)16:29
Chipacajam: just one thing to note, that isn't important right now but might be later16:30
Chipacajam: None isn't a string, and isn't a typing.TextIO16:30
Chipacaso what you really mean is Optional[typing.Union[str, typing.TextIO]], or equivalently typing.Union[str, typing.TextIO, None]16:31
jamChipaca, type annotations seem like they become unwieldy16:31
Chipacayes16:31
jamChipaca, what syntax would you prefer?16:32
Chipacajam: that's what I tried to say, earlier :-/16:32
jamOptional seems to hint to the user16:32
Chipacai like what they do, but they're not exactly gratis16:32
ChipacaOTOH you can do MyThing = typing.Optional[....]16:32
jamfor things that aren't str or file they feel a lot better16:32
ChipacaOptional communicates intent better, yes. But it does evaluate to the Union one (so if you stringify it you'll see the Union)16:33
facubatistaChipaca, meeting?16:33
Chipacafacubatista: can we move our 1:1 to tomorrow?16:33
facubatistaChipaca, yes we can16:33
Chipacafacubatista: I still don't have audio and am a bit cross about that16:34
Chipacawould rather not do it on the phone again16:34
facubatistaChipaca, just send the invite :)16:34
facubatistaor, better, first fix the audio then send the invite :p16:34
Chipacaman, tomorrow is solid meetings16:35
facubatistaThu16:35
Chipacaeven got a conflict; i'm not going to make the standup16:35
jamChipaca, OptionalYAML incoming16:37
Chipacafacubatista: that's two PRs you could be mergin'16:41
facubatistayay16:42
mup_PR operator#221 closed: ops/main.py: support dispatch <Created by chipaca> <Merged by chipaca> <https://github.com/canonical/operator/pull/221>16:43
mup_PR operator#248 closed: Import internal modules in a controlled way. Fixes #247 <Created by facundobatista> <Merged by facundobatista> <https://github.com/canonical/operator/pull/248>16:43
mup_Issue operator#247 closed: Circular dependency error after pulling in latest version of framework <Created by gnuoy> <Closed by facundobatista> <https://github.com/canonical/operator/issues/247>16:44
mup_PR operator#246 closed: Made breakpoint handling code to use already parsed JUJU_DEBUG_AT, and isolated the message showing logic <Created by facundobatista> <Merged by facundobatista> <https://github.com/canonical/operator/pull/246>16:44
mup_PR operator#251 closed: Fix doctrings for add_relation_unit in ops.testing <Created by gnuoy> <Merged by chipaca> <https://github.com/canonical/operator/pull/251>16:44
Chipacafacubatista: can you give #253 a pass? it fixes a bug that people are having to work around right now16:47
mup_PR #253: Test harness no backend <Created by jameinel> <https://github.com/canonical/operator/pull/253>16:47
facubatistaChipaca, yes16:49
Chipacatimidity had sequestered /dev/snd/*!16:59
* Chipaca whacks it for its temerity17:00
Chipacaaaaand, I need to EOD. ttfn at least :-)17:00
* facubatista eods20:19
* Chipaca EODs21:30

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