openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
921 stars 437 forks source link

Improve error message on non-cpioable packages #1789

Open jengelh opened 8 years ago

jengelh commented 8 years ago
$ xosc -d build -bd Ubuntu_16.04 x86_64 kopano.dsc 2>&1 |tee bl
[...]
POST https://master.zbuild.net/build/kopano:master/Ubuntu_16.04/x86_64/kopano/_buildinfo?add=autoconf&add=automake&add=less&add=libtool&add=gdb&add=strace&add=valgrind&add=procps&add=vim
Getting buildconfig from server and store to /home/jengelh/obs/KP/kmaster/kopano/.osc/_buildconfig-Ubuntu_16.04-x86_64
GET https://master.zbuild.net/build/kopano:master/Ubuntu_16.04/_buildconfig
Updating cache of required packages
0.6% cache miss. 319/321 dependencies cached.

1/2 (openSUSE.org:Ubuntu:16.04) valgrind_3.11.0-1ubuntu4_amd64.deb
2/2 (openSUSE.org:Ubuntu:16.04) libc6-dbg_2.23-0ubuntu3_amd64.deb
GET https://master.zbuild.net/build/openSUSE.org:Ubuntu:16.04/standard/x86_64/_repository?binary=libc6-dbg&binary=valgrind&view=cpio
BuildService API error: CPIO archive is incomplete (see .errors file)

$ xosc api '/build/openSUSE.org:Ubuntu:16.04/standard/x86_64/_repository?binary=libc6-dbg&binary=valgrind&view=cpio'|o
07070100000000000081a40000000000000000000000015730cf1500000031000000000000000000000000000000000000000800000000.errors^@^@^@libc
valgrind: not available
^@^@^@07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!

I listed valgrind in ~/.oscrc in the extra-pkgs variable, so this is the trigger. However, if valgrind is not available, the error message I would have accepted is the one I would have normally gotten:

Getting buildinfo from server and store to /home/jengelh/obs/KP/kmaster/kopano/.osc/_buildinfo-Ubuntu_16.04-x86_64.xml
POST https://master.zbuild.net/build/kopano:master/Ubuntu_16.04/x86_64/kopano/_buildinfo?add=autoconf&add=automake&add=less&add=libtool&add=gdb&add=strace&add=valgrind&add=procps&add=vim&add=DEFINITELYNOTPRESENT
Getting buildconfig from server and store to /home/jengelh/obs/KP/kmaster/kopano/.osc/_buildconfig-Ubuntu_16.04-x86_64
GET https://master.zbuild.net/build/kopano:master/Ubuntu_16.04/_buildconfig
buildinfo is broken... it says:
unresolvable: nothing provides DEFINITELYNOTPRESENT

This is with osc-0.152 and obs-server-2.6.51.git20160421.74ddcbe-0.noarch.

mlschroe commented 8 years ago

But it is available in the Ubuntu:16.04 repo. Maybe this is a download on demand problem.

mlschroe commented 8 years ago

Yes, I can reproduce it. DoD interacting with the interconnect.

jengelh commented 8 years ago

Maybe there is (also) a DoD problem with valgrind, but this report was about the improvable error message.

mlschroe commented 8 years ago

But this issue is classified "backend", not "osc" ;)

You wouldn't run into this bad error reporting if the underlying problem was fixed.