To the best of my knowledge, this task is installing the packages listed in tests.yml as required_packages. I think this can cause an issue with the package you are targeting, as the tests.yml file includes said package. For example, in https://upstreamfirst.fedorainfracloud.org/systemd/blob/master/f/tests.yml
systemd is a required package. Thus, say the latest available systemd rpm is version 236, but you are testing a custom built rpm (maybe from a PR?) and your build system gave your rpm version 1. This task will now update from your test systemd-1 to systemd-236, and thus your testing is not useful. I agree latest makes sense for all required_packages that aren't the package under test, but I think because of tests.yml files including the package under test as a required_package, state=latest can't be used here.
To the best of my knowledge, this task is installing the packages listed in tests.yml as required_packages. I think this can cause an issue with the package you are targeting, as the tests.yml file includes said package. For example, in
https://upstreamfirst.fedorainfracloud.org/systemd/blob/master/f/tests.yml
systemd is a required package. Thus, say the latest available systemd rpm is version 236, but you are testing a custom built rpm (maybe from a PR?) and your build system gave your rpm version 1. This task will now update from your test systemd-1 to systemd-236, and thus your testing is not useful. I agree latest makes sense for all required_packages that aren't the package under test, but I think because of tests.yml files including the package under test as a required_package, state=latest can't be used here.
Signed-off-by: Johnny Bieren jbieren@redhat.com