#32 Fedora CI: Run %pyproject macros integration tests
Merged 4 years ago by churchyard. Opened 4 years ago by churchyard.
rpms/ churchyard/python-setuptools ci_pyproject  into  master

file modified
+11
@@ -7,6 +7,8 @@ 

      repositories:

      - repo: "https://src.fedoraproject.org/tests/python.git"

        dest: "python"

+     - repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git"

+       dest: "pyproject-rpm-macros"

      tests:

      - smoke34:

          dir: python/smoke
@@ -47,6 +49,12 @@ 

      - smoke39_virtualenv:

          dir: python/smoke

          run: VERSION=3.9 METHOD=virtualenv ./venv.sh

+     - pyproject_pytest:

+         dir: pyproject-rpm-macros/tests

+         run: ./mocktest.sh python-pytest

+     - pyproject_pluggy:

+         dir: pyproject-rpm-macros/tests

+         run: ./mocktest.sh python-pluggy

      required_packages:

      - gcc

      - virtualenv
@@ -59,3 +67,6 @@ 

      - python39

      - python3-devel

      - python3-tox

+     - mock

+     - rpmdevtools

+     - rpm-build

no initial comment

1 new commit added

  • Temporary hack, do not merge
4 years ago

@fbo I'd like to get your input here. What we do in rpms/pyproject-rpm-macros/tests/mocktest.sh is not exactly nice and I kinda expected that it won't work on Zuul:

+ cat '/etc/yum.repos.d/test-*.repo'
cat: '/etc/yum.repos.d/test-*.repo': No such file or directory

The problem and solution for Jenkins is described in this e-mail thread.

tl;dr we need a repo file with the tested package. on Jenkins, that file is in /etc/yum.repos.d/test-<pkgname>.repo. Where it is on Zuul?

Thanks.

1 new commit added

  • Fedora CI: Run %pyproject macros integration tests
4 years ago

@churchyard This task 1 installs a file /etc/yum.repos.d/zuul-build.repo with a list a repos (repo for the current change + all depends-on)

Build succeeded.

Build succeeded.

+1.
Both the Zuul and Jenkins logs show pytest and pluggy tests building RPMs successfully, and passing.

Pull-Request has been merged by churchyard

4 years ago