tmt
tmt copied to clipboard
Refactor how we handle create local test containers
With the release of F43 comes a need to update the images. We should think of how to better automate these. Some ideas:
- Use
fedora-distro-aliasesto pick up all supported fedora releases and also resolve whatlatestandrawhideshould point to - Provide
pytestfixtures shared throughout the session to handle the container initializations. On the Makefile/beakerlib side, this would involve simply calling a specific no-op test(s) that just contain the fixtures - Use more jinja templating for the Containerfile
- Do some basic
podman image inspectto maybe invalidate some containers, or provide some simple interface to do that
From the hacking session:
- Having a python script sounds ok
- Should still have make interface, but not clear which targets we should have/keep, could discuss at implementation
- Jinja templating would be nice, but we need to generate them in order for pre-commit to run on them
- With
fedora-distro-aliaseswe need to manually bump them because it could randomly breaklatestwhen the alias is updated. Maybe we could try to have a different script to update all of those references