#5274 Switch fedora containers to F34
Merged 2 years ago by ngompa. Opened 2 years ago by zlopez.
zlopez/pagure tests  into  master

@@ -1,4 +1,4 @@ 

- FROM quay.io/fedora/fedora:35-x86_64

+ FROM quay.io/fedora/fedora:34-x86_64

  

  ARG repo=https://pagure.io/pagure.git

  ARG branch=master

@@ -1,4 +1,4 @@ 

- FROM quay.io/fedora/fedora:35-x86_64

+ FROM quay.io/fedora/fedora:34-x86_64

  

  ARG repo=https://pagure.io/pagure.git

  ARG branch=master

@@ -378,7 +378,7 @@ 

                  "error": "Could not match input '2016asd' to any of the following formats: "

                  "YYYY-MM-DD, YYYY-M-DD, YYYY-M-D, YYYY/MM/DD, YYYY/M/DD, YYYY/M/D, "

                  "YYYY.MM.DD, YYYY.M.DD, YYYY.M.D, YYYYMMDD, YYYY-DDDD, YYYYDDDD, "

-                 "YYYY-MM, YYYY/MM, YYYY.MM, YYYY, W.",

+                 "YYYY-MM, YYYY/MM, YYYY.MM, YYYY, W",

                  "error_code": "ENOCODE",

              }

              self.assertEqual(json.loads(output.get_data(as_text=True)), exp)

When running CI containers with F35 they fail in CentOS CI on the following
error https://bugzilla.redhat.com/show_bug.cgi?id=2032085

This error is not happening on F34, let's switch to it then.

With this PR all tests for Fedora RPMS container are passing.

Pull-Request has been merged by ngompa

2 years ago

Hm, it looks like the F34 RPMs tests are failing in CI, but the container run without any failure on my local machine :-/

But at least the container is now running in CI.

The design of the CI system means it doesn't take effect until post-merge.

I thought that running it as this:
./dev/run-tests-container.py --fedora --repo https://pagure.io/forks/zlopez/pagure.git --branch tests will run it on my pushed changes, at least it looked like it's doing this.

Hmm, so it does. Nevermind then :sweat_smile:

It looks like all the issues are related to permissions to /tmp

Here is the example error from CI:

_pygit2.GitError: failed to resolve path '/tmp/pagure-tests-path-zi7lrkl0/repos/test.git/.git/': Operation not permitted

And I thought that it will continue running tests in other containers, but it seems it stops when the first one fails :-/

From what I know the Pagure is one of the few projects still running on old CentOS CI and should be migrated to new one. I will try to look what needs to be done.

That would be great! And I would appreciate it if you could teach me about the new setup once you've done that. :)