#123 Add fmf-tests on testing-farm jobs support (dhall)
Merged 2 years ago by zuul. Opened 2 years ago by fbo.
fbo/fedora-zuul-jobs-config fmf-dhall  into  master

@@ -0,0 +1,13 @@ 

+ ---

+ - hosts: localhost

+   tasks:

+     - name: Check for .fmf exists

+       stat:

+         path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/.fmf"

+       register: tests_stat

+     - zuul_return:

+         data:

+           zuul:

+             child_jobs:

+               - rpm-tmt-test-on-testing-farm

+       when: not tests_stat.stat.isdir

@@ -0,0 +1,6 @@ 

+ - hosts: all

+   tasks:

+     - debug:

+         msg: "Post run fetching artifacts"

+ #    - include_role:

+ #        name: testing-farm-fetch-artifacts

@@ -0,0 +1,6 @@ 

+ - hosts: all

+   tasks:

+     - debug:

+         msg: "Running tmt job"

+ #    - include_role:

+ #        name: testing-farm-run-test

file modified
+54
@@ -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

file modified
+98
@@ -26,6 +26,19 @@ 

        nodes: []

  

  - job:

+     name: check-for-fmf-tests

+     description: Check the project has a .fmf directory

+     run: playbooks/rpm/check-for-fmf-tests.yaml

+     branches:

+       - rawhide

+       - f34

+       - f33

+       - epel8

+       - main

+     nodeset:

+       nodes: []

+ 

+ - job:

      name: check-for-arches

      description: Check the packages needs arches builds

      run: playbooks/rpm/check-for-arches.yaml
@@ -428,3 +441,88 @@ 

        release: epel8

        scratch_build: false

        target: epel8

+ 

+ - job:

+     name: rpm-tmt-test

+     description: Running fmf test on Testing Farm

+     run: playbooks/testing-farm/run.yaml

+     post-run:

+       - playbooks/testing-farm/fetch.yaml

+     branches:

+       - rawhide

+       - main

+     final: true

+     nodeset: fedora-33-container

+     requires:

+       - repo

+     roles:

+       - zuul: zuul-distro-jobs

+     secrets:

+       - name: testing_farm_zuul_fedora_ci_key

+         secret: testing_farm_zuul_fedora_ci_key

+     timeout: 21600

+     vars:

+       compose: Fedora-Rawhide

+ 

+ - job:

+     name: rpm-tmt-test

+     description: Running fmf test on Testing Farm

+     run: playbooks/testing-farm/run.yaml

+     post-run:

+       - playbooks/testing-farm/fetch.yaml

+     branches:

+       - f34

+     final: true

+     nodeset: fedora-33-container

+     requires:

+       - repo

+     roles:

+       - zuul: zuul-distro-jobs

+     secrets:

+       - name: testing_farm_zuul_fedora_ci_key

+         secret: testing_farm_zuul_fedora_ci_key

+     timeout: 21600

+     vars:

+       compose: Fedora-34

+ 

+ - job:

+     name: rpm-tmt-test

+     description: Running fmf test on Testing Farm

+     run: playbooks/testing-farm/run.yaml

+     post-run:

+       - playbooks/testing-farm/fetch.yaml

+     branches:

+       - f33

+     final: true

+     nodeset: fedora-33-container

+     requires:

+       - repo

+     roles:

+       - zuul: zuul-distro-jobs

+     secrets:

+       - name: testing_farm_zuul_fedora_ci_key

+         secret: testing_farm_zuul_fedora_ci_key

+     timeout: 21600

+     vars:

+       compose: Fedora-33

+ 

+ - job:

+     name: rpm-tmt-test

+     description: Running fmf test on Testing Farm

+     run: playbooks/testing-farm/run.yaml

+     post-run:

+       - playbooks/testing-farm/fetch.yaml

+     branches:

+       - epel8

+     final: true

+     nodeset: fedora-33-container

+     requires:

+       - repo

+     roles:

+       - zuul: zuul-distro-jobs

+     secrets:

+       - name: testing_farm_zuul_fedora_ci_key

+         secret: testing_farm_zuul_fedora_ci_key

+     timeout: 21600

+     vars:

+       compose: Fedora-epel8

no initial comment

Build succeeded.

rebased onto e080610

2 years ago

Build succeeded.

Metadata Update from @fbo:
- Pull-request tagged with: gateit

2 years ago

Build succeeded (gate pipeline).

Pull-Request has been merged by zuul

2 years ago