* 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>
https://go.dev/doc/modules/major-version
This way we can bump the kairos dependency on the provider-kairos repo
which otherwise produced the error:
```
~/workspace/kairos/provider-kairos (main)*$ go get -u github.com/kairos-io/kairos@v2.0.0-alpha3
go: github.com/kairos-io/kairos@v2.0.0-alpha3: invalid version: module contains a go.mod file, so module path must match major version ("github.com/kairos-io/kairos/v2")
```
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
* Introduce config/collector package
to split the collection of config sources out of the config package.
Each consumer of the new package will take care of unmarshalling the
yaml to a specific Config struct, do validations etc.
* Add tests and remove garbage
* Follow all config_url chains and test it
* Add missing options file and refactor cmdline code
* Consolidate the way we merge configs no matter where they come from
* Allow and use only files with valid headers
Config is specific to Kairos while Collector is generic. This
will allow us to do validations which are just related to Kairos at the
config level, while including every type of key and querying of the full
yaml at the Collector level splitting the responsibilities of each
package.
---------
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>