#146 Re-enable check-for-tests job and its playbook
Merged 2 years ago by zuul. Opened 2 years ago by fbo.
fbo/fedora-zuul-jobs-config reenable  into  master

@@ -0,0 +1,18 @@ 

+ ---

+ - hosts: localhost

+   tasks:

+     - name: Check for tests/tests.yml exists

+       stat:

+         path: "{{ zuul.project.src_dir }}/tests/tests.yml"

+       register: tests_stat

+     - zuul_return:

+         data:

+           zuul:

+             child_jobs:

+               - rpm-test

+       when: tests_stat.stat.exists

+     - zuul_return:

+         data:

+           zuul:

+             child_jobs: []

+       when: not tests_stat.stat.exists

file modified
+10
@@ -74,6 +74,15 @@ 

  

  let default_nodeset = Nodesets.getName Nodesets.Type.Fedora-34-Container

  

+ let check_for_tests =

+       Zuul.Job::{

+       , name = "${job-prefix}check-for-tests"

+       , description = Some "Check the project has a tests/tests.yml"

+       , branches = Some Branches.allText

+       , run = Some "playbooks/rpm/check-for-tests.yaml"

+       , nodeset = Some executor_nodeset

+       }

+ 

  let check_for_sti_tests =

        Zuul.Job::{

        , name = "${job-prefix}check-for-sti-tests"
@@ -310,6 +319,7 @@ 

  

  let Jobs =

          [ clean_stalled_koji_tasks

+         , check_for_tests

          , check_for_sti_tests

          , check_for_fmf_tests

          , check_for_arches

file modified
+14
@@ -13,6 +13,20 @@ 

          secret: krb_keytab

  

  - job:

+     name: check-for-tests

+     description: Check the project has a tests/tests.yml

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

+     branches:

+       - rawhide

+       - f35

+       - f34

+       - f33

+       - epel8

+       - main

+     nodeset:

+       nodes: []

+ 

+ - job:

      name: check-for-sti-tests

      description: Check the project has a tests/tests.yml

      run: playbooks/rpm/check-for-sti-tests.yaml

This reverts commit 3e147f1.
Also the playbook is updated to run rpm-test if sti tests.yaml
file is present and if not simply skip it.

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