#265 *Fedora CI - scratch build* when the source is missing, the error is cryptic
Opened 3 years ago by churchyard. Modified 3 years ago

I saw a problem in https://src.fedoraproject.org/rpms/xonsh/pull-request/4

+ mock --isolation=simple -r fedora-35-x86_64 --resultdir=./ --buildsrpm --spec xonsh.spec --source .
+ tee /root/jenkins/workspace/i_dist-git-build-pipeline_master/mock_srpm.log
INFO: mock.py version 2.11 starting (python version = 3.6.8, NVR = mock-2.11-1.el8)...
Start(bootstrap): init plugins
INFO: selinux enabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(xonsh.spec)  Config(fedora-rawhide-x86_64)
Start: clean chroot
Finish: clean chroot
Start(bootstrap): chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: enabled HW Info plugin
Mock Version: 2.11
INFO: Mock Version: 2.11
Finish(bootstrap): chroot init
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled package manager cache
Start: cleaning package manager metadata
Finish: cleaning package manager metadata
INFO: enabled HW Info plugin
Mock Version: 2.11
INFO: Mock Version: 2.11
Start: dnf update
Finish: dnf update
Finish: chroot init
Start: buildsrpm
Start: rpmbuild -bs
Finish: rpmbuild -bs
Finish: buildsrpm
ERROR: Exception(xonsh.spec) Config(fedora-rawhide-x86_64) 0 minutes 3 seconds
INFO: Results and/or logs in: ./
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
ERROR: Command failed: 
 # bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/xonsh.spec

https://osci-jenkins-1.ci.fedoraproject.org/job/fedora-ci/job/dist-git-build-pipeline/job/master/8444/console

It was not obvious where the problem is.

Reproducing locally gave me a better error:

...
Start: buildsrpm
Start: rpmbuild -bs
error: Bad source: /builddir/build/SOURCES/xonsh-0.10.1.tar.gz: No such file or directory
Building target platforms: x86_64
Building for target x86_64
Finish: rpmbuild -bs
Finish: buildsrpm
ERROR: Exception(xonsh.spec) Config(fedora-rawhide-x86_64) 2 minutes 27 seconds
INFO: Results and/or logs in: ./
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
ERROR: Command failed: 
 # bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/xonsh.spec

The relevant error: Bad source: /builddir/build/SOURCES/xonsh-0.10.1.tar.gz: No such file or directory line was not present in the Jenkins log, making the issue appear like an infrastructure error, rather than an actual problem with the PR.


Metadata Update from @mvadkert:
- Issue tagged with: jenkins

3 years ago

Log in to comment on this ticket.

Metadata