Hi Miro!

I don't think something like conditional requires is possible using STI. As far as tmt is concerned, just last week we have added a new L1 attribute recommend which should cover similar use cases in the near future (Fedora pipeline with tmt support should be around in a couple of weeks).

psss... 

On Tue, 2 Jun 2020 at 12:14, Miro Hrončok <mhroncok@redhat.com> wrote:
Hello. We will soon retire python34 on rawhide:
   https://fedoraproject.org/wiki/Changes/RetirePython34

Some of our CI tests have:

     tests:
     ...
     - smoke34:
         dir: python/smoke
         run: VERSION=3.4 METHOD=virtualenv ./venv.sh
     ...
     required_packages:
     - ...
     - python34
     - ...


And we will need to remove those. In order to do that, we have a choice:

  1) diverge the tests.yml file on rawhide and never merge that to f32
  2) remove python34 tests and if it gets merged to f32, we'll just not test it
  3) use some sort of a conditional or optional thingy?

And here I am, asking for a conditional (what an irony).

Is it possible to express this?

     recommended_packages:
     - python34

Or this?

     required_packages:
     - (python34 if fedora-release-common < 33)


The tests themselves could be made optional on the presence of python3.4 (in
./venv.sh).

Thanks.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
CI mailing list -- ci@lists.fedoraproject.org
To unsubscribe send an email to ci-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/ci@lists.fedoraproject.org