18 Commits

Author SHA1 Message Date
Martin Nečas
f00f4b3bad Add Python 3.11 subpackage to be usable in ansible-core 2.14
The ansible-core 2.14 uses python3.11 on Centos 9 stream instead of the default system python3.9.
We need to build the rpm to use the SDK with the ansible-core 2.14, which forces the python library to python3.11 so the ansible can use the SDK.

Signed-off-by: Martin Nečas <necas.marty@gmail.com>
2023-03-02 09:02:17 +01:00
Martin Perina
e4ee3fbdd0 Switch from Python 3.8 to 3.9 on EL8
Switch from Python 3.8 to 3.9 on EL8 to be able to support
ansible-core-2.13

Signed-off-by: Martin Perina <mperina@redhat.com>
2022-11-21 11:59:02 +01:00
Albert Esteve
323dfc8cf6 ci: add fedora-37/38 to test matrix
Add fedora-37 and fedora-38 to the CIs
and container workflows.

Fixes: #159
Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-11-09 13:33:53 +01:00
Albert Esteve
057fecb98e containers: remove fedora-35
Remove fedora-35 container from the
containers folder, the ci, and the
container workflow.

Related: #159
Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-11-09 13:33:53 +01:00
Albert Esteve
b47145902b ci.yml: use new repository
Use new repository (ovirt-imageio-test )in the pipelines.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-11-03 15:04:15 +01:00
Albert Esteve
f78c02b09f containers.yml: unify test repository
Have the containers workflow pushing the
images to the same repository, and use the
distro as the image tag, following the same
strategy as in the containers Makefile.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-11-03 12:51:49 +01:00
Nir Soffer
259a64c27c Fix push to quay.io
Based on the examples[1] the quay.io username should be part of the
`registry` value. Hopefully this will find the image built in the build
step `localhost/image` and will push it to `quay.io/ovirt/image`.

[1] https://github.com/redhat-actions/push-to-registry#examples

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2022-10-19 08:51:10 +02:00
Albert Esteve
1728af5e09 containers.yml: matrix rename
Rename the matrix containers variable to distro, which
signifies better its purpose in the workflow.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 20:35:51 +03:00
Albert Esteve
0215106c5b containers.yml: fix matrix list
Lists in yaml are formatted as comma-separated items.

Fix: a17bd41075775e712b5589923c03d06d6cae3c9d
Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 20:35:51 +03:00
Albert Esteve
f738213bd4 containers.yml: build imageio container
Add containerized imageio to the weekly build,
so that we provide an up-to-date container
image as an ovirt repository in quay.io.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 13:09:02 +02:00
Albert Esteve
a17bd41075 ci: build containers automatically every week
Build project containers (currently four)
and push them every week to update at least
the underlaying OS.

Fixes: #13
Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 13:09:02 +02:00
Albert Esteve
e90371643b reuse: addheader rest recognized format
Add SPDX header to the rest of the files in the
project that have a recognised format by reuse.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 13:04:20 +02:00
Albert Esteve
69f7f82a0a ci: separate envs per distro
On centos 8 we run the tests twice both with python 3.6
(platform python) and python 3.8. This doubles the
run time and makes it harder to check failures.
Other distros only run a single python environment
tests, but checks for all of them, creating a lot
of unnecesary noise in the logs.

Separate centos-8 enviornments for py36 and py38
to allow parallel execution. Other distributions
should run only a specific python environment
that matches the one they have installed.

Fixes: #90
Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-07-18 16:59:00 +02:00
Albert Esteve
1f7585ff29 ci: simplify ipv6 setup
IPv6 is disabled in docker containers on GH actions.
Enable IPv6 and simplify the ci workflow job for
running tests so that we do not need to configure
docker beforehand.

Fixes: #12
Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-07-13 16:56:26 +03:00
Nir Soffer
b5bcad81b2 github: Replace fedora 34 with 36
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2022-06-06 12:46:03 +03:00
Martin Perina
190874866b Use ovirt/upload-rpms-action
Uses ovirt/upload-rpms-action so RPM build artifacts are consumable by
OST runs.

Signed-off-by: Martin Perina <mperina@redhat.com>
2022-04-01 16:53:53 +03:00
Nir Soffer
0fcce24fc3 github: Add rpm job
Add job building rpms and uploading built artifacts with all container
images. For OST we need only centos-* rpms, but we want to keep this
project working also on fedora.

The rpm job creates a zip file with a yum repository for every distro
(e..g rpm-centos-8.zip). To run OST with the built rpms, a developer
will use the link the zip in a OST build parameter:

    https://github.com/nirs/ovirt-imageio/suites/4535392764/artifacts/121520882

Here is an example build for preview:
https://github.com/nirs/ovirt-imageio/actions/runs/1531658722

Change-Id: I60c4f67171df4217b218546dceb1422c36bcd03b
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2021-12-02 19:30:41 +02:00
Nir Soffer
6f3a33ee0a github: Add CI workflow
Rename the travis directory to ci and use the test script for running
the tests using github actions.

We run docker manually so we can configure docker to allow ipv6, in the
same way we did on travis.

Change-Id: I5d104d80c50e9697430dd75347e502135a141b3f
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2021-12-02 14:55:11 +02:00