/srv/irclogs.ubuntu.com/2024/01/16/#cloud-init.txt

minimalproblems with the CI? I'm seeing several python versions' unit tests failing for a new PR I just opened18:26
holmanbminimal: FS_LABELS and ISO9660_DEVS look like intermediary values that get used to detect which cloud is used18:43
holmanbagreed it is duplication of work to get that in both ds-identify and in cloud-init python code18:43
holmanbdefinitely an opportunity for improvement - though I think we'd want to think hard about how best to share data with cloud-init's python code before doing it18:45
holmanbminimal: tests pass locally with your PR, I'll rerun the github actions jobs18:45
minimalholmanb: yeah I'm not really seeing many benefits for using ds-identify vs just setting datasource_list to a small subset18:45
minimalcan't see WHY the CI is failing as the logs are so huge my laptop's fan is going like a hurricane18:46
holmanbminimal: agreed - if you don't mind modifying your image then setting datasource_list then there isn't much benefit as it is now18:46
holmanbminimal: the real benefit imo is to not have to modify your image in the first place18:47
minimalI'm not modifying it, I'm setting datasource_list as part of *creating* the disk image ;-)18:47
minimalanyway I'm still testing ds-identify here18:48
minimalI can see it being useful for "generic" disk images but then not sure that would work well with my thought of packaging each DS as a separate subpackage18:48
holmanbAgreed - if you're creating a disk image for a known datasource, there isn't much benefit18:50
holmanbbut also if you have a single datasource in your datasource list, ds-identify trusts the image builder and skips the checks18:51
minimalbasically I'm currently wondering if I can create Alpine subpackages like "cloud-init-ds-aws", "cloud-init-ds-azure" etc with the relevant sources code moved out from the main package18:52
minimaland then have cloud-init having a dep on "cloud-init-ds-all" to pull them all in but it could be overriden by doing "apk add cloud-init cloud-init-ds-aws"18:53
holmanbahhh, I see18:53
holmanbmy guess is that it would be really hard to untangle tests in the subpackages18:55
holmanbbut if you don't care about that it probably wouldn't be too hard18:55
holmanbbut still a lot of work18:55
holmanbI guess that would get you a really "minimal" build ;)18:55
minimalwell there's approx 1 MB of DS sources + whatever size the pyc files are too, so being able to only install a single DS would shrink things a bit. Having separate DS packages would also allow me to set per-DS deps which I can't do currently18:58
holmanbminimal: if you do that you might want a way to have ds-identify only run if cloud-init-ds-all is installed (or if more than one of the -{aws,azure,etc} subpackages are installed)18:58
minimalyeah I'm still thinking things through18:59
minimalanyway I'm still going to submit my ds-identify changes anyway18:59
minimaljust need to get a couple of other PRs out to the way first19:00
holmanbjust re-kicked the CI for you19:00
minimalthanks19:01
minimalit's a fairly simple PR so was surprised when it had CI errors19:01
minimalnope, it's failing again19:03
holmanbah, this might be an updated dependency issue actually19:05
holmanbI just ran again against your branch with tox -r -e py3 and I see failures19:06
holmanbyeah jsonschema just pushed release 4.21.019:08
holmanband the failing tests are schema related19:08
holmanbI'll try to get a fix in shortly and ping you minimal19:08
minimalah right. I didn't check tox before pushing as the change was minor lol19:09
minimalthanks19:09
holmanbno worries19:40
holmanbI didn't see it the first time I checked your PR either because I normally don't run unittests with -r (because it takes longer and dependency changes are infrequent)19:41
holmanbminimal: just merged the fix - you'll need to rebase on the tip of main and push again to get tests to run with the pinned dependency19:45
minimalholmanb: ok, let me do that20:06
holmanb2024 cloud-init release schedule is posted here: https://discourse.ubuntu.com/t/2024-cloud-init-release-schedule/4167922:27
minimalok, so more 1 month to get several more PRs raised and merged ;-)23:36
meenaI need to get the run vs var/run stuff fixed until then23:42

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