From 04bc529a2385d1311403191bbec525ab89ab6dec Mon Sep 17 00:00:00 2001 From: Miroslav Vadkerti Date: Oct 23 2023 15:45:50 +0000 Subject: Add generator for `tmt-test` job This is a job that uses the `testing-farm-generic` playbooks to run `tmt` tests via the `testing-farm-run-generic-test` role. Signed-off-by: Miroslav Vadkerti --- diff --git a/FZCI.dhall/fedora-zuul-jobs-config/jobs.dhall b/FZCI.dhall/fedora-zuul-jobs-config/jobs.dhall index 27e5715..e7cd903 100644 --- a/FZCI.dhall/fedora-zuul-jobs-config/jobs.dhall +++ b/FZCI.dhall/fedora-zuul-jobs-config/jobs.dhall @@ -330,6 +330,25 @@ let generateTMTTestsJobs = generateTMTTestsJob Branches.all +let generateGenericTMTTestJob = + Zuul.Job::{ + , name = "tmt-test" + , description = Some "Running generic tmt test on Testing Farm" + , final = Some False + , timeout = Some 21600 + , nodeset = Some default_nodeset + , secrets = Some + [ Zuul.Job.Secret::{ + , name = "testing_farm_zuul_ci_key" + , secret = "testing_farm_zuul_ci_key" + } + ] + , run = Some "playbooks/testing-farm-generic/run.yaml" + , post-run = Some [ "playbooks/testing-farm-generic/fetch.yaml" ] + , vars = Some ( Zuul.Vars.object ( toMap { test_type = Zuul.Vars.string "fmf" } ) ) + } + + let Jobs = [ clean_stalled_koji_tasks , check_for_sti_tests @@ -338,6 +357,7 @@ let Jobs = , common_koji_rpm_build , check_for_eln , eln_rpm_scratch_build + , generateGenericTMTTestJob ] # generateRpmBuildJobs KojiBuild.Type.Scratch # generateRpmBuildJobs KojiBuild.Type.Final