tmt icon indicating copy to clipboard operation
tmt copied to clipboard

Refactor how we handle create local test containers

Open LecrisUT opened this issue 4 months ago • 1 comments

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-aliases to pick up all supported fedora releases and also resolve what latest and rawhide should point to
  • Provide pytest fixtures 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 inspect to maybe invalidate some containers, or provide some simple interface to do that

LecrisUT avatar Oct 27 '25 13:10 LecrisUT

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-aliases we need to manually bump them because it could randomly break latest when the alias is updated. Maybe we could try to have a different script to update all of those references

LecrisUT avatar Nov 18 '25 13:11 LecrisUT