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

mupIssue operator#455 opened: JUJU_MODEL_NAME not initialized by harness <Created by stub42> <https://github.com/canonical/operator/issues/455>08:01
mupIssue operator#455 closed: JUJU_MODEL_NAME not initialized by harness <Created by stub42> <Closed by stub42> <https://github.com/canonical/operator/issues/455>08:20
Chipacai'm not half asleep, *you're* half asleep09:39
* bthomas wonders if Chipaca is talking in his sleep09:41
Chipacabthomas: too little sleep is indeed the problem09:43
bthomasIndeed. I recently read it can contribute to build of beta-amyloid plaques in the brain too.09:43
Chipacaooh! are they blue plaques?09:44
bthomasDon't know their color. But I have redshift installed on all my devices so when I try to read and fall asleep the blue light of devices does not disrupt my sleep cycle.09:45
Chipacamy wifi cuts out at 11pm, but i still didn't get to sleep until past 2 :-(09:46
bthomasOh no. I am surprised though since you have a healthier lifestyle than me, going for runs and all that.09:46
Chipacaheh, maybe i should've gone for a run yesterday09:47
Chipacai was still sore from running saturday though 🙂09:47
bthomasAlso latent stress can disrupt sleep. I learn't from a BBC documentary that sleep can be induced by a drop of body temperature. So having a hot shower before going to bed one gets sleep when body temperature drops.09:48
Chipacashowers wake me up though09:49
Chipacaanyway, it's not too bad09:49
Chipacaused to be i'd be weeks on end like this09:49
Chipacanow it's only once a week or two09:49
Chipacaso the running has helped09:50
bthomasThat sounds better.09:50
mupIssue operator#456 opened: Test harness relations missing Juju managed data <Created by stub42> <https://github.com/canonical/operator/issues/456>09:57
mupIssue operator#457 opened: Test harness relations cannot be initialized with data <Created by stub42> <https://github.com/canonical/operator/issues/457>10:04
mupIssue operator#458 opened: a charm with an empty actions.yaml trips up the framework <Created by chipaca> <https://github.com/canonical/operator/issues/458>12:01
bthomasIs there a specification or standard on what data *must/will* be provided for each event type. In particular relation_departed and relation_broken. I presume for the former it is at least unit name. Though the latter could be relation name it does not seem necessary.13:54
Chipacai don't think there is, hence my suggestion to look at what juju does IRL14:04
Chipacatests pass! woo. time for a break.14:08
bthomasNot related to my changes but I am seeing "KeyError: 'google'" at "operator/test/test_infra.py", line 86, in test_pep257 on my system. Could be a pydocstyle version issue but "requirements-dev.txt" does not specify which minimal version of pydocstyle is required. If I switch from "google" to "pep257" convention then the test runs but fails because it detects many violations of D200, D204, D205, D400, D401 and D413.14:30
* bthomas goes to make some coffee14:31
bthomasIf no one has any objection I would like to switch from google to PEP257 convention, add the violations to the current ignore list, create a issue to fix all PEP257 violations, and undertake to do so myself in a future PR.14:41
bthomasChipaca: ^14:42
bthomasyay! first remove relation test passed15:21
bthomasLooks like now one is objecting to ^ :-). Changes made. Will be part of my PR. Too late now :-).15:35
Chipacabthomas: -1 to switching docstyle conventions15:44
bthomasChipaca : hmm OK. I am not hung up on it. Any ideas why I am seen the error mentioned above.15:48
Chipacabthomas: no 🙂 what changed at your end?15:49
bthomasnothing changed. It is not related to my changes. I can stash them and still see the error.15:49
bthomasAlso I would +1 for PEP257 official standard. They violations are all silly and easy to fix but kind of enforce formatting consistency like linkbreaks and full stops etc. If you change you mind I can fix them after this PR.15:51
Chipacabthomas: I might be misunderstanding, but if I am not, you're suggesting changing from a convention from 2011 (google's) to one from 2001 (pep257)15:53
bthomasChipaca: that I am not sure about the date. I tried the switch from `.google` to `.pep257` because I was getting a KeyError `.google`. I think this may be because of pydocstyle version. I think requirements-dev needs a minimal version for pydocstyle.15:55
bthomasCan look into it once I get all my unit tests in place.15:55
bthomasPEP257 seems to be stricter than google though.15:56
Chipacabthomas: what version pydocstyle do you have?15:56
Chipacabthomas: i'm not certain about those dates either15:56
Chipacabthomas: but, we should discuss this when facu is around15:56
Chipacanot sneak it in while he's away :-D15:56
Chipacacertainly let's discuss it15:57
Chipacabut meanwhile let's unblock you15:57
bthomasOk, Got it. Will discuss with facu. My docstyle is version is 2.1.115:57
* bthomas promises to be good and not sneaky :-)15:57
Chipacabthomas: how?15:57
Chipacabthomas: i have 5.1.1 here; how do you have 2.1.1? :)15:57
bthomasChipaca: I am not unblocked15:57
bthomasopps meant blocked15:57
bthomasno big deal.15:58
bthomasSo it is indeed version, issue. I will update. I used ubuntu package.15:58
Chipacaahhh15:58
Chipacaalso, aaah15:58
bthomasdid not realize tit was that old15:58
bthomasI am on focal fosa 20.0415:58
Chipacai cannot comment on the age of tits15:58
bthomas:-)15:58
bthomasoops15:58
bthomasNSFW15:58
Chipacaprobably pretty old, as passerines are a very large family15:59
bthomashe he15:59
Chipacaand speciation takes time15:59
* bthomas rofl16:00
bthomasChipaca: Should we remove_relation_unit(self, relation_id: int, remote_unit_name: str) OR remove_relation_unit(self, relation_name: str, remote_unit_name: str) ?16:04
bthomasNote first argument and type16:04
bthomasIt is all a question of if we expect client to retain relation id through their workflow.16:06
bthomass/through/through out/16:06
* bthomas tries to do a quick tea before standup16:08
bthomasCurrent it is implemented as relation id for first argument16:26
Chipacabthomas: sorry was in a meeting16:38
Chipacaanswered in the standup now16:39
bthomasagreed. leaving as is for now.16:41
mupPR operator#459 opened: Treat empty actions.yaml as no actions.yaml <Created by chipaca> <https://github.com/canonical/operator/pull/459>16:59
Chipacabthomas: ^ if you have a mo'17:00
bthomashaving a look.17:02
bthomasdone17:05
Chipacabthomas: thanks 🙂17:06
Chipacathe meat of the change is two lines, the rest of the diff is tests 🙂17:06
Chipacamaybe i should've lead with that17:06
Chipacaanyway, thanks17:06
bthomassaw that.17:11
bthomasChipaca: forgot to mention in standup, for the remove relation tests I need to do harness.begin() because the removing implementation in harness uses self._charm to emit events. Can I presume that a client in a test (or not ?) will not try to remove a relation or unit without doing harness.begin(). I can ofcourse defend against _charm is None but will not be able to emit events, at least as implemented now.17:20
Chipacabthomas: emiting events should be guarded for _charm being None and events being disabled17:21
bthomasgot it thanks17:21
Chipacabthomas: as in the 'if self._charm is None or not self._hooks_enabled' guards you'll see17:21
bthomasindeed17:21
Chipacathat's what those are about 🙂17:22
mupPR operator#460 opened: Remove relation test <Created by balbirthomas> <https://github.com/canonical/operator/pull/460>18:10
bthomasChipaca: https://github.com/canonical/operator/pull/460 Just draft for now. Will sleep over it tonight, think it over again, self review tomorrow and create PR.18:11
mupPR #460: Remove relation test <Created by balbirthomas> <https://github.com/canonical/operator/pull/460>18:11
bthomasHowever if you have a need for a catharsis and can't find a punching bag, feel free to do get youre release :-)18:12
* bthomas is tempted to call it a day for now18:13
* bthomas EODs but is still around for a bit18:20

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