#191 Fedora CI pipeline: Add support for providing tmt context
Closed by msrb. Opened by psss.

We've successfully open-sourced the test case relevancy, relevant documentation is here:

  • https://fmf.readthedocs.io/en/latest/context.html
  • https://tmt.readthedocs.io/en/latest/spec/context.html

In order to make it working the CI pipeline should provide current context when calling the testing farm api. Relevant testing farm issue:

  • https://gitlab.com/testing-farm/api/-/issues/2

An example context would look like this:

distro: fedora-33
arch: x86_64
trigger: build

@msrb, could you please look into this? Thanks.


@psss Hey there.

Do I understand it correctly that the context would be the same for all packages in F33 for example?
And the only difference in Rawhide would be distro: fedora-34?

Metadata Update from @msrb:
- Issue assigned to msrb

PR: https://github.com/fedora-ci/dist-git-pipeline/pull/27

And test run: https://osci-jenkins-1.ci.fedoraproject.org/job/fedora-ci/job/dist-git-pipeline/job/PR-27/4/

The support for tmt context is already implemented in the pipelines. Please reopen if you find any issues :wink:

Metadata Update from @msrb:
- Issue status updated to: Closed (was: Open)

Yes, works as expected, verified with:

  • https://src.fedoraproject.org/rpms/tmt/pull-request/20
  • https://src.fedoraproject.org/rpms/tmt/pull-request/21

Thanks a lot for implementing this!

Metadata