<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cloud-init-git.git/cloudinit/analyze, branch main</title>
<subtitle>github.com: canonical/cloud-init.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/'/>
<entry>
<title>Remove dead code (#2038)</title>
<updated>2023-03-03T21:00:16+00:00</updated>
<author>
<name>Brett Holman</name>
<email>brett.holman@canonical.com</email>
</author>
<published>2023-03-03T21:00:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=b728b4e7cda8643c83d5c390411995f759cf97fa'/>
<id>b728b4e7cda8643c83d5c390411995f759cf97fa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>analyze: use init-local as start of boot record (#1767)</title>
<updated>2022-10-04T20:46:24+00:00</updated>
<author>
<name>Chris Patterson</name>
<email>cpatterson@microsoft.com</email>
</author>
<published>2022-10-04T20:46:24+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=87d98de2e5a312b065c4f861696eb81a098a419f'/>
<id>87d98de2e5a312b065c4f861696eb81a098a419f</id>
<content type='text'>
When using the Azure data source, frames are not guaranteed to be
unique to each boot.  Instead of splitting boot records when any event
is seen more than once, do so whenever the start of `init-local` stage
is found (and records have already been processed).

Signed-off-by: Chris Patterson &lt;cpatterson@microsoft.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using the Azure data source, frames are not guaranteed to be
unique to each boot.  Instead of splitting boot records when any event
is seen more than once, do so whenever the start of `init-local` stage
is found (and records have already been processed).

Signed-off-by: Chris Patterson &lt;cpatterson@microsoft.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>style: prefer absolute imports over relative imports</title>
<updated>2022-09-30T18:07:19+00:00</updated>
<author>
<name>Mina Galić</name>
<email>me+git@igalic.co</email>
</author>
<published>2022-09-30T18:07:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=dd7c312b9e00e9e09f12c58f27f2f1de36a3943c'/>
<id>dd7c312b9e00e9e09f12c58f27f2f1de36a3943c</id>
<content type='text'>
Sponsored by: FreeBSD Foundation</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sponsored by: FreeBSD Foundation</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor: Drop inheritance from object (#1728)</title>
<updated>2022-09-14T21:24:15+00:00</updated>
<author>
<name>Alberto Contreras</name>
<email>alberto.contreras@canonical.com</email>
</author>
<published>2022-09-14T21:24:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=8776a661a9189cbc0c4437562bcd3b6c27f81854'/>
<id>8776a661a9189cbc0c4437562bcd3b6c27f81854</id>
<content type='text'>
As we do not support python2 anymore, we can remove those 8 chars.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As we do not support python2 anymore, we can remove those 8 chars.</pre>
</div>
</content>
</entry>
<entry>
<title>Resource leak cleanup (#1556)</title>
<updated>2022-07-13T19:05:46+00:00</updated>
<author>
<name>Brett Holman</name>
<email>brett.holman@canonical.com</email>
</author>
<published>2022-07-13T19:05:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=9cbd94dd57112083856ead0e0ff724e9d1c1f714'/>
<id>9cbd94dd57112083856ead0e0ff724e9d1c1f714</id>
<content type='text'>
Add tox target for tracing for resource leaks, fix some leaks</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add tox target for tracing for resource leaks, fix some leaks</pre>
</div>
</content>
</entry>
<entry>
<title>Remove xenial references (#1472)</title>
<updated>2022-06-08T21:11:32+00:00</updated>
<author>
<name>Alberto Contreras</name>
<email>aciba90@gmail.com</email>
</author>
<published>2022-06-08T21:11:32+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=c94d9d028c85fb7562320dcc29da3e2e27a86b1e'/>
<id>c94d9d028c85fb7562320dcc29da3e2e27a86b1e</id>
<content type='text'>
- Remove references and dead code to Xenial, Eoan, Python &lt; 3.7
- cc_ubuntu_drivers: Use python3-debconf instead of shell script
- add integration test for ubuntu_drivers
- bump pycloudlib for OCI subnet/jammy fixes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Remove references and dead code to Xenial, Eoan, Python &lt; 3.7
- cc_ubuntu_drivers: Use python3-debconf instead of shell script
- add integration test for ubuntu_drivers
- bump pycloudlib for OCI subnet/jammy fixes</pre>
</div>
</content>
</entry>
<entry>
<title>upstart: drop vestigial support for upstart (#1421)</title>
<updated>2022-05-10T00:31:51+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-05-10T00:31:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=23a1575c6d02c3ffe3c64407de53f0cb7f128fcd'/>
<id>23a1575c6d02c3ffe3c64407de53f0cb7f128fcd</id>
<content type='text'>
upstream cloud-init not longer publishes to distribution
versions which support upstart.

Trusty has not been receiving cloud-init updates since
0.7.5 and Xenial stopped getting updates as version 21.1.

Even though Ubuntu Xenial's default init system is systemd
there was still an option for folks to launch amd maintain
images which relied on upstart. Now that Xenial no longer has
updates from upstream cloud-init we can drop all upstart
support.

Old Fedora and RHEL releases which use upstart are also not
receiving cloud-init updates from tip of main.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
upstream cloud-init not longer publishes to distribution
versions which support upstart.

Trusty has not been receiving cloud-init updates since
0.7.5 and Xenial stopped getting updates as version 21.1.

Even though Ubuntu Xenial's default init system is systemd
there was still an option for folks to launch amd maintain
images which relied on upstart. Now that Xenial no longer has
updates from upstream cloud-init we can drop all upstart
support.

Old Fedora and RHEL releases which use upstart are also not
receiving cloud-init updates from tip of main.</pre>
</div>
</content>
</entry>
<entry>
<title>Stop hardcoding systemctl location (#1278)</title>
<updated>2022-03-01T08:39:14+00:00</updated>
<author>
<name>Robert Schweikert</name>
<email>rjschwei@suse.com</email>
</author>
<published>2022-03-01T08:39:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=3642ed7c63fbd2fb67630b21efdb321c7e99b913'/>
<id>3642ed7c63fbd2fb67630b21efdb321c7e99b913</id>
<content type='text'>
Expect that "systemctl" is found in the PATH. Using the '/bin' prefix
is very distribution specific. A number of distributions are moving
all executables from '/' to '/usr'.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expect that "systemctl" is found in the PATH. Using the '/bin' prefix
is very distribution specific. A number of distributions are moving
all executables from '/' to '/usr'.</pre>
</div>
</content>
</entry>
<entry>
<title>Adopt Black and isort (SC-700) (#1157)</title>
<updated>2021-12-16T02:16:38+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2021-12-16T02:16:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf'/>
<id>bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf</id>
<content type='text'>
Applied Black and isort, fixed any linting issues, updated tox.ini
and CI.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Applied Black and isort, fixed any linting issues, updated tox.ini
and CI.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reorganize unit test locations under tests/unittests (#1126)</title>
<updated>2021-12-03T20:11:46+00:00</updated>
<author>
<name>Brett Holman</name>
<email>bholman.devel@gmail.com</email>
</author>
<published>2021-12-03T20:11:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cloud-init-git.git/commit/?id=039c40f9b3d88ee8158604bb18ca4bf2fb5d5e51'/>
<id>039c40f9b3d88ee8158604bb18ca4bf2fb5d5e51</id>
<content type='text'>
This attempts to standardize unit test file location under test/unittests/
such that any source file located at cloudinit/path/to/file.py may have a
corresponding unit test file at test/unittests/path/to/test_file.py.

Noteworthy Comments:
====================
Four different duplicate test files existed:
test_{gpg,util,cc_mounts,cc_resolv_conf}.py
Each of these duplicate file pairs has been merged together. This is a
break in git history for these files.

The test suite appears to have a dependency on test order. Changing test
order causes some tests to fail. This should be rectified, but for now
some tests have been modified in
tests/unittests/config/test_set_passwords.py.

A helper class name starts with "Test" which causes pytest to try
executing it as a test case, which then throws warnings "due to Class
having __init__()".  Silence by changing the name of the class.

# helpers.py is imported in many test files, import paths change
cloudinit/tests/helpers.py -&gt; tests/unittests/helpers.py

# Move directories:
cloudinit/distros/tests -&gt; tests/unittests/distros
cloudinit/cmd/devel/tests -&gt; tests/unittests/cmd/devel
cloudinit/cmd/tests -&gt; tests/unittests/cmd/
cloudinit/sources/helpers/tests -&gt; tests/unittests/sources/helpers
cloudinit/sources/tests -&gt; tests/unittests/sources
cloudinit/net/tests -&gt; tests/unittests/net
cloudinit/config/tests -&gt; tests/unittests/config
cloudinit/analyze/tests/ -&gt; tests/unittests/analyze/

# Standardize tests already in tests/unittests/
test_datasource -&gt; sources
test_distros -&gt; distros
test_vmware -&gt; sources/vmware
test_handler -&gt; config        # this contains cloudconfig module tests
test_runs -&gt; runs</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This attempts to standardize unit test file location under test/unittests/
such that any source file located at cloudinit/path/to/file.py may have a
corresponding unit test file at test/unittests/path/to/test_file.py.

Noteworthy Comments:
====================
Four different duplicate test files existed:
test_{gpg,util,cc_mounts,cc_resolv_conf}.py
Each of these duplicate file pairs has been merged together. This is a
break in git history for these files.

The test suite appears to have a dependency on test order. Changing test
order causes some tests to fail. This should be rectified, but for now
some tests have been modified in
tests/unittests/config/test_set_passwords.py.

A helper class name starts with "Test" which causes pytest to try
executing it as a test case, which then throws warnings "due to Class
having __init__()".  Silence by changing the name of the class.

# helpers.py is imported in many test files, import paths change
cloudinit/tests/helpers.py -&gt; tests/unittests/helpers.py

# Move directories:
cloudinit/distros/tests -&gt; tests/unittests/distros
cloudinit/cmd/devel/tests -&gt; tests/unittests/cmd/devel
cloudinit/cmd/tests -&gt; tests/unittests/cmd/
cloudinit/sources/helpers/tests -&gt; tests/unittests/sources/helpers
cloudinit/sources/tests -&gt; tests/unittests/sources
cloudinit/net/tests -&gt; tests/unittests/net
cloudinit/config/tests -&gt; tests/unittests/config
cloudinit/analyze/tests/ -&gt; tests/unittests/analyze/

# Standardize tests already in tests/unittests/
test_datasource -&gt; sources
test_distros -&gt; distros
test_vmware -&gt; sources/vmware
test_handler -&gt; config        # this contains cloudconfig module tests
test_runs -&gt; runs</pre>
</div>
</content>
</entry>
</feed>
