| |
@@ -83,6 +83,15 @@
|
| |
, nodeset = Some executor_nodeset
|
| |
}
|
| |
|
| |
+ let check_for_fmf_tests =
|
| |
+ Zuul.Job::{
|
| |
+ , name = "${job-prefix}check-for-fmf-tests"
|
| |
+ , description = Some "Check the project has a .fmf directory"
|
| |
+ , branches = Some Branches.allText
|
| |
+ , run = Some "playbooks/rpm/check-for-fmf-tests.yaml"
|
| |
+ , nodeset = Some executor_nodeset
|
| |
+ }
|
| |
+
|
| |
let check_for_arches =
|
| |
Zuul.Job::{
|
| |
, name = "${job-prefix}check-for-arches"
|
| |
@@ -210,13 +219,58 @@
|
| |
forBranch
|
| |
Branches.all
|
| |
|
| |
+ let getTMTJobVars =
|
| |
+ λ(branch : Branches.Type) →
|
| |
+ let name =
|
| |
+ merge
|
| |
+ { Rawhide = "Fedora-Rawhide"
|
| |
+ , F33 = "Fedora-33"
|
| |
+ , F34 = "Fedora-34"
|
| |
+ , Epel8 = "Fedora-epel8"
|
| |
+ }
|
| |
+ branch
|
| |
+
|
| |
+ in Zuul.Vars.object
|
| |
+ [ { mapKey = "compose", mapValue = Zuul.Vars.string name } ]
|
| |
+
|
| |
+ let generateTMTTestsJob =
|
| |
+ λ(branch : Branches.Type) →
|
| |
+ Zuul.Job::{
|
| |
+ , name = "rpm-tmt-test"
|
| |
+ , description = Some "Running fmf test on Testing Farm"
|
| |
+ , final = Some True
|
| |
+ , branches = Branches.zuulBranch branch
|
| |
+ , roles = Some [ { zuul = "zuul-distro-jobs" } ]
|
| |
+ , timeout = Some 21600
|
| |
+ , nodeset = Some default_nodeset
|
| |
+ , requires = Some [ "repo" ]
|
| |
+ , secrets = Some
|
| |
+ [ Zuul.Job.Secret::{
|
| |
+ , name = "testing_farm_zuul_fedora_ci_key"
|
| |
+ , secret = "testing_farm_zuul_fedora_ci_key"
|
| |
+ }
|
| |
+ ]
|
| |
+ , run = Some "playbooks/testing-farm/run.yaml"
|
| |
+ , post-run = Some [ "playbooks/testing-farm/fetch.yaml" ]
|
| |
+ , vars = Some (getTMTJobVars branch)
|
| |
+ }
|
| |
+
|
| |
+ let generateTMTTestsJobs =
|
| |
+ Prelude.List.map
|
| |
+ Branches.Type
|
| |
+ Zuul.Job.Type
|
| |
+ generateTMTTestsJob
|
| |
+ Branches.all
|
| |
+
|
| |
let Jobs =
|
| |
[ clean_stalled_koji_tasks
|
| |
, check_for_tests
|
| |
+ , check_for_fmf_tests
|
| |
, check_for_arches
|
| |
, common_koji_rpm_build
|
| |
]
|
| |
# generateRpmBuildJobs KojiBuild.Type.Scratch
|
| |
# generateRpmBuildJobs KojiBuild.Type.Final
|
| |
+ # generateTMTTestsJobs
|
| |
|
| |
in Zuul.Job.wrap Jobs
|
| |