-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscanresults
executable file
·58 lines (56 loc) · 2.52 KB
/
scanresults
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
filelist=$(for p in $(cat ~/tmp/failchecklist) ; do echo $p/RPMS*/.build.log2 $p/binaries.nachbau/.build.log2 ; done)
[ -n "$FULL" ] && filelist=*/RPMS*/.build.log2
unset CDPATH
p1="unresolvable: nothing provides librpm.so.3"
p2="Kernel panic"
p3="error: unpacking of archive failed on file"
p4="No buildstatus set, either the base system is broken"
p5="create archive failed on file"
p6="unsupported package type. magic"
p7="Starting Emergency Shell"
p8='Failed to get "write" lock'
p9='mount must be owned by root. Exit'
p10='error: init_b_cache'
p10b='error: .init_b_cache'
p11='not an rpm package'
pssl="SSL Error: unexpected eof"
espc="echo: write error: No space left on device"
emem="Out of memory: Kill process"
emem2="out of memory allocating"
eipfs1="Transport endpoint is not connected"
eswi="Failed to start Switch Root"
estruc=" failed: Structure needs cleaning"
epatch=" hunk FAILED -- saving rejects to file"
p400="Server returned an error: HTTP Error 400: Bad Request"
p500="Server returned an error: HTTP Error 500: Internal Server Error"
p502="Server returned an error: HTTP Error 502: Bad Gateway"
p503="Server returned an error: HTTP Error 503: Service Temporarily Unavailable"
w1="W: python-bytecode-inconsistent-mtime"
fgrep "[Errno 2] No such file or directory: '/var/tmp/osbuild-packagecache/home:bmwiedemann:reproducible/_pubkey" $filelist
fgrep -e "$p1" -e "$p2" -e "$p3" -e "$p4" -e "$p5" -e "$p6" -e "$p7" -e "$p8" -e "$p9" -e "$p10" -e "$p10b" -e "$p11" -e "$pssl" -e "$eswi" -e "$estruc" -e "$epatch" -e "$p400" -e "$p500" -e "$p502" -e "$p503" -e "$espc" -e "$emem" -e "$emem2" -e "$eipfs1" $filelist
fgrep -l "can't open binaries" */binaries.nachbau/*-compare.out
grep "in-progress" */RPMS*/.osc-build-retval
#post-process with
#grep python-bytecode-inconsistent-mtime | grep -o "/usr/lib[^ ]*" /root/tmp/bytecode-inconsistent.txt|sort -u > /root/tmp/bytecode-inconsistent2.txt
# compare results for failed build
if true ; then
for p in * ; do (
cd $p &&\
test -e .osc-build-retval &&\
grep -q -v '^0$' .osc-build-retval &&\
( test -e .build-compare-retval || test -e .build-differed ) &&\
rm -f .build-compare-retval .build-differed
)
done
fi
# notify about successful build without compare results - might have half-failed
for p in * ; do (
! echo $p | grep -q -e '-testsuite$' -e perl-PAR-Packer-test -e rpmlint-tests &&\
cd $p &&\
test -e .osc-build-retval &&\
grep -q '^0$' .osc-build-retval &&\
( ! test -e .build-compare-retval || ! test -e .build-differed ) &&\
echo $p
)
done