<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hibbian/raspi-image-spec/debian, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.hibbian.org/hibbian/raspi-image-spec/atom?h=master</id>
<link rel='self' href='https://git.hibbian.org/hibbian/raspi-image-spec/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/'/>
<updated>2022-11-14T21:38:56Z</updated>
<entry>
<title>Fix shellcheck issue SC2086 (quotes)</title>
<updated>2022-11-14T21:38:56Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-12T02:45:29Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=422832740be2973ee1639cddb13d73b2cc863e1d'/>
<id>urn:sha1:422832740be2973ee1639cddb13d73b2cc863e1d</id>
<content type='text'>
SC2086: Double quote to prevent globbing and word splitting.

Also remove it from the exclude list in the CI config file.
</content>
</entry>
<entry>
<title>Fix shellcheck issue SC2154</title>
<updated>2022-11-14T21:38:47Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-12T02:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=9bb048809659f6e5537a59d0fbaa3edd14b4b206'/>
<id>urn:sha1:9bb048809659f6e5537a59d0fbaa3edd14b4b206</id>
<content type='text'>
SC2154: var is referenced but not assigned.

The 'rootmnt' variable is set in /usr/share/initramfs-tools/init and if
it's not available, that would be bad.
According to SC2154 you can fix that issue by using '${var:?}' so it
would fail if unset or empty.
So apply that and reference that SC item in the comments.

Also remove it from the exclude list in the CI config file.
</content>
</entry>
<entry>
<title>Simplify and fix 'build yamls' job</title>
<updated>2022-11-14T17:00:40Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-14T16:52:51Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=cf2eb655d9f1a2b8c0e7ccc46ee05cdf371d2bba'/>
<id>urn:sha1:cf2eb655d9f1a2b8c0e7ccc46ee05cdf371d2bba</id>
<content type='text'>
To build the yaml files, we only need python3 and make.
All the other/old packages that got installed are needed for building
actual images, so get rid of them.
This should also significantly speed up the job.

While checking the 'artifacts' I noticed that git operations didn't
produce the output as expected, both in top comment as at the end where
build information is written to /etc/raspi-image-id.
That was caused by git not working as it wasn't installed.
</content>
</entry>
<entry>
<title>ci: Add 'shellcheck' job to 'check input' stage</title>
<updated>2022-11-11T22:51:17Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-11T22:51:17Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=58a3ee3f6846951a3251b40b009181c995ef2611'/>
<id>urn:sha1:58a3ee3f6846951a3251b40b009181c995ef2611</id>
<content type='text'>
Check all the scripts, under 'rootfs/etc/initramfs-tools' (for now) with
'shellcheck'.
A couple of checks are excluded of which SC1090 and SC1091 will remain.
But SC2086 and especially SC2154 should be fixed! And when they are
fixed in the current code, those should be enabled again for checking.

Also rename 'check yamls' job to 'yamllint', so that's directly clear
which tool is being used.
</content>
</entry>
<entry>
<title>ci: Add 'check yamls' job in (new) 'check input' stage</title>
<updated>2022-11-11T18:52:12Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-11T18:05:57Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=76fb71f4b16e540b052d04d31085613f1c3acbc4'/>
<id>urn:sha1:76fb71f4b16e540b052d04d31085613f1c3acbc4</id>
<content type='text'>
Add a new stage 'check input' to our CI configuration to check whether
our input files contain errors.
The first check is for the YAML files whether they contain errors or
warnings according to 'yamllint'.

Add 'yamllint' config file to not consider too long lines as errors.
And fix the errors/warnings in 'salsa-ci.yml' itself.

Apparently job names can contain space, so rename 'build-yamls' to
'build yamls'.
</content>
</entry>
<entry>
<title>Upgrade pkgs separately before installing new ones</title>
<updated>2022-11-05T11:48:22Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-05T11:23:03Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=b5ad7ef916f27bd9c8407660b87b4f422afa04d9'/>
<id>urn:sha1:b5ad7ef916f27bd9c8407660b87b4f422afa04d9</id>
<content type='text'>
Upgrade the existing packages before installing new ones.
It's better to have a fully up-to-date system to work on and it could
also fix/prevent an installation issue if a package depends on an
existing, but un-upgraded one. With this change we get
"and 0 not upgraded", which was not always the case before.

Also add a '/' after the 'build' directory to make it clear it is a dir.
</content>
</entry>
<entry>
<title>Use 'eatmydata' to speed up package install</title>
<updated>2022-11-04T18:10:35Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-04T18:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=f11c05bf28349d22c9edfd1a3b2ec3aa9e715508'/>
<id>urn:sha1:f11c05bf28349d22c9edfd1a3b2ec3aa9e715508</id>
<content type='text'>
The 'eatmydata' program is "designed to disable fsync and friends" and
can speed up tasks at the risk of potential data loss.
The speed up is welcome and the data loss not important as it would only
make the pipeline fail (most likely), but you can run it again.
</content>
</entry>
<entry>
<title>Remove 'only' keyword statements</title>
<updated>2022-11-04T15:07:58Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-04T14:39:32Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=87fca3ceedccfde5c89bfe72f85c5c7f7e9da48b'/>
<id>urn:sha1:87fca3ceedccfde5c89bfe72f85c5c7f7e9da48b</id>
<content type='text'>
It's unclear (to me) what they filter out. And why.

https://salsa.debian.org/help/ci/yaml/index#only-except says:
"NOTE: only and except are not being actively developed. rules is
the preferred keyword to control when to add jobs to pipelines."

So if filtering is desired, it should be added using the 'rules' keyword
and the reasoning behind it should be clarified in comments and/or
commit messages.
</content>
</entry>
<entry>
<title>Don't retry on failure</title>
<updated>2022-11-04T12:52:34Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-04T12:28:57Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=02567af307f662cb06c903066466188682d9ff3c'/>
<id>urn:sha1:02567af307f662cb06c903066466188682d9ff3c</id>
<content type='text'>
As we're just starting out using CI, it is especially important to be
aware of any failure, so that we can fix it.

Such a workaround can be added later in case it is deemed necessary.
</content>
</entry>
<entry>
<title>Rename 'build' job to 'build-yamls'</title>
<updated>2022-11-04T12:52:34Z</updated>
<author>
<name>Diederik de Haas</name>
<email>didi.debian@cknow.org</email>
</author>
<published>2022-11-03T22:39:30Z</published>
<link rel='alternate' type='text/html' href='https://git.hibbian.org/hibbian/raspi-image-spec/commit/?id=8b06d1492563196e66c10e0d706550f0f1802feb'/>
<id>urn:sha1:8b06d1492563196e66c10e0d706550f0f1802feb</id>
<content type='text'>
This is more describtive and also to distinguish from the build stage.
</content>
</entry>
</feed>
