#307 standard-test-rpm fails with "No group workDir/workspace/... available"
Closed: SOLVED 5 years ago by bgoncalv. Opened 5 years ago by whot.

The specific error message is here

[2019-03-08T07:02:04.821Z] TASK [standard-test-rpm : Install the test subject RPMs] ***********************

[2019-03-08T07:03:12.445Z] failed: [/workDir/workspace/fedora-rawhide-pr-pipeline/images/test_subject.qcow2] (item=/workDir/workspace/fedora-rawhide-pr-pipeline/images/test_subject.qcow2) => {"changed": false, "item": "/workDir/workspace/fedora-rawhide-pr-pipeline/images/test_subject.qcow2", "msg": "No group workDir/workspace/fedora-rawhide-pr-pipeline/images/test_subject.qcow2 available.", "results": []}

[2019-03-08T07:03:12.445Z]  to retry, use: --limit @/workDir/workspace/fedora-rawhide-pr-pipeline/libinput/tests/tests.retry

Full log is here: https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenkins/fedora-rawhide-pr-pipeline/detail/fedora-rawhide-pr-pipeline/985/pipeline/

The respective bits are (afaict):

 - role: standard-test-rpm
   subjects: python3-devel
   tags:
     -always

ftr, I need the role because otherwise my standard-test-source role fails, it needs python3-devel for pathfix.py during the rpmbuild stage.


The problem seems to be with the variables.

In https://pagure.io/standard-test-roles/blob/master/f/roles/standard-test-rpm/tasks/main.yml#_3 the item supposed to be the package name taken from the subjects: variable

But in the log we seeitem=/workDir/workspace/fedora-rawhide-pr-pipeline/images/test_subject.qcow2

I think it is because how the pipeline calls the playbook:https://github.com/CentOS-PaaS-SIG/ci-pipeline/blob/master/config/Dockerfiles/singlehost-test/package-test.sh#L129

From my understanding we should not use extra-vars to set subjects neither artifacts. We don't support those variables on STR inventories, but STI [1] says it should be supported... So my suggestion would be to change to standard-test-rpm to use different variable name instead of subjects.

    MUST execute the playbook with the following Ansible variables.

        subjects: The test subjects string as described above
        artifacts: The full path of an empty folder for test artifacts

[1] https://fedoraproject.org/wiki/CI/Standard_Test_Interface

Metadata Update from @bgoncalv:
- Issue close_status updated to: SOLVED
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #22 Merged 5 years ago