Commit Graph

156 Commits

Author SHA1 Message Date
Itxaka
fbb64f2a82
Run tests in parallel and output github formats on workflow (#543)
* Run tests in parallel and output github formats on workflow

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix broken parallel tests

We were using a fixed file for the tests which several tests could be
accessing at the same time.

This fixes it by setting a temp random file at the test start

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix the tests logging to stdout

Signed-off-by: Itxaka <itxaka@kairos.io>

* Drop the verbose

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix agent test

Signed-off-by: Itxaka <itxaka@kairos.io>

* Let the event consumer create the logfile or whatever

Signed-off-by: Itxaka <itxaka@kairos.io>

* Drop Focus

Signed-off-by: Itxaka <itxaka@kairos.io>

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-09-17 17:51:11 +02:00
Itxaka
7328ad2cd5
Bump go to 1.23.1 (#526) 2024-09-10 15:29:49 +02:00
Itxaka
5a23b643c0
Bump go to 1.22 and yip to latest (#405) 2024-07-11 11:36:54 +02:00
Itxaka
09359d6a01 Fix earthfile to tidy before testing
Signed-off-by: Itxaka <itxaka@kairos.io>
(cherry picked from commit c6500f3f29)
2024-05-09 11:52:30 +02:00
Itxaka
0ef6aee90d Tidy and verify go modules before test/build with earthly
Signed-off-by: Itxaka <itxaka@kairos.io>
(cherry picked from commit 448d40a4b6)
2024-05-09 11:52:21 +02:00
Itxaka
96d9f402a1
reuse same base image across all targets (#202) 2024-01-15 13:54:38 +01:00
Itxaka
9c5731baa2
Rename go module kairos-agent (#81) 2023-07-10 14:39:48 +02:00
Itxaka
fa9fe3177e
Copy docs into proper place (#75) 2023-07-05 11:42:44 +02:00
Itxaka
9dd1dbddbe
Fix getting lvm recovery (#70) 2023-06-23 14:49:38 +02:00
Dimitris Karakasilis
f225315a5a
Use lsblk to detect partitions
like we did here:

https://github.com/kairos-io/kairos-sdk/pull/28/files

because ghw doesn't play well with lvm

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-06-21 10:52:08 +03:00
Itxaka
ba72c14346
Add extended version command (#37) 2023-06-05 12:40:23 +02:00
Mauro Morales
eb33870a54
Merge pull request #21 from kairos-io/use-kairos-docs-repo
Use kairos-docs repo to generate docs
2023-05-17 09:54:16 +02:00
Mauro Morales
2b13623656
adapt destination path
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-17 09:48:37 +02:00
Mauro Morales
7198dd5826
Fix path of artifact
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-17 09:08:15 +02:00
Itxaka
7f703ae588
🤖 Use cypress container for webui tests (#22) 2023-05-16 16:30:04 +02:00
Itxaka
ddfa30a4c6
Drop luet, image extractor, drop build code and multiarch images (#20)
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-16 16:06:49 +02:00
Mauro Morales
1ad2ba7332
Use kairos-docs repo to generate docs
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-15 14:03:21 +02:00
Itxaka
002b8ba51f
Bring elemental-cli code into the agent (#13) 2023-05-05 18:43:21 +02:00
Itxaka
8de8349a36 First pass at standalone kairos-agent
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-24 12:08:37 +02:00
Mauro Morales
8ab177d3a5 seedling: Prefix variable names with distro name in os-release (#1263)
* Use site variables to update image flavor and name

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Typo

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Prefix variable names with distro name in os-release

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt tests to read os-release with prefix

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt docs to show how to read os-release with prefix

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update SDK to be aware of attr prefixes

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt test with new variable names

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Temporarily print the os-release

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Check KAIROS_VERSION on tests and fallback to VERSION

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Match kubo ID and VERSION_ID

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Make kubo extension match any ID

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Test still fails, trying with surrounding quotes

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Reduce tests wait time

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Use tumbleweed for bundles tests

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update docs about systemd-sysext

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* reduce wait time in reset tests

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-19 22:37:00 +02:00
renovate[bot]
5ffefac855 Update quay.io/kairos/osbuilder-tools Docker tag to v0.6.1 (#1318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 23:43:04 +02:00
Itxaka
7abcd26431 robot: Add cypress tests for web UI (#1269) 2023-04-18 18:09:48 +02:00
Itxaka
ef1b632b40 robot: Release arm generic artifacts on release (#1315)
* 🤖 Release arm generic artifacts on release

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Update release-arm.yaml

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-18 13:55:59 +02:00
renovate[bot]
8a97b00af3 Update aquasec/trivy Docker tag to v0.40.0 (#1307)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 11:43:04 +02:00
Itxaka
d08fda2f21 bug: Fix rpi initrd not being linked (#1309) 2023-04-17 13:11:15 +02:00
Itxaka
3aa5ec4899 seedling: Generic arm64 isos (#1291)
🌱 Generate arm64 generic isos

 - Use latest osbuilder tools image as it contains fixes for arm64 isos
 - Add a small job to build an iso as part of the image arm workflow
 - Rework /boot/vmlinuz linking so it works on x86 and arm64

This also adds an iso-remote target for earthfile that allows to build
an iso from a remote rootfs in the shape of a docker artifact. This
allows for easy reproduce of isos based on existing artifacts instead of
having to rebuild the whole thing. You point to the artifact and it
spits an iso really fast. Also works with arm64 artifacts so we can
easily build a local arm64 iso for testing for pushed artifacts.

This PR makes it so generation of isos for arm64 works.

Signed-off-by: Itxaka <itxakaserrano@gmail.com>
2023-04-15 17:06:22 +02:00
renovate[bot]
9aa783f633 Update quay.io/kairos/osbuilder-tools Docker tag to v0.6.0 (#1293)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-14 10:07:42 +02:00
Mauro Morales
70ec86597d Pass VERSION flag including v2 in path (#1290)
* Pass VERSION flag including v2 in path

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Pass VERSION flag including v2 in path for goreleaser

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-13 19:44:19 +02:00
renovate[bot]
2f8948edda Update aquasec/trivy Docker tag to v0.39.1 (#1268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-10 08:49:09 +02:00
Mauro Morales
8f50f798e2 robot: Add version to goreleaser (#1252)
* Add version to goreleaser

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* do not remove github token

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* include version in dist target

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Add missing flag to pass the version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-05 12:24:19 +02:00
renovate[bot]
0b5c162f2a Update aquasec/trivy Docker tag to v0.39.0 (#1236)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 11:08:35 +02:00
Mauro Morales
e5dae4e9c4 arrow_up: Bump go in Earthly and workflows to ^1.20 (#1213)
* Bump go in Earthly and workflows to ^1.20

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update go.mod version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Lint

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Remove pin of go version to get the latest

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Remove minor version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-03-30 16:42:25 +02:00
Mauro Morales
77697af24f bug: Pass version to build of kairos agent (#1205)
Pass version to build of kairos agent

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-03-28 20:09:57 +02:00
Itxaka
09c6ed1538 bug: Fix validator on long strings (#1194)
* 🐛 Fix validator on long strings

Validator was mistakenly identifying a long yaml as a file and trying to
open it, which failed with an error of filename too long.

This was not catched in order to identify that the source is not a file
but a yaml, so it was directly returning the error.

This patch adds that error to the list in order ot identify the source
to validate as yaml. Also adds a couple of tests for this functionality.

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* 🐛 Merge initramfs generation between distros

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-28 18:20:56 +02:00
Itxaka
90ddda716e robot: Move repo bump to earthly (#1183)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-23 15:28:56 +01:00
Itxaka
1fc9a53e19 robot: Improve golang CI runs (#1165) 2023-03-17 16:45:43 +01:00
Itxaka
bd20a74349 sparkles: Use kairos-sdk module (#1140) 2023-03-15 15:45:00 +01:00
renovate[bot]
a406cd83fe Update aquasec/trivy Docker tag to v0.38.3 (#1096)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 13:19:17 +01:00
renovate[bot]
16ed6c2e1a Update quay.io/kairos/osbuilder-tools Docker tag to v0.5.3 (#1095)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 10:40:10 +01:00
renovate[bot]
dfc3cc48ea Update renovate/renovate Docker tag to v35 (#1105)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 10:39:28 +01:00
Ettore Di Giacinto
b2d6fc5d7e robot: Various enhancement to security scans (#1100)
* 🤖 Add --add-cpes-if-none to grype

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Remove dup

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Scan from base-image

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Move ARGs where are needed

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-03-10 18:11:48 +01:00
Ettore Di Giacinto
199f7fff43 robot: Fixup trivy scans (#1093)
* 🐧 Delete any files dangling in /tmp

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Skip /tmp scan in trivy

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-03-10 14:28:14 +01:00
Ettore Di Giacinto
2b87d05def robot: Pin trivy version (#1090)
Fixes: #1087

Signed-off-by: mudler <mudler@c3os.io>
2023-03-10 10:21:32 +01:00
Itxaka
6ded118d76 robot: Update immucore dev testing (#1059)
There is now less files to copy over

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-09 18:57:00 +01:00
Jacob Payne
5537ee1062 added zfs tests
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
2023-01-25 15:58:08 -07:00
Jacob Payne
dffbd9f327 added zfs packages to all images
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
2023-01-18 09:15:35 -07:00
Ettore Di Giacinto
557941fe55 robot: Add grype scan reports (#1057)
Signed-off-by: mudler <mudler@c3os.io>
2023-03-08 09:13:08 +01:00
Ettore Di Giacinto
ca7576c1fe robot: Fixup test targets (#1034)
We were listing on a dir that now doesn't exist necessarly anymore, and
when picking up the iso from latest release, we are selectively
pickingone flavor for the upgrade test.

Signed-off-by: mudler <mudler@c3os.io>
2023-03-03 23:27:41 +01:00
Dimitris Karakasilis
c0afc41fe4 Point ginkgo to the absolute path of the iso
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-03-03 20:42:49 +02:00
Dimitris Karakasilis
bd2dcd9300 Stop deleting the .earthlyignore and use PREBUILT_ISO ARG instead
Signed-off-by: Ettore Di Giacinto <ettore@spectrocloud.com>
2023-03-03 17:48:20 +02:00