Open shylesh opened 5 years ago
mkdir -p %{buildroot}/usr/src/coverage/ceph/
cp -asr src %{buildroot}/usr/src/coverage/ceph/
rm -r %{buildroot}/usr/src/coverage/ceph/src/ceph-detect-init/ceph_detect_init rm -r %{buildroot}/usr/src/coverage/ceph/src/ceph-volume/ceph_volume rm -r %{buildroot}/usr/src/coverage/ceph/src/ceph-volume/bin rm -r %{buildroot}/usr/src/coverage/ceph/src/ceph-disk/ceph_disk
cp -asr build %{buildroot}/usr/src/coverage/ceph/ find %{buildroot}/usr/src/coverage/ceph/ -name "*.o" -print0 | xargs -0 rm
find %{buildroot}/usr/src/coverage/ceph/ -name "*.py" -print0 | xargs -0 rm
Changes I did for fragments install.txt.
mkdir -p %{buildroot}/usr/src/coverage/ceph/
source (.cc) files:
cp -asr src %{buildroot}/usr/src/coverage/ceph/
Not sure why these are directories, but it causes a problem for the next cp
operation below:
rm -r %{buildroot}/usr/src/coverage/ceph/src/ceph-detect-init/ceph_detect_init rm -r %{buildroot}/usr/src/coverage/ceph/src/ceph-volume/ceph_volume rm -r %{buildroot}/usr/src/coverage/ceph/src/ceph-volume/bin rm -r %{buildroot}/usr/src/coverage/ceph/src/ceph-disk/ceph_disk
.gcno files:
cp -r build/src %{buildroot}/usr/src/coverage/ceph/
cp -asr build %{buildroot}/usr/src/coverage/ceph/ find %{buildroot}/usr/src/coverage/ceph/ -name "*.o" -print0 | xargs -0 rm
Don't byte-compile python:
find %{buildroot}/usr/src/coverage/ceph/ -name "*.py" -print0 | xargs -0 rm
Delete some binaries here:
rm -r %{buildroot}/usr/src/coverage/ceph/src/boost
For some reason its not formatted properly, full install.txt here https://paste.fedoraproject.org/paste/n0YlmkbRDddqBDK63G0oNA/raw
I tried to compare number of source files in coverage rpm Vs source files from src rpm and I see huge difference.
From coverage rpm
/usr/src/coverage/ceph$ find src/ | wc -l 18884
From src rpm
find src/| wc -l 47183
I tried to modify fragments so that build/ and src/ directories are included as is from the build machine but rebuild.py failed [fedora@codecoveragelatest build-ceph-coverage]$ python rebuild.py /tmp/rebuild/ceph-12.2.8-52.el7cp.src.rpm: digests OK 154748 blocks rewriting /tmp/rebuild/ceph.spec with coverage changes Wrote: ./new/ceph-12.2.8-52.1.coverage.el7.src.rpm Watching tasks (this may be safely interrupted)...35 73.75 MiB 2.11 MiB/sec 19936951 build (ceph-3.2-rhel-7-candidate, ceph-12.2.8-52.1.coverage.el7.src.rpm): free 19936951 build (ceph-3.2-rhel-7-candidate, ceph-12.2.8-52.1.coverage.el7.src.rpm): free -> open (x86-030.build.eng.bos.redhat.com) 19936952 buildArch (ceph-12.2.8-52.1.coverage.el7.src.rpm, x86_64): free 19936952 buildArch (ceph-12.2.8-52.1.coverage.el7.src.rpm, x86_64): free -> open (x86-040.build.eng.bos.redhat.com) 19936952 buildArch (ceph-12.2.8-52.1.coverage.el7.src.rpm, x86_64): open (x86-040.build.eng.bos.redhat.com) -> FAILED: BuildError: error building package (arch x86_64), mock exited with st atus 1; see build.log for more information 0 free 1 open 0 done 1 failed 19936951 build (ceph-3.2-rhel-7-candidate, ceph-12.2.8-52.1.coverage.el7.src.rpm): open (x86-030.build.eng.bos.redhat.com) -> FAILED: BuildError: error building package (arch x86_64), mock exited with status 1; see build.log for more information 0 free 0 open 0 done 2 failed
19936951 build (ceph-3.2-rhel-7-candidate, ceph-12.2.8-52.1.coverage.el7.src.rpm) failed Traceback (most recent call last): File "rebuild.py", line 300, in
main()
File "rebuild.py", line 290, in main
watch_scratch_build(session, task_id)
File "rebuild.py", line 212, in watch_scratch_build
raise RuntimeError('scratch build failed')
RuntimeError: scratch build failed
Request you to include both build/ and src/ directories as is, hopefully that should work for us.