From df2e17a13730718d6da11fa9ab736692c41a8a9a Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Feb 03 2021 16:46:31 +0000 Subject: Update branch matcher to use the new name Depends-On: https://pagure.io/fedora-project-config/pull-request/126 --- diff --git a/zuul.d/jobs.dhall b/zuul.d/jobs.dhall index 53fb861..e4cc16f 100644 --- a/zuul.d/jobs.dhall +++ b/zuul.d/jobs.dhall @@ -12,7 +12,6 @@ Install dhall by following https://docs.dhall-lang.org/tutorials/Getting-started Install zuulfmt by running: `python3 -mpip install --user zuulfmt` -} - let Zuul = ~/git/softwarefactory-project.io/software-factory/dhall-zuul/package.dhall ? https://softwarefactory-project.io/cgit/software-factory/dhall-zuul/plain/package.dhall @@ -49,7 +48,7 @@ let createRpmInstallTestJob let getNodesetByBranch = λ(branch : Branches.Type) → merge - { Master = Nodesets.getName Nodesets.Type.Fedora-Rawhide-VM + { Rawhide = Nodesets.getName Nodesets.Type.Fedora-Rawhide-VM , F32 = Nodesets.getName Nodesets.Type.Fedora-32-Container , F33 = Nodesets.getName Nodesets.Type.Fedora-33-Container , Epel8 = Nodesets.getName Nodesets.Type.Centos-8-VM @@ -64,7 +63,7 @@ let createRpmInstallTestJob , roles = Some [ { zuul = "zuul-distro-jobs" } ] , requires = Some [ "repo" ] , run = Some "playbooks/rpm/rpm-install-test.yaml" - , branches = Some [ Branches.show branch ] + , branches = Branches.zuulBranch branch , nodeset = Some (getNodesetByBranch branch) , vars = Some (createJobVars (Branches.kojirepos branch)) } @@ -82,7 +81,7 @@ let createRpmTestJob let getNodesetByBranch = λ(branch : Branches.Type) → merge - { Master = + { Rawhide = Nodesets.getName Nodesets.Type.Fedora-Rawhide-VM-Medium , F32 = Nodesets.getName Nodesets.Type.Fedora-32-VM-Medium , F33 = Nodesets.getName Nodesets.Type.Fedora-33-VM-Medium @@ -101,7 +100,7 @@ let createRpmTestJob , requires = Some [ "repo" ] , run = Some "playbooks/rpm/rpmtest.yaml" , post-run = Some [ "playbooks/rpm/rpmtest-fetch-artifacts.yaml" ] - , branches = Some [ Branches.show branch ] + , branches = Branches.zuulBranch branch , nodeset = Some (getNodesetByBranch branch) , vars = Some (createJobVars (Branches.kojirepos branch)) } @@ -124,7 +123,7 @@ let createRpmInspectJob branch} variant)" , parent = Some "rpminspect" , requires = Some [ "repo" ] - , branches = Some [ Branches.show branch ] + , branches = Branches.zuulBranch branch , nodeset = Some (Nodesets.getName Nodesets.Type.Fedora-33-Container) , vars = Some diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 61bb8aa..753e395 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -2,10 +2,11 @@ - job: name: rpm-install-test - description: "Install the built rpms (master variant)" + description: "Install the built rpms (rawhide variant)" run: playbooks/rpm/rpm-install-test.yaml branches: - - master + - rawhide + - main nodeset: fedora-rawhide-vm requires: - repo @@ -68,12 +69,13 @@ - job: name: rpm-test - description: "Install the built rpms and run STI tests (master variant)" + description: "Install the built rpms and run STI tests (rawhide variant)" run: playbooks/rpm/rpmtest.yaml post-run: - playbooks/rpm/rpmtest-fetch-artifacts.yaml branches: - - master + - rawhide + - main nodeset: fedora-rawhide-vm-medium requires: - repo @@ -147,9 +149,10 @@ - job: name: rpm-rpminspect parent: rpminspect - description: "Run the rpminspect report tests (master variant)" + description: "Run the rpminspect report tests (rawhide variant)" branches: - - master + - rawhide + - main nodeset: fedora-33-container requires: - repo @@ -204,10 +207,11 @@ name: rpm-linter parent: repo-rpm-lint branches: - - master + - rawhide - f33 - f32 - epel8 + - main nodeset: fedora-33-container requires: - repo diff --git a/zuul.d/templates.yaml b/zuul.d/templates.yaml index 054ad03..5cf2898 100644 --- a/zuul.d/templates.yaml +++ b/zuul.d/templates.yaml @@ -1,6 +1,7 @@ # Code generated by dhall-to-yaml. DO NOT EDIT. - project-template: + name: build check: jobs: - check-for-arches @@ -15,9 +16,9 @@ voting: false - rpm-scratch-build-aarch64: voting: false - name: build - project-template: + name: lint check: jobs: - rpm-linter: @@ -27,9 +28,9 @@ dependencies: - rpm-scratch-build voting: false - name: lint - project-template: + name: test check: jobs: - check-for-tests: @@ -43,19 +44,18 @@ dependencies: - check-for-tests - rpm-scratch-build - name: test - project-template: + name: publish gate: jobs: - noop - name: publish promote: jobs: - rpm-build - project-template: + name: test-tests-def check: jobs: - rpm-test - name: test-tests-def