/srv/irclogs.ubuntu.com/2022/10/12/#cloud-init.txt

=== janitha77 is now known as janitha7
=== smoser1 is now known as smoser
meenafalcojr: i tried reverting rharper's changes to see if i can pin-point the failure, but I can barely get a sensible debugger session going on14:29
meenaI feel like our test suite is a bit too much for (i)pdb14:30
holmanmeena: not sure if this helps: my workflow is to drop `import pdb;pdb.set_trace()` into any test that I'm inspecting.14:54
meenaholman: done that… it doesn't stop there14:54
holmanit doesn't stop at the breakpoint? 14:54
meenaholman: just flies right past it… and when i add -s to the invocation, it just straight up becomes useless14:55
holmanit should stop when it hits the `pdb.set_trace()` line14:56
falcojrmeena: did you apply the diff I put on the PR? It doesn't just revert Ryan's change14:56
meenafalcojr: no, i was staring at the screen half day long14:57
* falcojr not sure what that means :P14:57
meenafalcojr: I was too busy staring at ipython/ipdb failures and trying to figure out how to get a useful debugging experience, that I didn't look at what github is doing15:01
falcojralso, cloud-init does mess with stdin, which can mess with debuggers, but it shouldn't affect most tests https://github.com/canonical/cloud-init/blob/main/cloudinit/cmd/main.py#L33015:08
meenafalcojr: I'll try your changes out in a bit…15:21
meenawhoohooo! I have an aarch64 FreeBSD 13.1 running in a local VM18:23
meenaoh, but I don't have a custom aarch64 cloud-init yet…18:26
meenafalcojr: doesn't work18:31
MingheHello folks, when I try to run "tox -e do_format" to test my changes, I am getting errors:  subprocess.CalledProcessError: Command '['git', 'describe', '--abbrev=8', '--match=[0-9]*']' returned non-zero exit status 128.18:31
MingheAnyone knows how to solve this?18:31
meenafalcojr: https://github.com/igalic/cloud-init/tree/better-fix/cc_ntp_bsd18:33
falcojrMinghe: Do you have git installed? Does git give you any other problems?18:35
Mingheyes I am on ubuntu and have git installed. Previously, I had an error about git branch --show-current and I upgraded git to version 2.38.0 and solved that one18:37
Minghenow I am getting error on '['git', 'describe', '--abbrev=8', '--match=[0-9]*']18:37
falcojrMinghe: what happens if you run that git command directly on the cli?18:38
meenafalcojr: i get a mix now: E               AssertionError: expected call not found.18:40
meenaE               Expected: subp(['systemctl', 'reload-or-restart', 'ntp'], capture=True)18:40
meenaE               Actual: not called.18:40
meenatests/unittests/config/test_cc_ntp.py:492: AssertionError18:40
falcojrmeena: Can you apply my patch directly? I still see some significant differences18:40
falcojrI.e., save the diff to a file an git apply <file>18:40
falcojrI just pushed it here too: https://github.com/TheRealFalcon/cloud-init/tree/pr_ntp18:41
meenathat's with rharper's one completely removed (git rebase -i HEAD~6 and remove his patch, and my isort patch)18:41
falcojrI'm mocking subp differently18:41
falcojrmock the function rather than the module18:42
MingheI am getting error: fatal: No names found, cannot describe anything if I run git describe18:45
meenafalcojr: oh, right, forgot about changing that in the assert18:46
meenafalcojr: okay, so your patch does, indeed work… why?18:48
meena(i mean, i could ask the same about rharper's, but yeah)18:48
falcojrmeena: Not entirely sure. I'm fuzzy on the details of packages and importing, but in general I don't mock entire modules 18:55
falcojrMinghe: Have you cloned the entire repo? A lot of cloud-init's tooling won't work with shallow checkouts that only give you HEAD. You need the full history18:56
MingheI see looks like my cloned fork does not have any tags or other branches18:58
meenahttps://im.eena.me/uploads/ac588cbec33ad836/image.png Co-authorship with rharper ended, now falcojr is my co-author.20:26
meenathat is to say: falcojr I've redacted rharper's change (completely) and pushed yours20:36
meenagonna try and test OpenBSD now… wish me luck…21:05
minimalsam_: have you ever used cloud-init on Gentoo when it has openrc rather than systemd in use?21:15
holmanminimal: I have a branch I need to revisit when I find time that has a couple of fixes for openrc/cloud-init21:33
meenaminimal: new set of changes is much simpler21:37
minimalholman: I have changes regarding openrc that I've already made locally for Alpine and was waiting for meena's stuff to be merged before submitted them, but was wondering about Gentoo as changes I've made to manage_server in alpine.py would likely also be applicable for Gentoo with OpenRC22:19
minimals/manage_server/manage_service/22:24

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