Hi Miro,
I cannot help with the ansible magic but if you do not have STI as a hard requirement I think there might be a relatively straightforward way to cover your use case using
tmt as it allows to set an
environment variable for the whole plan. Your rpms/python3.11 config could look like this:
discover:
how: fmf
url:
https://src.fedoraproject.org/tests/python filter: component:python311
prepare:
how: install
package:
- python3.11
- python3.11-test
- python3.11-tkinter
environment:
VERSION: "3.11"
execute:
how: tmt
In this way you would specify the python version and the proper package list only once. The test metadata could be shared from the tests namespace, no need to repeat the list again and again in individual rpms namespace branches. I've outlined a simple setup in the following pull request:
If this sounds like a viable solution feel free to ping me or anybody on the #tmt channel for details. We'll be glad to help you with the config.
psss...