#190 Add support for Epel9
Merged 2 years ago by zuul. Opened 2 years ago by mvadkert.
mvadkert/fedora-project-config support-epel-9  into  master

file modified
+1
@@ -20,6 +20,7 @@ 

        , Union.AARCH64

        ]

      , epel8 = [ Union.X86_64, Union.PPC64LE, Union.AARCH64 ]

+     , epel9 = [ Union.X86_64, Union.PPC64LE, Union.AARCH64 ]

      , show =

          λ(arch : Union) →

            merge

file modified
+15 -3
@@ -4,10 +4,16 @@ 

  

  let --| When changing that union, update the `all` attribute too

      Union =

-       < Rawhide | F34 | F35 | F36 | Epel8 >

+       < Rawhide | F34 | F35 | F36 | Epel8 | Epel9 >

  

  let eq_def =

-       { Rawhide = False, F34 = False, F35 = False, F36 = False, Epel8 = False }

+       { Rawhide = False

+       , F34 = False

+       , F35 = False

+       , F36 = False

+       , Epel8 = False

+       , Epel9 = False

+       }

  

  let show =

        λ(branch : Union) →
@@ -17,10 +23,11 @@ 

            , F35 = "f35"

            , F36 = "f36"

            , Epel8 = "epel8"

+           , Epel9 = "epel9"

            }

            branch

  

- let all = [ Union.Rawhide, Union.F36, Union.F35, Union.F34, Union.Epel8 ]

+ let all = [ Union.Rawhide, Union.F36, Union.F35, Union.F34, Union.Epel8, Union.Epel9 ]

  

  let isRawhide = λ(branch : Union) → merge (eq_def ⫽ { Rawhide = True }) branch

  
@@ -46,6 +53,7 @@ 

              , F35 = "f35"

              , F36 = "f36"

              , Epel8 = "epel8"

+             , Epel9 = "epel9"

              }

              branch

      , arches =
@@ -62,6 +70,7 @@ 

              , F35 = Arches.fedora

              , F36 = Arches.fedora

              , Epel8 = Arches.epel8

+             , Epel9 = Arches.epel9

              }

              branch

      , kojirepos =
@@ -77,8 +86,11 @@ 

                  "https://kojipkgs.fedoraproject.org/repos/f36-build/latest/x86_64/"

              , Epel8 =

                  "https://kojipkgs.fedoraproject.org/repos/epel8-build/latest/x86_64/"

+             , Epel9 =

+                 "https://kojipkgs.fedoraproject.org/repos/epel9-build/latest/x86_64/"

              }

              branch

      , isRawhide

      , isEpel8 = λ(branch : Union) → merge (eq_def ⫽ { Epel8 = True }) branch

+     , isEpel9 = λ(branch : Union) → merge (eq_def ⫽ { Epel9 = True }) branch

      }

@@ -32,6 +32,7 @@ 

              | Fedora-31-VM-Medium

              | Fedora-30-VM-Medium

              | Centos-8-VM

+             | Centos-Stream-9-VM

              >

  

        let all =
@@ -63,6 +64,7 @@ 

              , Union.Fedora-31-VM-Medium

              , Union.Fedora-30-VM-Medium

              , Union.Centos-8-VM

+             , Union.Centos-Stream-9-VM

              ]

  

        let create
@@ -171,6 +173,8 @@ 

                        "cloud-host"

                  , Centos-8-VM =

                      create "centos-8-vm" "cloud-centos-8" "cloud-host"

+                 , Centos-Stream-9-VM =

+                     create "centos-stream-9-vm" "cloud-centos-9-stream" "cloud-host"

                  }

                  nodeset

  

@@ -227,6 +227,7 @@ 

                  , F35 = "Fedora-35"

                  , F36 = "Fedora-36"

                  , Epel8 = "CentOS-Stream-8"

+                 , Epel9 = "CentOS-Stream-9"

                  }

                  branch

  
@@ -237,6 +238,7 @@ 

                  , F35 = "fedora-35"

                  , F36 = "fedora-36"

                  , Epel8 = "centos-stream-8"

+                 , Epel9 = "centos-stream-9"

                  }

                  branch

  

@@ -39,6 +39,7 @@ 

                    , F35 = Nodesets.getName Nodesets.Type.Fedora-35-VM-Medium

                    , F36 = Nodesets.getName Nodesets.Type.Fedora-36-VM

                    , Epel8 = Nodesets.getName Nodesets.Type.Centos-8-VM

+                   , Epel9 = Nodesets.getName Nodesets.Type.Centos-Stream-9-VM

                    }

                    branch

  
@@ -60,6 +61,11 @@ 

                then  job ⫽ { pre-run = Some [ "playbooks/epel8/install.yaml" ] }

                else  job

  

+         let job =

+               if    Branches.isEpel9 branch

+               then  job ⫽ { pre-run = Some [ "playbooks/epel8/install.yaml" ] }
fbo commented 2 years ago

The playbook is misnamed but it install epel-release package so I guess that's ok ?

+               else  job

+ 

          in  job

  

  let createRpmTestJob
@@ -74,6 +80,7 @@ 

                    , F35 = Nodesets.getName Nodesets.Type.Fedora-35-VM-Medium

                    , F36 = Nodesets.getName Nodesets.Type.Fedora-36-VM-Medium

                    , Epel8 = Nodesets.getName Nodesets.Type.Centos-8-VM

+                   , Epel9 = Nodesets.getName Nodesets.Type.Centos-Stream-9-VM

                    }

                    branch

  
@@ -98,6 +105,11 @@ 

                then  job ⫽ { pre-run = Some [ "playbooks/epel8/install.yaml" ] }

                else  job

  

+         let job =

+               if    Branches.isEpel9 branch

+               then  job ⫽ { pre-run = Some [ "playbooks/epel8/install.yaml" ] }

+               else  job

+ 

          in  job

  

  let createRpmInspectJob

@fbo few comments from me:

  • I kept the playbook the same as with epel8
  • nodepool config will need review

Resolves https://pagure.io/fedora-ci/general/issue/303

Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com

I guess this will need more changes somewhere?

Build succeeded.

I guess this will need more changes somewhere?

I think the new image needs to be defined in https://softwarefactory-project.io/cgit/config/tree/nodepool/diskimages/package.dhall#n1 . Should this be using cloud-centos-9-stream ?

I think the cloud-centos-8 no longer exist and it should be cloud-centos-8-stream, I guess the job are not currently using.

Please do the change here to use: cloud-centos-9-stream

I'll do a follow-up patch to update the node label for centos 8.

So thanks Michal, I'll run the "make render" command and then propose changes for fedora-zuul-jobs and fedora-zuul-jobs-config based on that PR.

The playbook is misnamed but it install epel-release package so I guess that's ok ?

Sorry this PR needs an update to change the label name to "cloud-centos-9-stream".
I'll refresh the auto-generated changes after.

rebased onto e6a98cf

2 years ago

@fbo changed in FZCI.dhall/Nodesets.dhall

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