Skip to main content

TMT Integration

When running tests in Fedora CI, Packit automatically provides TMT context dimensions and environment variables that you can use in your test plans to adjust behavior based on the target branch, distribution, or other factors.

TMT Context Dimensions

The following TMT context dimensions are automatically set by Packit for for rpminspect, rpmlint, and custom Fedora CI test jobs:

ContextDescriptionExample Values
archProcessor architecturex86_64
distroDistribution/compose being testedcentos-stream-9, centos-stream-10
dist-git-branchTarget branch of the dist-git PRrawhide, f41, f40, epel-9, epel-10.1
initiatorWho triggered the testfedora-ci
triggerEvent type that triggered the testcommit
tip

You can differentiate between Fedora CI and Packit upstream test jobs with the initiator context dimension (packit for upstream Packit).

Environment Variables

KOJI_TASK_ID

The Koji task ID for the scratch build created for this dist-git PR (e.g., 123014869).

See Also