kairos
kairos copied to clipboard
:seedling: Conformance tests
Is your feature request related to a problem? Please describe. BYOI allows to convert other images to Kairos, however, there is no way to assess if it's conformant or not without testing it out manually
Describe the solution you'd like The agent, or another command to have a suite of conformance tests to spot early-on issues. We could rely the current work on the runtime state to do some generic assertions:
- static analysis
- [ ] Expected paths
- [ ] Kernel/Initrd symlinks sanity check up
- [ ] GRUB configuration analysis
- [ ] Presence of providers, sanity checks
- [ ] Folder permissions
- [ ] Runtime dependencies (packages required to be installed in the base image)
- runtime analysis
- [ ] Assert if runtime state directory are accessible
- [ ] Assert if services were loaded correctly
- [ ] Providers check assessment
- [ ] Assert if layout of fs is compliant (ephemeral, persistent data, etc)
Describe alternatives you've considered N/A
Additional context #116
hey this is half completed with karios-init validate!
The full runtime is tested on Kairos repo with the e2e tests.
https://github.com/kairos-io/kairos/issues/3606