Browse Source

Migrate the Fedora 29 container to Fedora 31

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Pierre-Yves Chibon 4 years ago
parent
commit
a40039178c
4 changed files with 16 additions and 15 deletions
  1. 2 2
      .cico.pipeline
  2. 3 2
      dev/containers/f31-rpms-py3
  3. 4 4
      dev/run-tests-container.py
  4. 7 7
      run_ci_tests_containers.sh

+ 2 - 2
.cico.pipeline

@@ -71,7 +71,7 @@ node('pagure') {
         throw e
     } finally {
         stage('Sync Artifacts'){
-            syncfromduffynode('pagure/results_f29-rpms-py3/')
+            syncfromduffynode('pagure/results_f31-rpms-py3/')
             syncfromduffynode('pagure/results_centos7-rpms-py2/')
             syncfromduffynode('pagure/results_fedora-pip-py3/')
         }
@@ -86,7 +86,7 @@ node('pagure') {
         }
 
         stage('Archive Artifacts'){
-            archiveArtifacts artifacts: 'pagure/results_f29-rpms-py3/'
+            archiveArtifacts artifacts: 'pagure/results_f31-rpms-py3/'
             archiveArtifacts artifacts: 'pagure/results_centos7-rpms-py2/'
             archiveArtifacts artifacts: 'pagure/results_fedora-pip-py3/'
         }

+ 3 - 2
dev/containers/f29-rpms-py3 → dev/containers/f31-rpms-py3

@@ -1,4 +1,4 @@
-FROM fedora:29
+FROM fedora:31
 
 ARG repo=https://pagure.io/pagure.git
 ARG branch=master
@@ -26,7 +26,8 @@ RUN cd / \
 # Install all the requirements from the spec file and replace the macro
 # %{python_pkgversion} by '3' which thus installs all the py3 version of
 # the dependencies.
-RUN dnf install -y --enablerepo=updates-testing `grep "Requires:" /pagure/files/pagure.spec | \
+RUN sed -i "/Requires:           python%{python_pkgversion}-enum34/d" /pagure/files/pagure.spec && \
+    dnf install -y --enablerepo=updates-testing `grep "Requires:" /pagure/files/pagure.spec | \
     awk '{split($0, a, " "); print a[2]}' |grep -v "%{name}" | \
     sed -e "s|%{python_pkgversion}|3|"` && \
     dnf clean all && \

+ 4 - 4
dev/run-tests-container.py

@@ -66,19 +66,19 @@ if __name__ == "__main__":
         container_names = ["pagure-c7-rpms-py2"]
         container_files = ["centos7-rpms-py2"]
     elif args.fedora is True:
-        container_names = ["pagure-f29-rpms-py3"]
-        container_files = ["f29-rpms-py3"]
+        container_names = ["pagure-f31-rpms-py3"]
+        container_files = ["f31-rpms-py3"]
     elif args.pip is True:
         container_names = ["pagure-fedora-pip-py3"]
         container_files = ["fedora-pip-py3"]
     else:
         container_names = [
-            "pagure-f29-rpms-py3",
+            "pagure-f31-rpms-py3",
             "pagure-c7-rpms-py2",
             "pagure-fedora-pip-py3",
         ]
         container_files = [
-            "f29-rpms-py3",
+            "f31-rpms-py3",
             "centos7-rpms-py2",
             "fedora-pip-py3",
         ]

+ 7 - 7
run_ci_tests_containers.sh

@@ -21,19 +21,19 @@ echo "Last commits:"
 git --no-pager log -2
 fi
 
-podman build --rm -t pagure-f29-rpms-py3 \
-    -f dev/containers/f29-rpms-py3 \
+podman build --rm -t pagure-f31-rpms-py3 \
+    -f dev/containers/f31-rpms-py3 \
     dev/containers
 
-if [ ! -d `pwd`/results_f29-rpms-py3 ]; then
-  mkdir `pwd`/results_f29-rpms-py3;
+if [ ! -d `pwd`/results_f31-rpms-py3 ]; then
+  mkdir `pwd`/results_f31-rpms-py3;
 fi
 
-podman run --rm -it --name pagure-f29-rpms-py3 \
-    -v `pwd`/results_f29-rpms-py3:/pagure/results:z \
+podman run --rm -it --name pagure-f31-rpms-py3 \
+    -v `pwd`/results_f31-rpms-py3:/pagure/results:z \
     -e BRANCH=$BRANCH \
     -e REPO=$REPO \
-    pagure-f29-rpms-py3
+    pagure-f31-rpms-py3
 
 
 podman build --rm -t pagure-c7-rpms-py2 \