#9156 fedora-rawhide-pr-pipeline doesn't install BuildRequires when testing parted
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by bcl.

https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenkins/fedora-rawhide-pr-pipeline/detail/fedora-rawhide-pr-pipeline/4133/pipeline/

The failure appears to be this:

[2020-07-21T13:24:50.163Z]     + git init

[2020-07-21T13:24:50.163Z]     /var/tmp/rpm-tmp.TOiLuh: line 42: git: command not found

[2020-07-21T13:24:50.163Z]     error: Bad exit status from /var/tmp/rpm-tmp.TOiLuh (%prep)

[2020-07-21T13:24:50.163Z]         Bad exit status from /var/tmp/rpm-tmp.TOiLuh (%prep)

parted.spec includes git in the BuildRequires so this should not fail unless the system isn't installing buildreqs.


@bgoncalv @astepano is this something you could look at?

Or should we move the ticket to https://pagure.io/fedora-ci/general/ ?

The problem seems to be on tests.yml the failure was when source role tried to extract the source and as for parted it requires git.

19:19:33  TASK [standard-test-source : Extract and setup the sources] ********************
19:19:35  fatal: [/workDir/workspace/fedora-rawhide-pr-pipeline/images/test_subject.qcow2]: FAILED! => changed=true 
19:19:35    cmd: |-
19:19:35      rm -rf "/var/str//source"
19:19:35      rpmbuild -bp /var/str//*.spec --nodeps --define "_sourcedir /var/str//" --define "_builddir /var/str//source"
19:19:35    delta: '0:00:00.985107'
19:19:35    end: '2020-07-21 17:19:35.317384'
19:19:35    msg: non-zero return code
19:19:35    rc: 1
19:19:35    start: '2020-07-21 17:19:34.332277'
19:19:35    stderr: |-
19:19:35      + umask 022
19:19:35      + cd /var/str//source
19:19:35      + cd /var/str/source
19:19:35      + rm -rf parted-3.3
19:19:35      + /usr/bin/tar -xof -
19:19:35      + /usr/bin/xz -dc /var/str/parted-3.3.tar.xz
19:19:35      + STATUS=0
19:19:35      + '[' 0 -ne 0 ']'
19:19:35      + cd parted-3.3
19:19:35      + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
19:19:35      + /usr/bin/git init -q
19:19:35      /var/tmp/rpm-tmp.0rT4nw: line 44: /usr/bin/git: No such file or directory
19:19:35      error: Bad exit status from /var/tmp/rpm-tmp.0rT4nw (%prep)
19:19:35          Bad exit status from /var/tmp/rpm-tmp.0rT4nw (%prep)

In this cases source role should use fetch_only parameter and extraction of it done later.

example: https://pagure.io/standard-test-roles/blob/master/f/roles/standard-test-source

Thanks for the suggestion, but that didn't work.

https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenkins/fedora-rawhide-pr-pipeline/detail/fedora-rawhide-pr-pipeline/4209/pipeline/

This used to work, and I haven't changed anything related to the CI tests since January 2019, so something else is going on here.

Thanks for the suggestion, but that didn't work.
https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenkins/fedora-rawhide-pr-pipeline/detail/fedora-rawhide-pr-pipeline/4209/pipeline/
This used to work, and I haven't changed anything related to the CI tests since January 2019, so something else is going on here.

hmmm, my mistake you should not need to use fetch_only, just because you need git, we should have git installed by default in our container image.

I'll need more time to debug what is going on there.

Metadata Update from @smooge:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: ci, groomed, medium-gain, medium-trouble

3 years ago

So the problem was to extract the source git needs to be installed on Fedora rawhide VM.

I've updated the test playbook with a simplified version and make sure git is installed before the source is extracted.

https://src.fedoraproject.org/rpms/parted/pull-request/5

I think this issue can be closed now, but I don't have permission to do it.

I do, thanks for the heads up :)

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

3 years ago

Login to comment on this ticket.

Metadata