/srv/irclogs.ubuntu.com/2020/01/10/#cloud-init.txt

Odd_Blokeblackboxsw: Ugh, this Actions PR stuff is a real PITA.14:14
meenaOdd_Bloke: so you should look at something more pleasant like… how to refactor cloudinit/net15:00
* meena has a call with a customer in minus two minutes, andhopefully iwon't fall asleep utnil it actually happens15:03
Odd_Blokemeena: Oh, I thought you'd got feedback from Ryan?15:04
Odd_BlokeI can still take a look, of course. :)15:04
meenaOdd_Bloke: he added > [] — and that's all i've seen15:06
Odd_BlokeWhat more could you want? ;)15:06
meenaOdd_Bloke: yeah, i dunno either, sometimes i just feel like i have too high expectations which i don't know how to communicate15:07
Odd_Blokemeena: So I'll take a look at that doc today.  And let's be explicit: what feedback are you seeking?15:16
Odd_Blokeblackboxsw: Just dropped a wall of text regarding next steps for CLA actions: https://github.com/canonical/cloud-init/pull/164#issuecomment-57307505715:16
rharpermeena: I hope all of the comments made it15:46
rharpermeena: in view mode, on the right, there is 💬 mark with a number to indicate comments, clicking that will show them on the right;  I added comments to sections: Background, Code duplication15:48
meenarharper: aahh. so I discovered @goner's comment, and you appear to have answered it17:32
rharpermeena: yes17:33
rharpermeena: it took me a little bit to realize I could comment without making changes to the content; that's why you saw my [] edit ...17:33
blackboxswOdd_Bloke: ok I responded to the wall of text and refactored the CLA signing PR to still get triggered on pull_request, and fail the status check with the CLA failure comment. If we still think we need to add a comment or label to PRs, we could leave in a top-level PR grooming action that'd walk open PRs and add labels.18:38
Odd_BlokeUgh, not even being able to comment _sucks_.18:40
Odd_BlokeReally feel like "you won't be able to use this for the most basic GitHub action" should be more prominent in their docs somewhere. ¬.¬18:41
meena😬19:18
meenarharper: i'll try to clarify re your comments.19:29
rharpermeena: great;  generally I think Odd_Bloke 's suggestion is the direction to go;  but I wanted to make sure we understand the end goal of reuse;  maybe "more portable to other BSDs" is  what you mean vs.  cross distro (which to me refers within the linux family variants)19:31
meenarharper: nah, pretty much all BSDs most of these things will work the same… except DHCP.19:39
meenas/BSDs/Linuxes/19:39
meenai hope i have clarified. it a bit now: i reckon we can remove the code duplication section?19:40
meenarharper: my issue with Odd_Bloke's suggestion is how that if we put the functions into the Distro classes, then, uh, how do i get a distro object in cloudinit/net?19:41
rharpermeena: re: code dupe; yes; though maybe it's worth a bug/PR to comment/change the naming so it's not as confusing ?19:43
meenarharper: they are private functions, so, yah19:44
meena rharper: if i started with *that* PR, that would be the ULTIMATE YAK SHAVE.19:45
Odd_Blokemeena: https://github.com/canonical/cloud-init/blob/master/cloudinit/distros/__init__.py#L85-L94 <-- this is where the Renderer is instantiated, so I think you could just pass `self` in there?19:47
Odd_Bloke(I'll defer to rharper on if that makes sense though.)19:47
rharperOdd_Bloke: for renderers, yes; for cloudinit.net ; which is the bulk of the porting work;  I don't think we need Distro there;  net module could likely get by with use of is_freebsd()  variants;19:48
rharperwith some import log, we likely could have 'from cloudinit import net'   determine linux vs. bsd and  pull in named methods19:50
meenarharper: https://github.com/canonical/cloud-init/pull/147/files19:50
rharpers/log/logic19:50
meenarharper: i did that … well, i started that a year ago, but i sucked at python / cloud-init. and so i, very naïvely, tried to translate all functions instead all public functions19:51
meenabut from the layout of cloudinit/net it's not clear what's public and what's not19:52
meenaperhaps a good first step, as i mentioned, it would be a good idea to start with marking the private functions first.19:53
rharpermeena: everything is public that's not named with leading _19:55
meenarharper: i know19:55
meenawe need to mark the things that aren't used anywhere other than cloudinit/net with a _19:56
meenai don't suck that bad at python!19:56
meenai literlly cannot remember what i was trying to do20:55
meena(that is usually a good place to quit, and sleep instead)21:20

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